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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0x59db
mov dword [esp + 0x64], 0x3440
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x1fa6
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov edi, edx
add edi, 0x52a6
mov ebx, esi
adc ebx, 0
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebx
mov edi, dword [esp + 0x64]
mov ebx, edi
add ebx, 0x1f8c
mov dword [esp + 0x48], ebx
mov bx, word [esp + 0x6a]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], 0x2822
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov word [esp + 0x6a], 0x321c
mov ecx, esp
mov dword [ecx], eax
mov word [esp + 0x2e], bx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
call fcn.00402b50
sub esp, 4
xor ecx, ecx
add ecx, 0x18
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
add eax, ecx
mov word [esp + 0x6a], 0x8d6
movzx ecx, word [edx + 0x14]
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
xor eax, 0x61eb
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], 0
jmp 0x402650
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
add eax, dword [ecx + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov si, word [esp + 0x2e]
mov word [esp + 0x6a], si
mov edx, dword [edx + 0x14]
mov edi, dword [esp + 0x30]
add ecx, edx
mov edx, esp
mov dword [edx + 8], eax
mov dword [edx + 4], ecx
mov dword [edx], edi
call fcn.004036c0
sub esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x4025cc
mov eax, dword [esp + 0x40]
mov ecx, 0x3b9f
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, edx
mul ecx
mov ecx, dword [esp + 0x20]
imul esi, ecx, 0x3b9f
add edx, esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x4c]
mov edx, esp
mov edi, dword [esp + 0x18]
mov dword [edx + 8], edi
mov dword [edx + 4], eax
mov dword [edx], esi
call fcn.004036c0
sub esp, 0xc
mov dword [esp + 0x14], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x38]
add ecx, 0x28
mov edx, dword [esp + 0x24]
and edx, 0x5e19
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x38], ecx
jmp 0x402650
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
xor eax, 0x3441
add esi, eax
mov eax, dword [esp + 0x28]
not eax
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
add edi, 0x1100
adc ebx, 0
mov dword [esp + 0x60], esi
sub edi, ecx
sbb ebx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
jae 0x40259e
jmp 0x402650
mov ax, 0x1689
mov ecx, 0x62b8
mov edx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x64]
mov edx, dword [edx + 0x54]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
mov di, word [esp + 0x2e]
sub ax, di
mov word [esp + 0x6a], ax
cmp esi, ecx
je 0x402549
jmp 0x402549
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + 6]
mov cx, word [esp + 0x2e]
xor cx, 0xffff
mov edx, dword [esp + 0x60]
mov word [esp + 0x6a], cx
cmp edx, eax
jb 0x4024fd
jmp 0x402612