Function at 0x402550
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
xor edi, edi
mov ecx, 0x2483
xor esi, esi
mov dword [ebp - 8], 0x1c0b
mov dword [ebp - 0xc], 0x12d7
mov ebx, 0x29c9
mov eax, 0x60606061
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402575
mov esi, 0x79e1
lea ecx, [ecx]
mov eax, 0x66666667
imul esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402590
mov esi, ebx
cmp dword [ebp + 0xc], ebx
je 0x402820
cmp dword [ebp + 0x10], ebx
jne 0x4025bc
cmp dword [ebp + 0x18], ebx
je 0x402820
mov ecx, 0x29f9
mov edx, 0x38
mov eax, 0xc6
jmp 0x4025d0
cmp eax, 0x38
cmovg eax, edx
dec ecx
jne 0x4025d0
mov ebx, 0x3190
mov edi, edi
mov eax, 0x1b4e81b5
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4025e0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 4], eax
mov edi, edi
inc edi
mov eax, 0x2aaaaaab
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x40261b
inc edi
cmp edi, 0x7138
jl 0x402600
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402833
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x402833
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402833
xor edi, edi
inc edi
mov eax, 0x66666667
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, edi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x402670
add edi, 2
cmp edi, 0x921
jl 0x402653
mov edi, dword [ebp - 4]
mov edi, dword [edi + 0x78]
add edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, 0x7697
lea esp, [esp]
mov eax, 0x473c1ab7
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402690
mov edi, dword [ebp - 4]
mov eax, esi
and eax, 0x80000001
jns 0x4026b4
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4026bb
add esi, 3
jmp 0x4026bc
inc esi
cmp esi, 0x7489
jl 0x4026a6
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 0x4026e1
add ebx, 5
cmp ebx, 0x4a3d
jl 0x4026c4
mov ebx, dword [edi + 0x20]
mov edx, dword [ebp + 0xc]
add ebx, edx
mov eax, 0xdb7
mov esi, 0x97
mov ecx, 0x7b
cmp ecx, esi
cmovg ecx, esi
dec eax
jne 0x402700
mov eax, dword [edi + 0x24]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x1c]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test eax, eax
je 0x402833
mov edi, 0x655b
jmp 0x402730
mov eax, 0x2e8ba2e9
imul edi
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402730
mov edi, dword [ebp - 4]
mov ecx, 0x6ab8
lea ebx, [ebx]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402750
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x402833
mov eax, dword [ebx + esi*4]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00403070
add esp, 8
test eax, eax
jne 0x402793
inc esi
cmp esi, dword [edi + 0x18]
jb 0x402770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + esi*2]
lea ebx, [ebx]
mov eax, 0x288df0cb
imul dword [ebp - 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x4027a0
mov edi, 0x5983
lea esp, [esp]
mov eax, 0x38e38e39
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4027c0
mov edi, dword [ebp - 4]
jmp 0x4027e0
mov eax, 0x5d9f7391
imul dword [ebp - 0xc]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
jne 0x4027e0
mov eax, ecx
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
cmp ecx, edi
jbe 0x40280f
mov eax, dword [ebp - 0x18]
add eax, edi
cmp ecx, eax
jb 0x402833
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x63e7063f
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402820
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret