Function at 0x402490
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov ecx, 0x35a6
mov eax, 0x5a
mov edi, 0x3a3f
mov dword [ebp - 4], 0x5930
mov dword [ebp - 8], 0x7e80
cmp dword [ebp + 0xc], esi
je 0x402700
cmp dword [ebp + 0x10], esi
jne 0x4024cf
cmp dword [ebp + 0x18], esi
je 0x402700
mov ecx, 0x3d6b
mov edx, 0xd8
lea esp, [esp]
cmp eax, 0xd8
cmovl eax, edx
dec ecx
jne 0x4024e0
jmp 0x4024f0
mov eax, 0xe6c2b449
imul edi
add edx, edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4024f0
mov ebx, 0x542b
lea ebx, [ebx]
mov eax, 0x3e88cb3d
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402510
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0xc], eax
mov edi, edi
inc esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
sub eax, ecx
jne 0x402554
inc esi
cmp esi, 0x4e2d
jl 0x402530
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x402713
mov edi, dword [ebp - 0xc]
cmp dword [edi], 0x4550
jne 0x402713
lea esp, [esp]
mov eax, 0x2c0b02c1
imul dword [ebp - 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x402580
mov ebx, 0x536d
lea esp, [esp]
mov eax, 0x3159721f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4025a0
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x10], ecx
mov ebx, 0xd
mov edi, edi
mov eax, 0x4d4873ed
imul dword [ebp - 8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x4025c0
test ecx, ecx
je 0x402713
mov edi, dword [edi + 0x78]
add edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, 0x10da
lea ecx, [ecx]
mov eax, 0x4325c53f
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4025f0
mov eax, 0x5217
mov ecx, 0x63
lea ecx, [ecx]
cmp ebx, ecx
cmovg ebx, ecx
dec eax
jne 0x402610
mov edi, 0x842
lea ecx, [ecx]
mov eax, 0xdbeb61f
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402620
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x20]
add ebx, edx
mov ecx, 0x395a
mov esi, 0xb4
mov eax, 0xed
lea ecx, [ecx]
cmp eax, 0xb4
cmovg eax, esi
dec ecx
jne 0x402650
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp + 0x10]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x1c]
add eax, edx
mov dword [ebp - 8], eax
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x402713
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x402713
mov eax, dword [ebx + esi*4]
add eax, edx
push eax
push ecx
call fcn.00402fd0
add esp, 8
test eax, eax
jne 0x4026ac
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x402686
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edi, 0x281b
movzx ecx, word [eax + esi*2]
jmp 0x4026c0
mov eax, 0x2fa0be83
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4026c0
mov edi, dword [ebp - 4]
mov eax, ecx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
cmp ecx, edi
jbe 0x4026ee
mov eax, dword [ebp - 0x10]
add eax, edi
cmp ecx, eax
jb 0x402713
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2f149903
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402700
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret