Function at 0x408220
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
xor edi, edi
mov eax, 5
mov ecx, 0x6956
xor esi, esi
mov dword [ebp - 0xc], 0x1fd3
mov edx, 0x7600
mov dword [ebp - 8], 0x23
lea ebx, [ebx]
cmp eax, 0x23
cmovg eax, dword [ebp - 8]
dec edx
jne 0x408250
cmp dword [ebp + 0xc], esi
je 0x408530
mov edi, 0x5006
jmp 0x408270
mov eax, 0x66666667
imul edi
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x408270
cmp dword [ebp + 0x10], esi
jne 0x408290
cmp dword [ebp + 0x18], esi
je 0x408543
mov ecx, 0x5113
mov edx, 0x31
mov eax, 0x6f
nop
cmp eax, 0x31
cmovg eax, edx
dec ecx
jne 0x4082a0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 4], eax
mov ecx, 0x1d93
lea esp, [esp]
mov eax, 0xb30f6353
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4082c0
mov eax, dword [ebp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408543
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x408543
mov edi, 0x28dc
lea ebx, [ebx]
mov eax, 0x1b4e81b5
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x408300
mov eax, 0xf72
mov edx, 0x21
mov ecx, 0xfa
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x408322
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x408543
mov ecx, 0x62cc
mov eax, 0x964fda6d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x408340
mov eax, dword [ebp - 4]
mov edx, 0x3e
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 0xc]
mov ecx, 0xe2
mov dword [ebp - 4], eax
mov eax, 0x1fa
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x408370
mov esi, 0x6d9f
lea ecx, [ecx]
mov eax, 0x2fa0be83
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x408380
xor ecx, ecx
inc ecx
mov eax, ecx
and eax, 0x80000007
jns 0x4083a4
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4083a7
inc ecx
cmp ecx, 0x562c
jl 0x408395
mov ecx, 0x602a
mov eax, 0xa80a80a9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4083b4
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x20]
add eax, dword [ebp + 0xc]
mov ecx, 0x7767
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
mov eax, 0x3e0f83e1
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4083e0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x24]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test eax, eax
je 0x4084c5
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ecx + 0x18], eax
jbe 0x40844f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.00408dc0
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
jne 0x4084e5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x18]
jb 0x408421
mov eax, 0x359
mov edx, 0xe5
mov ecx, 0x60
mov edi, edi
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x408460
mov ebx, 0x164d
lea ecx, [ecx]
mov eax, 0x94f2095
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x408470
mov ebx, 0x3e4f
inc esi
mov eax, 0x38e38e39
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x4084a5
add esi, 2
cmp esi, 0x79f3
jl 0x408488
lea ecx, [ecx]
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4084b0
mov eax, 0x67b23a55
imul dword [ebp - 0xc]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
jne 0x4084c5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx + eax*2]
lea esp, [esp]
inc edi
mov eax, edi
and eax, 0x80000007
jns 0x4084ff
dec eax
or eax, 0xfffffff8
inc eax
jne 0x408504
add edi, 5
cmp edi, 0xca5
jl 0x4084f0
mov eax, ecx
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x408525
add eax, dword [ebp - 0x1c]
cmp ecx, eax
jb 0x408543
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x22b63cbf
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x408530
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret