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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x402721
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402724
inc ecx
cmp ecx, 0x66ac
jl 0x402712
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402949
cmp dword [ebp + 0x10], ebx
jne 0x402745
cmp dword [ebp + 0x18], ebx
je 0x402949
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 4], eax
mov ecx, 0x5b49
mov eax, 0x939a85c5
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402752
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402949
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
jne 0x402949
mov ecx, 0x15e6
mov dword [ebp - 8], 0xf6
mov eax, 0x5c
jmp 0x4027a0
cmp eax, 0xf6
cmovl eax, dword [ebp - 8]
dec ecx
jne 0x4027a0
mov ecx, dword [edx + 0x7c]
mov dword [ebp - 0x1c], ecx
mov eax, 0x227
dec eax
jne 0x4027b7
test ecx, ecx
je 0x402949
mov ebx, 0x885
jmp 0x4027d0
mov eax, 0x66666667
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4027d0
mov eax, 0x2805
mov edx, 0x8d
mov ecx, 0x21
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x4027f2
mov eax, dword [ebp - 4]
mov edx, 0x36
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 0xc]
mov ecx, 0xcc
mov dword [ebp - 4], eax
mov eax, 0x5314
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x402815
mov ebx, 0x76de
mov eax, 0x2d4279a3
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402822
mov edx, dword [ebp - 4]
mov dword [ebp - 8], 0x86
mov eax, dword [edx + 0x20]
add eax, dword [ebp + 0xc]
mov ecx, 0x3a
mov dword [ebp - 0xc], eax
mov eax, 0x58b6
cmp ecx, 0x86
cmovg ecx, dword [ebp - 8]
dec eax
jne 0x402852
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
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 0x40288f
add esi, esi
cmp esi, 0x780a
jl 0x402870
mov ecx, dword [ebp - 4]
mov esi, 0x596c
mov eax, dword [ecx + 0x1c]
add eax, dword [ebp + 0xc]
mov ebx, 0x2513
mov dword [ebp - 0x14], eax
lea ecx, [ecx]
mov eax, 0x3e88cb3d
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4028b0
mov eax, 0xc5d
mov dword [ebp - 8], 0x17
mov edx, 0xb3
cmp edx, 0x17
cmovg edx, dword [ebp - 8]
dec eax
jne 0x4028d4
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
test eax, eax
je 0x402949
lea ebx, [ebx]
inc edi
mov eax, edi
and eax, 0x80000007
jns 0x4028ff
dec eax
or eax, 0xfffffff8
inc eax
jne 0x402902
inc edi
cmp edi, 0x5de0
jl 0x4028f0
xor edi, edi
cmp dword [ecx + 0x18], ebx
jbe 0x402934
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edi*4]
add eax, dword [ebp + 0xc]
push eax
push edx
call fcn.00403250
add esp, 8
test eax, eax
jne 0x402952
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
inc edi
cmp edi, dword [eax + 0x18]
jb 0x402911
mov eax, 0xae4c415d
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402934
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ebx, 0x838
movzx esi, word [eax + edi*2]
mov edi, edi
mov eax, 0x3e88cb3d
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402960
mov ecx, 0x52fe
jmp 0x402980
mov eax, 0x8ca29c05
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402980
mov ebx, 0x4f0c
lea ebx, [ebx]
mov eax, 0x4bda12f7
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4029a0
mov ebx, dword [ebp - 0x18]
mov eax, esi
mov esi, dword [ebp - 0x14]
mov esi, dword [esi + eax*4]
add esi, dword [ebp + 0xc]
inc ebx
mov eax, 0x66666667
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x4029dc
inc ebx
cmp ebx, 0x2e92
jl 0x4029c1
mov ecx, 0x6178
lea esp, [esp]
mov eax, 0x8a42f871
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4029f0
mov eax, dword [ebp - 4]
cmp esi, eax
jbe 0x402a17
add eax, dword [ebp - 0x1c]
cmp esi, eax
jb 0x402949
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret