Function at 0x664380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 4], 0
push esi
push edi
mov esi, eax
mov byte [esp + 0xc], 0
je 0x6643aa
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0xd], 0xffffffff
je 0x66439f
cmp dword [esi + 0x40], 0
je 0x66439f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x66439f
cmp dword [esi + 4], 0
jle 0x66439f
cmp dword [esi + 8], 0
jle 0x66439f
cmp eax, 8
jne 0x66439f
cmp dword [ebx + 0x242], 0
ja 0x66439f
mov eax, dword [esi + 0x50]
cdq
cmp edx, dword [ebx + 0x252]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jg 0x6643fd
jl 0x66462a
cmp eax, dword [ebx + 0x24e]
jbe 0x66462a
test dword [esi + 0x54], 0x10000
je 0x66440b
mov byte [esp + 0xc], 1
push 0
mov eax, esi
lea edi, [esp + 0x60]
call fcn.004d3900
push 0
lea edi, [esp + 0x48]
call fcn.004d3a60
push 0
lea edi, [esp + 0xac]
call fcn.004d3b00
lea ecx, [esp + 0x5c]
call fcn.004d3a40
test al, al
je 0x66439f
lea ecx, [esp + 0x44]
call fcn.004d3a40
test al, al
je 0x66439f
mov ecx, edi
call fcn.004d3a40
test al, al
je 0x66439f
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x44]
push 0x39
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x4c]
lea eax, [esp + 0x70]
push 0
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call fcn.006a1300
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 0x19]
add esp, 0xc
mov dword [esp + 0xa0], 0x12345
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x54], eax
xor esi, esi
jmp 0x6644cc
mov eax, dword [esp + 0x54]
test esi, esi
je 0x6644d2
shr eax, 1
mov edi, dword [esp + esi*4 + 0x44]
mov edx, dword [esp + 0x14]
imul edi, eax
lea eax, [edi + edx]
cmp eax, dword [ebx + 0x1d]
mov dword [esp + 0x58], eax
jae 0x66439f
mov eax, dword [esp + esi*4 + 0x5c]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
call fcn.006a4bd0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + esi*4 + 0x50]
add dword [esp + 0x1c], edi
mov dword [esp + esi*4 + 0x78], edx
mov dword [esp + esi*4 + 0x84], edi
mov dword [esp + esi*4 + 0x90], eax
mov eax, dword [esp + 0x64]
add esi, 1
add esp, 0xc
cmp esi, 3
mov dword [esp + 0x14], eax
jl 0x6644c8
mov ecx, dword [ebx + 0x1d]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
cmp byte [esp + 0xc], 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edx
je 0x664566
mov byte [esp + 0xa4], 1
lea esi, [ebx + 5]
push esi
mov ecx, 4
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 2
call fcn.00499380
push esi
mov ecx, 0x39
lea edx, [esp + 0x70]
call fcn.00499380
xor eax, eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], al
push esi
lea ecx, [eax + 0x19]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3d], 0x12345
call fcn.00499420
cmp eax, 0x19
jne 0x66439f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6645e3
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x23e], ecx
mov dword [ebx + 0x242], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x226], eax
xor eax, eax
cmp byte [esp + 0x38], al
mov dword [ebx + 0x222], edx
mov edx, dword [esp + 0x34]
setne al
mov dword [ebx + 0x22a], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x22e], edx
mov dword [ebx + 0x24e], edi
mov dword [ebx + 0x252], ecx
mov dword [ebx + 0x23a], eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4