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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x5be
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
mov eax, 0xb11fd3b9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402662
cmp dword [ebp + 0xc], esi
je 0x40294f
cmp dword [ebp + 0x10], esi
jne 0x40268e
cmp dword [ebp + 0x18], esi
je 0x40294f
mov ecx, 0x8e7
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402693
mov ecx, 0x2454
lea ecx, [ecx]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4026b0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 4], eax
mov ecx, 0xdca
mov eax, 0x8c08c08d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4026d5
mov ecx, 0x45de
nop
mov eax, 0x8ca29c05
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4026f0
mov ecx, 0x66a3
mov edx, 0x84
mov eax, 0xef
cmp eax, 0x84
cmovg eax, edx
dec ecx
jne 0x402714
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40294f
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x40294f
mov ebx, 0x46bc
mov eax, 0x4d4873ed
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402744
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 0x402775
inc esi
cmp esi, 0x199c
jl 0x402757
mov esi, dword [ebp - 4]
mov eax, 0x2080
mov ecx, dword [esi + 0x7c]
mov dword [ebp - 0x14], ecx
jmp 0x402790
dec eax
jne 0x402790
test ecx, ecx
je 0x40294f
mov ecx, 0x1cdd
mov eax, 0xb30f6353
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4027a0
mov ebx, 0x4ec1
lea ebx, [ebx]
mov eax, 0x44d72045
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4027c0
mov ebx, 0x1479
mov ecx, 0x2154
lea ecx, [ecx]
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4027e0
mov ecx, dword [esi + 0x78]
mov esi, dword [ebp + 0xc]
add ecx, esi
mov dword [ebp - 4], ecx
mov ecx, 0x7346
mov eax, 0x15390949
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402805
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 0x3e
mov eax, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, 0x4f3b
mov edx, 0x4b
cmp edx, 0x3e
cmovg edx, dword [ebp - 8]
dec eax
jne 0x402834
mov eax, dword [ecx + 0x24]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, 0x3cf0
mov dword [ebp - 8], 0x26
mov edx, 0x3c
cmp edx, 0x26
cmovl edx, dword [ebp - 8]
dec eax
jne 0x402857
mov ecx, 0x26e1
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402866
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test eax, eax
je 0x402927
xor esi, esi
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 0x4028ba
add esi, 2
cmp esi, 0x4605
jl 0x402894
mov edi, 0x4c93
jmp 0x4028d0
mov eax, 0x66666667
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4028d0
mov eax, dword [ebp - 4]
xor esi, esi
mov edi, esi
cmp dword [eax + 0x18], esi
jbe 0x402912
nop
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00403340
add esp, 8
test eax, eax
jne 0x402958
mov eax, dword [ebp - 4]
inc esi
cmp esi, dword [eax + 0x18]
jb 0x4028f0
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402912
inc edi
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x402947
add edi, 5
cmp edi, 0x4b1
jl 0x402927
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]
mov eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x402976
add eax, dword [ebp - 0x14]
cmp ecx, eax
jb 0x40294f
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret