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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
xor ecx, ecx
xor edi, edi
mov ebx, 0x3a7e
lea eax, [esi + 0x4f]
mov dword [ebp - 8], 0x6e7e
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0xc], ecx
je 0x402872
cmp dword [ebp + 0x10], ecx
jne 0x402552
cmp dword [ebp + 0x18], ecx
jne 0x402552
mov ecx, 0x181c
mov edx, 0xd
mov edi, edi
cmp eax, 0xd
cmovl eax, edx
dec ecx
jne 0x402540
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x53cc
jmp 0x402560
mov eax, 0x38e38e39
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402560
mov esi, 0x76d3
jmp 0x402580
mov eax, 0x8d3dcb09
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402580
mov edx, dword [ebp + 0xc]
mov esi, 0x3e06
mov eax, dword [edx + 0x3c]
add eax, edx
mov dword [ebp - 4], eax
mov eax, 0xb11fd3b9
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4025a5
mov eax, dword [ebp + 0xc]
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402893
mov esi, dword [ebp - 4]
cmp dword [esi], 0x4550
jne 0x402893
mov ebx, 0x4ccc
nop
mov eax, 0x4c8f8d29
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4025e0
inc ecx
mov eax, ecx
and eax, 0x80000007
jns 0x402602
dec eax
or eax, 0xfffffff8
inc eax
jne 0x402605
inc ecx
cmp ecx, 0x135a
jl 0x4025f3
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402893
mov ecx, 0x49d5
mov eax, 0x81848da9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402620
mov edi, 0x13ca
lea ebx, [ebx]
mov eax, 0x17ad2209
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402640
mov ebx, 0x166e
jmp 0x402660
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402660
mov esi, dword [esi + 0x78]
add esi, dword [ebp + 0xc]
mov ecx, 0x20c8
mov dword [ebp - 4], esi
mov eax, 0x8a42f871
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402681
mov eax, dword [esi + 0x20]
add eax, dword [ebp + 0xc]
mov ebx, 0x3eab
mov dword [ebp - 0xc], eax
mov eax, 0x30c30c31
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4026a4
mov ecx, 0x55f7
lea esp, [esp]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4026c0
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, 0x34e7
mov dword [ebp - 0x10], eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4026e3
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x402707
dec eax
or eax, 0xfffffffe
inc eax
jne 0x40270c
add ecx, 2
cmp ecx, 0x8cd
jl 0x4026f8
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, 0x6c66
mov esi, 0x70
mov ecx, 0x37
mov edi, edi
cmp ecx, esi
cmovg ecx, esi
dec eax
jne 0x402730
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test eax, eax
je 0x402893
mov eax, 0x3407
mov esi, 0xb6
mov ecx, 0xf0
cmp ecx, esi
cmovl ecx, esi
dec eax
jne 0x402755
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax + 0x18], esi
jbe 0x402790
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.00403000
add esp, 8
test eax, eax
jne 0x4027ac
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
inc esi
cmp esi, dword [eax + 0x18]
jb 0x402767
jmp 0x402790
inc edi
mov eax, edi
and eax, 0x80000003
jns 0x40279f
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402822
add edi, edi
jmp 0x40282b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + esi*2]
mov esi, 0x3e
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
mov eax, 0x4343
mov edx, 0xcd
jmp 0x4027d0
cmp edx, esi
cmovg edx, esi
dec eax
jne 0x4027d0
mov eax, 0x59ac
mov esi, 0x4d
mov edx, 0x32
cmp edx, esi
cmovg edx, esi
dec eax
jne 0x4027e7
nop
mov eax, 0x19c2d14f
imul dword [ebp - 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x4027f0
mov eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x402819
add eax, dword [ebp - 0x18]
cmp ecx, eax
jb 0x402893
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add edi, eax
cmp edi, 0x8dc
jl 0x402790
mov ebx, 0x6921
lea esp, [esp]
mov eax, 0x78787879
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402840
mov ebx, dword [ebp - 0x1c]
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402856
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
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 0x40288b
inc esi
cmp esi, 0x5ced
jl 0x402872
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret