Function at 0x402330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x44], 0
mov dword [esp + 0x6c], 0
mov esi, dword [esp + 0x6c]
mov dword [esp + 0xb4], 0
mov edi, dword [esp + 0xb4]
mov byte [esp + 0x6b], 0
mov bl, byte [esp + 0x6b]
mov dword [esp + 0xb0], 0xc
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
and eax, 0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
mov byte [esp + 0x3b], 0xc1
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 0xbc], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov word [esp + 0x68], 0
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x68]
mov dword [esp + 0x60], 0
mov word [esp + 0x98], 0x476c
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov word [esp + 0x4a], 0x3d4
mov dword [esp + 0x64], ecx
mov dword [esp + 0x9c], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x9b], 0x83
mov dword [esp + 0xa0], 0
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x28]
cmp edx, ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x23], bl
mov word [esp + 0x20], ax
mov dword [esp + 0x1c], esi
jbe 0x40248c
mov eax, 0xffffffff
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x44]
sub ecx, edx
mov dword [esp + 0x44], ecx
mov bl, byte [esp + 0x9b]
add bl, 0xbe
mov dword [esp + 0xa4], eax
mov byte [esp + 0x9b], bl
jmp 0x4026c9
lea eax, [esp + 0x44]
lea ecx, [esp + 0x4a]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov bl, byte [esp + 0x3b]
mov bh, cl
xor bl, bh
mov byte [esp + 0x3b], bl
mov si, word [esp + 0x4a]
mov di, ax
xor si, di
mov word [esp + 0x4a], si
mov ax, 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], 0
mov edx, dword [esp + 0xc0]
sub ax, word [esp + 0x98]
mov si, word [esp + 0x98]
add si, 0xa6e
mov word [esp + 0x98], si
mov word [esp + 0x98], ax
cmp ecx, edx
jae 0x402563
mov eax, 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x9c]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, edx
xor edx, edx
mov esi, dword [esp + 0x30]
div esi
movsx eax, byte [edx + 0x408a88]
sub ecx, eax
mov bl, cl
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
mov byte [esp + eax + 0x78], bl
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
add eax, 1
mov dword [esp + 0x54], eax
mov cl, byte [esp + 0x3b]
add cl, 0xb6
mov byte [esp + 0x3b], cl
jmp 0x4024b8
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0xc0]
mov dl, byte [esp + 0x23]
mov byte [esp + ecx + 0x78], dl
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.00401660
lea ecx, [0x40a368]
lea esi, [esp + 0x3b]
lea edi, [esp + 0x44]
mov dl, byte [esp + 0x3b]
mov ebx, edi
mov dh, bl
xor dl, dh
mov byte [esp + 0x3b], dl
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
add ebx, 0
mov dword [esp + 0x44], ebx
and edi, esi
mov dword [esp + 0x4c], edi
mov word [esp + 0xa8], ax
mov word [esp + 0xaa], ax
mov dword [esp], ecx
call fcn.00401660
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x402602
mov eax, 0xfffffffd
mov dword [esp + 0xa4], eax
mov cl, byte [esp + 0x9b]
add cl, 0x1a
mov byte [esp + 0x9b], cl
jmp 0x4026c9
call fcn.00402290
lea ecx, [0x40a36d]
mov dword [esp + 0x40], eax
mov dword [esp], ecx
call fcn.00401660
mov ecx, dword [esp + 0x40]
mov dx, word [esp + 0x4a]
add dx, 0x6eb2
mov word [esp + 0x4a], dx
mov esi, dword [esp + 0x64]
lea edi, [esp + 0xa0]
mov ebx, esp
mov dword [ebx + 0xc], edi
mov dx, word [esp + 0x20]
movzx edi, dx
mov dword [ebx + 8], edi
lea edi, [esp + 0xa8]
mov dword [ebx + 4], edi
mov dword [ebx], esi
mov dword [esp + 0x14], eax
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x40269f
lea eax, [esp + 0x9b]
mov dword [esp + 0xa4], 0
mov cl, byte [esp + 0x9b]
mov dl, al
xor cl, dl
mov byte [esp + 0x9b], cl
mov si, word [esp + 0x98]
or si, 0x5b05
mov word [esp + 0x98], si
jmp 0x4026c9
lea eax, [0x40a373]
mov word [esp + 0x98], 0x121b
mov dword [esp], eax
call fcn.00401660
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x10], eax
mov ax, word [esp + 0x4a]
add ax, 0x6f05
mov ecx, dword [esp + 0xa4]
mov byte [esp + 0x3b], 0xf9
mov dl, byte [esp + 0x9b]
and dl, 0xd1
mov byte [esp + 0x9b], dl
mov word [esp + 0x4a], ax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8