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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
mov ecx, 0x4bb3
mov esi, 0x377d
mov edi, 0x6fea
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0xc], ebx
je 0x4025b0
mov ecx, 0x1911
jmp 0x402350
mov eax, 0xb11fd3b9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402350
cmp dword [ebp + 0x10], ebx
jne 0x40238c
cmp dword [ebp + 0x18], ebx
jne 0x40238c
nop
mov eax, 0x13e22cbd
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402370
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, 0x5a4d
mov edi, dword [esi + 0x3c]
cmp word [esi], ax
jne 0x4025d3
cmp dword [edi + esi], 0x4550
jne 0x4025d3
mov eax, dword [edi + esi + 0x7c]
mov dword [ebp - 4], eax
mov ecx, 0x4a90
lea esp, [esp]
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4023c0
mov ecx, 0x65b9
lea ebx, [ebx]
mov eax, 0xb30f6353
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4023e0
mov ecx, 0x4d50
mov edx, 0xf3
mov eax, 0xeb
cmp eax, 0xf3
cmovg eax, edx
dec ecx
jne 0x402404
cmp dword [ebp - 4], ebx
je 0x4025d3
mov ecx, 0x407b
mov edx, 0xf9
mov eax, 0x12
cmp eax, 0xf9
cmovl eax, edx
dec ecx
jne 0x402427
mov edi, dword [edi + esi + 0x78]
add edi, esi
mov dword [ebp - 8], edi
jmp 0x402440
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x40244f
dec eax
or eax, 0xfffffffe
inc eax
jne 0x402452
inc ecx
cmp ecx, 0x6814
jl 0x402440
mov eax, dword [edi + 0x20]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x24]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 0x14], eax
mov ebx, 0x65af
jmp 0x402480
mov eax, 0x288df0cb
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402480
mov edi, 0x5023
jmp 0x4024a0
mov eax, 0x1948b0fd
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4024a0
mov edi, dword [ebp - 8]
mov ebx, 0x5a36
jmp 0x4024c0
mov eax, 0x2f149903
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4024c0
mov ecx, 0x4bd1
jmp 0x4024e0
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4024e0
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x4025d3
xor esi, esi
cmp dword [edi + 0x18], ebx
jbe 0x4025d3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, dword [ebp + 0xc]
push eax
push ecx
call fcn.00402d20
add esp, 8
test eax, eax
jne 0x402537
mov ecx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x402510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + esi*2]
mov eax, 0x7f15
dec eax
jne 0x402543
mov ebx, 0x25fd
jmp 0x402550
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402550
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, ecx
mov esi, dword [esi + eax*4]
add esi, dword [ebp + 0xc]
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 0x40258b
add ebx, 2
cmp ebx, 0x3a35
jl 0x402570
cmp esi, edi
jbe 0x4025a0
mov eax, dword [ebp - 4]
add eax, edi
cmp esi, eax
jb 0x4025d3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4025b0
mov eax, 0x473c1ab7
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4025c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret