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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, 0x6d
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0x120d
mov byte [esp + 0x7d], 0x12
mov dword [esp + 0x78], 0x7499
mov dh, byte [esp + 0x7d]
sub dl, dh
mov byte [esp + 0x57], dl
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov ecx, esp
mov dword [ecx], eax
mov byte [esp + 0x37], dh
call fcn.00402f70
sub esp, 4
mov ecx, 0x7499
xor esi, esi
add esi, 0x18
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x6c]
movzx edi, word [edi + 0x14]
add eax, esi
add eax, edi
mov bx, word [esp + 0x7e]
mov dword [esp + 0x70], eax
sub ecx, dword [esp + 0x78]
mov dword [esp + 0x50], ecx
mov word [esp + 0x34], bx
mov eax, 0xa154
sub eax, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x50]
xor eax, 0x5a69
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x6c]
add ecx, 4
add ecx, 2
mov dword [esp + 0x68], ecx
cmp edx, eax
ja 0x402549
mov eax, dword [esp + 0x68]
mov cx, word [esp + 0x34]
imul dx, cx, 0x296f
mov esi, dword [esp + 0x64]
movzx eax, word [eax]
mov word [esp + 0x7e], dx
cmp esi, eax
jb 0x402549
jmp 0x402480
mov eax, dword [esp + 0x50]
add eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x70]
add eax, 0x28
mov dword [esp + 0x70], eax
jmp 0x40240c
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0x54]
mov edx, dword [esp + 0x74]
mov esi, esp
mov dword [esi + 8], eax
mov dword [esi + 4], edx
mov dword [esi], ecx
call fcn.00403ad0
sub esp, 0xc
mov dword [esp + 0x30], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, byte [esp + 0x7d]
mov cl, byte [esp + 0x57]
xor al, 0xee
cmp cl, al
ja 0x4025c5
jmp 0x402468
mov eax, esp
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0x5d44
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0x1a4c
mov dword [eax], 0
mov eax, dword [0x40505c]
call eax
mov dword [esp + 0x2c], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x693
mov esi, esp
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [esi], edx
call fcn.00403ad0
sub esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4024af
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x90]
mov esi, dword [esp + 0x94]
xor edx, 0x5db8
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edx
mov eax, dword [eax + 0xc]
add ecx, eax
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x3c], eax
mov bl, byte [esp + 0x37]
or bl, 0xc1
mov byte [esp + 0x8f], bl
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
add ecx, 0x5e49
adc edi, 0
mov dword [esp + 0x5c], eax
sub ecx, edx
sbb edi, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edi
jae 0x402503
jmp 0x4024c3
mov eax, esp
mov dword [eax], 0
mov eax, dword [0x405044]
call eax
mov dword [esp + 0x1c], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8