Function at 0x402640
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
mov esi, 0x4d3
mov ebx, 0x4be6
xor ecx, ecx
mov dword [ebp - 4], 0x47c3
mov dword [ebp - 8], 0x6538
mov dword [ebp - 0xc], 0x7f42
mov dword [ebp - 0x10], 0x2dc0
mov edi, 0x5acd
mov eax, 0x9c09c09d
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402676
mov edi, 0x17ec
cmp dword [ebp + 0xc], ecx
je 0x402917
cmp dword [ebp + 0x10], ecx
jne 0x4026ec
cmp dword [ebp + 0x18], ecx
jne 0x4026ec
mov eax, 0x66666667
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4026a3
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x4026c5
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4026c8
inc ecx
cmp ecx, 0x273f
jl 0x4026b6
mov eax, 0x342da7f3
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4026d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edi
inc ebx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x40270a
add ebx, ebx
cmp ebx, 0x7584
jl 0x4026f0
mov eax, 0x6f74ae27
imul dword [ebp - 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x402712
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [esi + 0x3c]
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 0x40274c
inc ebx
cmp ebx, 0x22ee
jl 0x402731
mov eax, 0x7e07e07f
imul dword [ebp - 8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x402754
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40292c
cmp dword [edi + esi], 0x4550
jne 0x40292c
mov eax, dword [edi + esi + 0x7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40292c
mov eax, 0x63e7063f
imul dword [ebp - 0xc]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
jne 0x402795
mov ecx, 0x269c
mov edx, 0x47
mov eax, 0x5a
jmp 0x4027c0
cmp eax, 0x47
cmovg eax, edx
dec ecx
jne 0x4027c0
mov edi, dword [edi + esi + 0x78]
add edi, esi
mov dword [ebp - 0xc], edi
mov ecx, 0xb2
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4027d7
mov ecx, 0x39e9
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4027f1
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebx, esi
add eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov eax, 0x2f2f
mov edx, pe_nt_image_headers32
mov ecx, 0x16
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x402825
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 0x14], eax
mov ebx, 0x7f94
lea ebx, [ebx]
mov eax, 0x2e8ba2e9
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402840
mov ebx, dword [ebp - 8]
mov edi, 0x3d4e
jmp 0x402860
mov eax, 0x38e38e39
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402860
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x40292c
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x40292c
mov eax, dword [ebx + esi*4]
add eax, dword [ebp + 0xc]
push eax
push ecx
call fcn.00403090
add esp, 8
test eax, eax
jne 0x4028b5
mov ecx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x402891
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx ecx, word [eax + esi*2]
lea esp, [esp]
mov eax, 0x30c30c31
imul dword [ebp - 0x10]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], eax
jne 0x4028c0
mov edi, 0x4614
lea esp, [esp]
mov eax, 0x3531dec1
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4028e0
mov edi, dword [ebp - 0xc]
mov eax, ecx
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
cmp ecx, edi
jbe 0x40290e
mov eax, dword [ebp - 0x18]
add eax, edi
cmp ecx, eax
jb 0x40292c
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x8c08c08d
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402917
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret