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

Disassembly:
sub esp, 0x398
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x394], eax
mov eax, dword [esp + 0x3bc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x39c]
push ebx
mov ebx, dword [esp + 0x3b8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3a8]
push ebp
mov ebp, dword [esp + 0x3b8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c0]
push esi
push edi
mov dword [esp + 0x1c], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x294], eax
mov dword [esp + 0x298], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
call fcn.00402439
test eax, eax
jne 0x402ab0
mov ecx, dword [edi]
xor edx, edx
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x402aae
imul esi, edx, 0xc
mov dword [esp + 0x40], esi
mov eax, dword [esi + edi + 0x3c]
test eax, eax
je 0x402918
cmp eax, 0x21
je 0x402918
cmp eax, 0x30101
je 0x402918
cmp eax, 0x303011b
jne 0x4027f8
cmp edx, 3
jne 0x402ad7
mov eax, dword [esp + 0x3b0]
mov esi, dword [eax + 0x10]
mov ebx, dword [eax + 8]
sub esi, ebx
mov edi, dword [eax + 0x14]
mov ebp, dword [eax + 0xc]
sbb edi, ebp
xor eax, eax
cmp eax, edi
jne 0x402ac9
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [eax]
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
test eax, eax
jne 0x4026b1
test esi, esi
jne 0x402ac9
add ebx, dword [esp + 0x3b8]
adc ebp, dword [esp + 0x3bc]
push ebp
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.00405334
pop ecx
pop ecx
test eax, eax
jne 0x402ab0
push edi
mov edi, dword [esp + 0x28]
mov ecx, ebx
push esi
mov edx, dword [edi + 8]
call fcn.00402391
pop ecx
pop ecx
test eax, eax
jne 0x402ab0
mov ecx, dword [esp + 0x294]
test cl, 3
jne 0x402ad2
mov edx, dword [esp + 0x298]
test dl, 3
jne 0x402ad2
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
lea eax, [edx + ebp]
add eax, ecx
cmp eax, ebx
jne 0x402ad2
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
add eax, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [edi]
mov dword [esp + 0x54], eax
add eax, ecx
mov dword [esp + 0x64], eax
mov ecx, 0x81
mov eax, dword [edi + 4]
mov dword [esp + 0x58], eax
add eax, edx
mov dword [esp + 0x68], eax
mov eax, dword [edi + 8]
lea edi, [esp + 0x8c]
mov dword [esp + 0x5c], eax
add eax, esi
mov dword [esp + 0x6c], eax
lea eax, [ebx + ebp]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x83], al
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, 0x4000400
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], 9
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
call fcn.00405459
test eax, eax
jne 0x402ab0
mov ecx, eax
lea edx, [esp + 0x60]
mov eax, dword [esp + ecx*4 + 0x50]
cmp eax, dword [edx + ecx*4]
jne 0x402ad2
inc ecx
cmp ecx, 4
jb 0x4027b5
cmp dword [esp + 0x88], 0
jne 0x402ad2
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x74]
jne 0x402ad2
cmp dword [esp + 0x78], 0
jne 0x402ad2
mov edi, dword [esp + 0x18]
jmp 0x402a9b
cmp edx, 1
jne 0x402ad7
mov cl, byte [esi + edi + 0x41]
cmp eax, 3
jne 0x40284a
cmp cl, dl
jne 0x402ad7
xor eax, eax
push 0x100
push eax
lea eax, [esp + 0x2a8]
push eax
call fcn.00411470
mov eax, dword [esi + edi + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
push ebp
movzx edx, byte [eax + ecx]
lea ecx, [esp + 0x2b4]
inc edx
call fcn.00405bf5
add esp, 0x14
jmp 0x402a9b
test cl, cl
jne 0x402ad7
cmp eax, 0x3030103
je 0x4028fa
cmp eax, 0x3030205
je 0x4028ed
cmp eax, 0x3030401
je 0x4028e0
cmp eax, 0x3030501
je 0x4028a7
cmp eax, 0x3030701
je 0x402895
cmp eax, 0x3030805
jne 0x402ad7
push ecx
push ecx
mov edx, ebx
mov ecx, ebp
call fcn.004057ff
jmp 0x4028a0
push ecx
push ecx
mov edx, ebx
mov ecx, ebp
call fcn.00405736
pop ecx
pop ecx
jmp 0x402a9b
mov edx, ebx
mov ecx, ebp
and edx, 0xfffffffc
add edx, ebp
mov esi, ecx
cmp ecx, edx
jae 0x402a9b
add ecx, 4
cmp byte [ecx - 1], 0xeb
jne 0x4028b0
mov eax, dword [esi]
shl eax, 2
sub eax, ecx
add eax, 0xfffffffc
add eax, ebp
shr eax, 2
and eax, 0xffffff
or eax, 0xeb000000
mov dword [esi], eax
jmp 0x4028b0
push ecx
push ecx
mov edx, ebx
mov ecx, ebp
call fcn.00405994
jmp 0x4028a0
push ecx
push ecx
mov edx, ebx
mov ecx, ebp
call fcn.004057b4
jmp 0x4028a0
xor eax, eax
mov edx, ebx
push ecx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, ebp
call fcn.00405861
add esp, 0xc
jmp 0x402a9b
xor eax, eax
mov edi, ebp
mov edx, eax
mov esi, ebx
cmp ecx, 4
jne 0x4029c4
mov ecx, dword [esp + 0x2c]
xor edi, edi
mov eax, dword [esp + 0x3c]
mov ebx, ecx
shl ebx, 2
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 2
mov esi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x4c], edi
mov edx, dword [esp + ebx + 0x44]
mov dword [esp + 0x30], edx
cmp ecx, 2
jae 0x40299a
cmp edi, eax
jne 0x402ac9
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [eax]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x402980
test esi, esi
jne 0x402ac9
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
sub eax, ebx
mov dword [eax + 4], edi
lea eax, [esp + 0x298]
sub eax, ebx
mov dword [eax], esi
jmp 0x4029c4
jne 0x402ad7
cmp eax, edi
ja 0x402acd
mov eax, dword [esp + 0x10]
jb 0x4029b6
cmp esi, eax
ja 0x402acd
mov edi, ebp
mov dword [esp + 0x38], esi
sub edi, esi
add edi, eax
mov dword [esp + 0x34], edi
mov ebx, dword [esp + 0x3b0]
mov ecx, dword [ebx + edx*8]
mov ebp, dword [ebx + edx*8 + 8]
mov eax, dword [ebx + edx*8 + 4]
sub ebp, ecx
mov ebx, dword [ebx + edx*8 + 0xc]
sbb ebx, eax
add ecx, dword [esp + 0x3b8]
adc eax, dword [esp + 0x3bc]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00405334
pop ecx
pop ecx
test eax, eax
jne 0x402ab0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov eax, dword [ecx + eax + 0x3c]
test eax, eax
jne 0x402a3a
cmp ebp, esi
jne 0x402ad2
cmp ebx, eax
jne 0x402ad2
mov ecx, dword [esp + 0x14]
mov edx, edi
push ebx
push ebp
call fcn.00402391
pop ecx
pop ecx
test eax, eax
jne 0x402ab0
mov edi, dword [esp + 0x18]
jmp 0x402a93
cmp eax, 0x30101
jne 0x402a65
push dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x24]
push dword [esp + 0x20]
push ebx
movzx edx, byte [ecx + edi + 0x41]
mov ecx, dword [ecx + edi + 0x38]
add ecx, dword [esp + 0x3c]
push ebp
call fcn.00402093
jmp 0x402a8c
cmp eax, 0x21
jne 0x402ad7
push dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x24]
push dword [esp + 0x20]
push ebx
movzx edx, byte [ecx + edi + 0x41]
mov ecx, dword [ecx + edi + 0x38]
add ecx, dword [esp + 0x3c]
push ebp
call fcn.00402210
add esp, 0x18
test eax, eax
jne 0x402ab0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi]
inc edx
mov dword [esp + 0x2c], edx
cmp edx, ecx
jb 0x402638
xor eax, eax
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410199
add esp, 0x398
ret
push 2
jmp 0x402acf
push 5
pop eax
jmp 0x402ab0
xor eax, eax
inc eax
jmp 0x402ab0
push 4
jmp 0x402acf