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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0xc
mov edi, 0x2f47
mov dword [ebp - 4], 0x3bbf
mov dword [ebp - 8], 0x3088
cmp dword [ebp + 0xc], esi
je 0x40266b
mov esi, 0x715c
mov eax, 0x2e8ba2e9
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402441
mov ecx, 0xe9c
mov edx, 0x79
mov eax, 0x9b
cmp eax, 0x79
cmovl eax, edx
dec ecx
jne 0x402463
cmp dword [ebp + 0x10], esi
jne 0x4024b5
cmp dword [ebp + 0x18], esi
jne 0x4024b5
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 0x402494
inc esi
cmp esi, 0x5542
jl 0x402476
mov eax, 0x5d88
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test eax, eax
jne 0x4024a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x3c]
jmp 0x4024c0
mov eax, 0x13e22cbd
imul dword [ebp - 4]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x4024c0
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4026c8
cmp dword [edi + esi], 0x4550
jne 0x4026c8
xor ebx, ebx
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 0x402512
add ebx, ebx
jmp 0x40251b
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add ebx, eax
cmp ebx, 0x5077
jl 0x4024f4
mov eax, dword [edi + esi + 0x7c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4026c8
mov eax, 0x77975b9
imul dword [ebp - 8]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x402532
mov edi, dword [edi + esi + 0x78]
add edi, esi
mov ecx, 0x7f59
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402554
mov eax, 0x6350
mov edi, edi
dec eax
jne 0x402570
mov eax, dword [edi + 0x20]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x24]
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
mov ecx, 0x2b63
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402590
xor ebx, ebx
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 0x4025c2
inc ebx
cmp ebx, 0x5c65
jl 0x4025a7
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
test eax, eax
je 0x4026c8
mov eax, 0x49e7
mov esi, pe_nt_image_headers32
mov ecx, 0xba
lea esp, [esp]
cmp ecx, esi
cmovl ecx, esi
dec eax
jne 0x4025f0
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x4026c8
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + esi*4]
add eax, dword [ebp + 0xc]
push eax
push edx
call fcn.00402fc0
add esp, 8
test eax, eax
jne 0x40262a
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x402606
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, 0x3aa
movzx eax, word [eax + esi*2]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + eax*4]
add esi, dword [ebp + 0xc]
nop
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402640
cmp esi, edi
jbe 0x402662
mov eax, dword [ebp - 0x10]
add eax, edi
cmp esi, eax
jb 0x4026c8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x2dc1
mov eax, 0x473c1ab7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402670
mov eax, 0x2570
mov edx, 0x19
mov ecx, 0xb9
cmp ebx, edx
cmovg ebx, edx
dec eax
jne 0x402692
lea ebx, [ebx]
mov eax, 0x4ec4ec4f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4026a0
mov eax, 0x2ecf
mov edx, 0xfb
lea ecx, [ecx]
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x4026c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret