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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ecx, ecx
push edi
xor esi, esi
mov edi, 0x6bc6
mov ebx, 0x766f
lea edx, [ecx + 0x65]
mov dword [ebp - 8], 0x70d9
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x402490
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402493
inc ecx
cmp ecx, 0x395
jl 0x402481
cmp dword [ebp + 0xc], esi
je 0x4026c0
cmp dword [ebp + 0x10], esi
jne 0x4024b2
cmp dword [ebp + 0x18], esi
je 0x402718
mov eax, 0x582f
mov ecx, 0x29
lea esp, [esp]
cmp edx, ecx
cmovg edx, ecx
dec eax
jne 0x4024c0
mov ecx, 0x7c20
lea ecx, [ecx]
mov eax, 0x8ca29c05
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4024d0
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 0x402504
add ebx, 5
cmp ebx, 0x4d32
jl 0x4024e7
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
mov edi, dword [eax + 0x3c]
add edi, eax
cmp word [eax], cx
jne 0x402718
cmp dword [edi], 0x4550
jne 0x402718
mov ecx, 0x4036
mov edx, 0x57
mov eax, 0x1d
lea ecx, [ecx]
cmp eax, 0x57
cmovg eax, edx
dec ecx
jne 0x402540
mov eax, dword [edi + 0x7c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402718
mov eax, ecx
and eax, 0x80000007
jns 0x402565
dec eax
or eax, 0xfffffff8
inc eax
jne 0x40256c
add ecx, 3
jmp 0x40256d
inc ecx
cmp ecx, 0x74ea
jl 0x402557
mov edi, dword [edi + 0x78]
mov ecx, dword [ebp + 0xc]
add edi, ecx
mov dword [ebp - 4], edi
mov edi, 0x3f3d
mov eax, 0x2fa0be83
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402585
mov edi, dword [ebp - 4]
mov ebx, dword [edi + 0x20]
add ebx, ecx
mov edi, 0x351e
mov eax, 0x4c346405
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4025a5
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x24]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, 0x29d
dec eax
jne 0x4025c8
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, edx
shr eax, 0x10
test eax, eax
je 0x402718
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x402718
mov edi, edi
mov eax, dword [ebx + esi*4]
add eax, ecx
push eax
push edx
call fcn.00402f40
add esp, 8
test eax, eax
jne 0x402616
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4025f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, 0x21
movzx edx, word [eax + esi*2]
mov eax, 0x3fa9
mov esi, 0xb2
lea esp, [esp]
cmp ecx, esi
cmovl ecx, esi
dec eax
jne 0x402630
mov esi, dword [ebp - 0x10]
mov eax, edx
mov esi, dword [esi + eax*4]
add esi, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
mov eax, 0x2aaaaaab
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, ebx
sub eax, ecx
jne 0x402662
add ebx, 2
cmp ebx, 0x717
jl 0x402645
mov edi, 0x45b8
nop
mov eax, 0x4bda12f7
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402670
mov edi, dword [ebp - 4]
jmp 0x402690
mov eax, 0x621b97c3
imul dword [ebp - 8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x402690
cmp esi, edi
jbe 0x4026b4
mov eax, dword [ebp - 0x14]
add eax, edi
cmp esi, eax
jb 0x402718
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 0x4026e4
inc esi
cmp esi, 0x6884
jl 0x4026c0
lea esp, [esp]
mov eax, 0x9cc8e161
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4026f0
mov eax, 0x3159721f
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402705
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret