Function at 0x402320
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 + 0x70], 0
mov dword [esp + 0x6c], 0
mov esi, dword [esp + 0x6c]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x9c], 0
mov edi, dword [esp + 0x9c]
mov byte [esp + 0x75], 0
mov bl, byte [esp + 0x75]
mov dword [esp + 0x78], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xb8], 0xb
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], 0x1000
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x84]
mov word [esp + 0x76], 0x2094
mov dword [esp + 0x40], 0
mov word [esp + 0xa2], 0x50eb
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov dword [esp + 0xc0], 0
mov edx, dword [esp + 0x98]
mov byte [esp + 0xb7], 0xa5
cmp edx, eax
mov dword [esp + 0x2c], edi
mov byte [esp + 0x2b], bl
mov dword [esp + 0x24], esi
jbe 0x402451
mov eax, 0xffffffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], eax
mov byte [esp + 0xb7], 0x11
jmp 0x40270d
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x70]
sub eax, edx
mov dword [esp + 0x70], eax
mov eax, 0
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x7c]
sub eax, dword [esp + 0x80]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xa4], eax
cmp ecx, edx
jae 0x402558
mov eax, 0
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x94]
movsx edx, byte [esi + edx]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x20], eax
mov eax, esi
mov dword [esp + 0x1c], edx
xor edx, edx
mov esi, dword [esp + 0x34]
div esi
mov bl, byte [edx + 0x40724c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x64], 0
movsx eax, bl
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov bl, cl
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x7c]
mov byte [esp + eax + 0x44], bl
lea eax, [esp + 0x70]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
or edi, edx
mov dword [esp + 0x80], edi
mov edx, dword [esp + 0x40]
xor edx, ecx
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x38]
add esi, ecx
mov dword [esp + 0x7c], esi
mov edx, dword [esp + 0xa4]
xor edx, eax
mov dword [esp + 0x70], edx
jmp 0x402467
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0xa4]
xor ecx, 0
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x98]
mov dl, byte [esp + 0x2b]
mov byte [esp + ecx + 0x44], dl
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.004016f0
lea ecx, [0x40bc99]
mov si, ax
mov word [esp + 0xa8], si
mov word [esp + 0xaa], si
mov eax, dword [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp], ecx
call fcn.004016f0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x402620
lea eax, [esp + 0x80]
mov ecx, 0
mov edx, 0xfffffffd
mov dword [esp + 0x8c], edx
sub ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xa4]
mov si, word [esp + 0x76]
mov di, ax
sub di, si
add edx, 0
mov dword [esp + 0xa4], ecx
mov word [esp + 0x76], di
mov dword [esp + 0xa4], edx
jmp 0x40270d
call fcn.004022e0
lea ecx, [0x40bc9e]
mov dword [esp + 0xbc], eax
mov dword [esp], ecx
call fcn.004016f0
mov dx, word [esp + 0xa2]
or dx, 0x835
mov word [esp + 0xa2], dx
mov ecx, dword [esp + 0xbc]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x70], edi
mov word [esp + 0x76], 0x618c
lea edi, [esp + 0xc0]
mov ebx, esp
mov dword [ebx + 0xc], edi
lea edi, [esp + 0xa8]
mov dword [ebx + 4], edi
mov dword [ebx], esi
mov dword [ebx + 8], 0
mov dword [esp + 0x18], eax
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x24]
cmp eax, ecx
je 0x4026b9
mov eax, 0
sub eax, dword [esp + 0xa4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x8c], 0
jmp 0x40270d
lea eax, [0x40bca4]
mov ecx, dword [esp + 0xa4]
add ecx, 0
mov dword [esp], eax
mov dword [esp + 0x14], ecx
call fcn.004016f0
mov ecx, dword [esp + 0xa4]
xor ecx, 0
mov dword [esp + 0xa4], ecx
mov word [esp + 0x76], 0x273
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x40], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8