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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x6350
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov ecx, 0x3a52
xor esi, esi
mov dword [ebp - 8], 0x7d3a
mov edi, 0x31be
mov eax, 0x4bda12f7
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4024a6
cmp dword [ebp + 0xc], ebx
je 0x40271b
mov edx, 0x3fc0
mov dword [ebp - 4], 0xa4
mov eax, 0x3a
cmp eax, 0xa4
cmovg eax, dword [ebp - 4]
dec edx
jne 0x4024d3
cmp dword [ebp + 0x10], ebx
jne 0x40250e
cmp dword [ebp + 0x18], ebx
jne 0x40250e
lea esp, [esp]
mov eax, 0xd62b80d7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4024f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edi, 0x3daa
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 4], eax
mov edi, edi
mov eax, 0x2e8ba2e9
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402520
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 0x402553
add ebx, 2
cmp ebx, 0xc16
jl 0x402533
mov ecx, dword [ebp + 0xc]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40271b
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0x4550
jne 0x40271b
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40271b
mov edi, 0x5501
mov edi, edi
mov eax, 0x63e7063f
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402590
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, 0x50bb
mov eax, 0xb30f6353
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4025b0
mov ecx, 0x1da9
lea ebx, [ebx]
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4025d0
mov ecx, 0x70ea
lea ebx, [ebx]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4025f0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1c]
add ecx, edx
add eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
mov ebx, 0x7f61
mov eax, 0xa57eb503
imul ebx
add edx, ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402625
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
test eax, eax
je 0x40271b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], ebx
jbe 0x402680
mov eax, dword [ecx + ebx*4]
add eax, dword [ebp + 0xc]
push eax
push edx
call fcn.00402df0
add esp, 8
test eax, eax
jne 0x402724
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x402652
lea esp, [esp]
inc esi
mov eax, 0x2aaaaaab
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x40269d
add esi, 2
cmp esi, 0xc16
jl 0x402680
mov eax, 0x3a40
lea ebx, [ebx]
dec eax
jne 0x4026b0
mov eax, 0x27932b49
imul dword [ebp - 8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x4026b3
mov edi, 0x5a6e
nop
mov eax, 0x5397829d
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4026d0
mov edi, dword [ebp - 0x1c]
mov eax, 0x8fb823ef
imul edi
add edx, edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4026e6
mov ecx, 0x41e
mov edx, 0xc4
mov eax, 0x47
lea ebx, [ebx]
cmp eax, 0xc4
cmovl eax, edx
dec ecx
jne 0x402710
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, 0x4da5
movzx esi, word [eax + ebx*2]
mov eax, 0xb70fbb5b
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402730
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x40275e
add eax, dword [ebp - 0x18]
cmp ecx, eax
jb 0x40271b
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret