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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0xe0
push ebx
push esi
xor esi, esi
push edi
mov edi, 0x7c57
mov ecx, 0x4d3f
cmp dword [ebp + 0xc], esi
je 0x402652
inc esi
mov eax, 0x2aaaaaab
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x402470
add esi, 2
cmp esi, 0x2918
jl 0x402453
cmp dword [ebp + 0x10], 0
mov esi, 0
jne 0x4024b3
cmp dword [ebp + 0x18], esi
jne 0x4024b3
inc esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x4024a2
add esi, esi
cmp esi, 0x4eec
jl 0x402488
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x7a40
jmp 0x4024c0
mov eax, 0x2f149903
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4024c0
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
mov edi, dword [eax + 0x3c]
add edi, eax
cmp word [eax], cx
jne 0x402696
cmp dword [edi], 0x4550
jne 0x402696
mov ebx, 0xa99
lea ebx, [ebx]
mov eax, 0x2aaaaaab
imul ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402500
mov eax, dword [edi + 0x7c]
mov dword [ebp - 4], eax
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x402536
inc esi
cmp esi, 0x28ce
jl 0x402518
cmp dword [ebp - 4], 0
je 0x402696
mov ebx, 0x1aa0
lea ecx, [ecx]
mov eax, 0x4bda12f7
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402550
mov edi, dword [edi + 0x78]
mov esi, dword [ebp + 0xc]
add edi, esi
mov ebx, 0x5af6
mov ecx, 0x4d8
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402575
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add edx, esi
add eax, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ecx, 0x4a80
mov dword [ebp - 8], 0x87
mov eax, 0x4b
jmp 0x4025b0
cmp eax, 0x87
cmovl eax, dword [ebp - 8]
dec ecx
jne 0x4025b0
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test eax, eax
je 0x402696
mov eax, 0x24cf
mov esi, 0x8b
mov ecx, 0xa2
cmp ecx, esi
cmovg ecx, esi
dec eax
jne 0x4025e1
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x402610
mov eax, dword [edx + esi*4]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00402f00
add esp, 8
test eax, eax
jne 0x40262c
mov edx, dword [ebp - 0xc]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4025f0
nop
mov eax, 0x3e0f83e1
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402610
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
cmp ecx, edi
jbe 0x402649
mov eax, dword [ebp - 4]
add eax, edi
cmp ecx, eax
jb 0x402696
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x163e
mov esi, 0x4e
lea esp, [esp]
cmp eax, 0x4e
cmovl eax, esi
dec edx
jne 0x402660
lea esp, [esp]
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402670
mov eax, 0x6bca1af3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402683
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret