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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
xor esi, esi
nop
inc ebx
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, ebx
sub eax, ecx
jne 0x40253e
inc ebx
cmp ebx, 0x195a
jl 0x402520
mov ecx, 0x6fa6
mov edx, 0x6b
mov eax, 0xf5
cmp eax, 0x6b
cmovl eax, edx
dec ecx
jne 0x402555
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4026c5
cmp dword [ebp + 0x10], esi
jne 0x402577
cmp dword [ebp + 0x18], esi
je 0x4026c5
mov ebx, dword [eax + 0x3c]
add ebx, eax
mov edi, 0x2471
mov eax, 0x5254e78f
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402581
mov ecx, 0x3656
lea esp, [esp]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4025a0
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4026c5
cmp dword [ebx], 0x4550
jne 0x4026c5
mov ecx, dword [ebx + 0x7c]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4026c5
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 4], ebx
mov ecx, 0x6890
mov edx, 0x20
mov eax, 0x66
cmp eax, 0x20
cmovl eax, edx
dec ecx
jne 0x4025f7
mov ecx, 0x3695
mov edx, 0xf6
mov eax, 0x3e
nop
cmp eax, 0xf6
cmovg eax, edx
dec ecx
jne 0x402610
mov ecx, 0x7e13
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402620
mov eax, dword [ebx + 0x20]
add eax, dword [ebp + 0xc]
mov ecx, 0x6ab1
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x24]
add eax, dword [ebp + 0xc]
mov edx, 0xc8
mov dword [ebp - 0xc], eax
mov eax, 0x3b
cmp eax, 0xc8
cmovg eax, edx
dec ecx
jne 0x402656
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0xc]
add eax, ecx
mov dword [ebp - 0x10], eax
mov edi, 0x6116
mov eax, 0x4ec4ec4f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402671
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
mov edi, esi
test eax, eax
je 0x4026c5
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x4026c5
lea esp, [esp]
mov eax, dword [ebp - 8]
mov eax, dword [eax + ebx*4]
add eax, ecx
push eax
push edx
call fcn.004030d0
add esp, 8
test eax, eax
jne 0x4026ce
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x4026a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov esi, 0x5511
movzx ecx, word [eax + ebx*2]
lea ebx, [ebx]
mov eax, 0x151d07eb
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4026e0
inc edi
mov eax, edi
and eax, 0x80000003
jns 0x402702
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402707
add edi, 5
cmp edi, 0x23a0
jl 0x4026f3
nop
inc esi
mov eax, esi
and eax, 0x80000007
jns 0x40271f
dec eax
or eax, 0xfffffff8
inc eax
jne 0x402724
add esi, 2
cmp esi, 0x405c
jl 0x402710
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x402745
add eax, dword [ebp - 0x14]
cmp ecx, eax
jb 0x4026c5
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret