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

Disassembly:
push ebp
lea eax, [ecx + 0x2e8]
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x2e8]
mov ebx, dword [esp + 0x78]
mov edx, dword [eax]
cmp edx, 1
jbe 0x666d1d77
test dword [eax + 8], 0x7fffffff
jne 0x666d1d50
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 0x1c
call dword [0x66a1f9e0]
mov edx, eax
mov dword [ebp + 0x2e8], eax
mov ecx, edx
test edi, edi
je 0x666d1d83
mov ecx, dword [ebx]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x4c], ecx
mov edx, dword [edx]
cmp edx, 1
ja 0x666d1df8
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
lea ebx, [edi + ecx]
and edx, 0x7fffffff
cmp ebx, edx
jle 0x666d1c44
mov dword [esp + 4], 8
lea ecx, [ebp + 0x2e8]
mov dword [esp], ebx
call fcn.667cb320
mov eax, dword [ebp + 0x2e8]
sub esp, 8
mov ecx, dword [eax + 4]
imul edx, esi, 0x1c
mov ebx, dword [eax + 0xc]
add ebx, edx
sar edx, 2
imul edx, edx, 0xb6db6db7
add eax, ebx
imul ebx, edi, 0x1c
mov dword [esp + 4], eax
mov dword [esp + 0x14], eax
sub ecx, edx
imul ecx, ecx, 0x1c
add ebx, eax
mov dword [esp], ebx
mov dword [esp + 8], ecx
call fcn.6678ef38
cmp dword [esp + 0x14], ebx
je 0x666d1cf9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x24]
lea esi, [esi]
nop
mov eax, dword [esp + 0x18]
sub ebx, 0x1c
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
cmp dword [esp + 0x14], ebx
jne 0x666d1cc8
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov eax, dword [ebp + 0x2e8]
mov ecx, eax
add dword [eax + 4], edi
mov edx, dword [ecx]
cmp edx, 1
ja 0x666d1d8a
lea esi, [esi]
nop
mov ebx, dword [eax + 4]
lea edx, [esi + edi]
mov ecx, dword [eax + 0xc]
cmp edx, ebx
jge 0x666d1d41
imul edx, edx, 0x1c
imul ebx, ebx, 0x1c
lea edx, [ecx + edx + 0x10]
lea ecx, [eax + ecx + 0x10]
add edx, eax
add ecx, ebx
nop
mov eax, dword [edx]
cmp eax, esi
jl 0x666d1d3a
add eax, edi
mov dword [edx], eax
add edx, 0x1c
cmp edx, ecx
jne 0x666d1d30
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
lea ecx, [ecx + 0x2e8]
and eax, 0x7fffffff
mov dword [esp], eax
call fcn.667cb320
mov eax, dword [ebp + 0x2e8]
sub esp, 8
mov edx, eax
mov ecx, edx
test edi, edi
jne 0x666d1bd4
mov edx, dword [ecx]
cmp edx, 1
jbe 0x666d1d10
test dword [eax + 8], 0x7fffffff
jne 0x666d1dc8
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 0x1c
call dword [0x66a1f9e0]
mov dword [ebp + 0x2e8], eax
jmp 0x666d1d10
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x20]
and eax, 0x7fffffff
mov dword [esp], eax
call fcn.667cb320
mov eax, dword [ebp + 0x2e8]
sub esp, 8
jmp 0x666d1d10
mov ebx, dword [eax + 4]
add ebx, edi
jmp 0x666d1c22