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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, 0x49f5
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0x71ff
lea esp, [esp]
inc ebx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x402e0b
add ebx, 2
cmp ebx, 0x2010
jl 0x402df0
mov edi, 0x3214
jmp 0x402e20
mov eax, 0x4bda12f7
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402e20
mov ecx, 0x266e
jmp 0x402e40
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402e40
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x403097
cmp dword [ebp + 0x10], esi
jne 0x402e70
cmp dword [ebp + 0x18], esi
je 0x403097
mov edi, edi
inc esi
mov eax, esi
and eax, 0x80000007
jns 0x402e7f
dec eax
or eax, 0xfffffff8
inc eax
jne 0x402e82
inc esi
cmp esi, 0x6c4d
jl 0x402e70
mov edi, 0x4596
nop
mov eax, 0x473c1ab7
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402e90
mov ecx, dword [ebx + 0x3c]
mov eax, 0x5a4d
add ecx, ebx
cmp word [ebx], ax
jne 0x403097
cmp dword [ecx], 0x4550
jne 0x403097
mov eax, dword [ecx + 0x7c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403097
mov ebx, 0x54c6
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402ed5
mov esi, dword [ecx + 0x78]
add esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
inc ebx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x402f0c
inc ebx
cmp ebx, 0x20d0
jl 0x402ef3
mov eax, dword [esi + 0x20]
mov esi, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0xc], eax
mov edi, 0x1585
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402f24
xor ebx, ebx
inc ebx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, ebx
sub eax, ecx
jne 0x402f5c
inc ebx
cmp ebx, 0x5fe0
jl 0x402f38
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x24]
add eax, esi
mov dword [ebp - 0x10], eax
mov ebx, 0x57a
mov eax, 0x4c8f8d29
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402f74
mov ebx, dword [ebp - 4]
mov ecx, 0x1c5d
nop
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402f90
mov edi, 0x396b
lea ebx, [ebx]
mov eax, 0x2fa0be83
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402fb0
mov eax, 0x53b6
mov edx, 0xe1
mov ecx, 0x3e
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x402fd2
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebp + 0x10]
mov ecx, esi
add eax, ecx
mov dword [ebp - 4], eax
mov eax, edx
shr eax, 0x10
test eax, eax
je 0x403097
xor esi, esi
cmp dword [ebx + 0x18], esi
jbe 0x403026
jmp 0x403000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, ecx
push eax
push edx
call fcn.004039a0
add esp, 8
test eax, eax
jne 0x4030a0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x403000
mov edi, 0x19be
jmp 0x403030
mov eax, 0x51eb851f
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x403030
mov edi, dword [ebp - 0x18]
mov eax, 0x97012e03
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x403046
mov eax, 0x3386
mov edx, 0x58
mov ecx, 0x5c
lea ebx, [ebx]
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x403070
jmp 0x403080
mov eax, 0x2aaaaaab
imul dword [ebp - 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x403080
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, 0x81
movzx edx, word [eax + esi*2]
mov eax, 0x32b0
mov esi, 0xfd
cmp ecx, esi
cmovl ecx, esi
dec eax
jne 0x4030b6
mov ecx, dword [ebp - 4]
mov eax, edx
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
cmp ecx, ebx
jbe 0x4030d6
mov eax, dword [ebp - 0x14]
add eax, ebx
cmp ecx, eax
jb 0x403097
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret