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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x3c]
lea eax, [ebx + ebx]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [eax]
push edi
mov edi, dword [ebp]
cmp esi, edi
je 0x660f9a
mov ecx, ebx
imul ecx, dword [esp + 0x54]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 4]
mov edi, dword [ebp + 4]
cmp esi, edi
je 0x660fc8
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
imul ecx, dword [esp + 0x4c]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 8]
mov edi, dword [ebp + 8]
cmp esi, edi
je 0x660ff2
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
imul ecx, dword [esp + 0x4c]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x50]
cdq
and edx, 0xf
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x54]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
lea edx, [eax - 1]
sar edi, 4
test edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
jle 0x6610d5
mov esi, dword [esp + 0x4c]
mov eax, ebx
shl eax, 5
mov dword [esp + 0x24], eax
mov eax, esi
shl eax, 4
mov dword [esp + 0x20], eax
mov eax, ebx
mov ecx, ebx
imul eax, eax, 0xe
imul ecx, ecx, 0x1e
imul esi, esi, 0xe
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
jmp 0x661060
mov ecx, dword [esp + 0x10]
mov edi, edi
mov edx, dword [esp + 0x44]
mov eax, dword [ebp]
push edi
push edx
mov edx, dword [esp + 0x60]
push edx
push dword [esp + 0x60]
push dword [esp + 0x60]
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 8]
push ebx
add edx, esi
push edx
mov edx, dword [ebp + 4]
add edx, esi
add ecx, eax
push edx
push ecx
mov ecx, dword [esp + 0x3c]
add ecx, eax
push ecx
call fcn.00660560
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
add ecx, edi
add esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x40]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x44]
add esp, 0x2c
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x66105a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov esi, dword [ebp]
imul edx, edi
mov ecx, eax
shl ecx, 4
sub ecx, 9
imul ecx, ebx
test edi, edi
lea ecx, [esi + ecx*2]
mov dword [esp + 0x28], ecx
jle 0x6611b7
mov eax, dword [esp + 0x1c]
mov ebx, ecx
sub ebx, eax
lea esi, [eax + ecx]
lea eax, [ecx + eax*2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
lea edx, [eax + edx*4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], edi
jmp 0x661130
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea esp, [esp]
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov eax, dword [edx*4 + 0x30259ff0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
sub eax, esi
sub ecx, esi
mov edx, ebx
sub edx, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], 0x10
jmp 0x661170
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
nop
add eax, esi
push eax
push esi
add edx, esi
lea ebx, [ecx + esi]
mov ecx, dword [esp + 0x40]
push edx
push ecx
call fcn.00660090
mov eax, dword [esp + 0x28]
add esp, 0x10
add esi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x661163
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], eax
jne 0x661120
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
xor esi, esi
lea ecx, [edi - 1]
cmp ecx, esi
mov dword [esp + 0x48], esi
jle 0x66122f
mov dword [esp + 0x44], esi
mov edx, dword [ebp]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x5c]
push edi
add ecx, edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [ebp + 8]
push edx
lea edx, [eax + esi + 0xe]
mov eax, dword [ebp + 4]
push ebx
push edx
lea edx, [esi + eax + 0xe]
push edx
lea eax, [ecx + 0x1e]
push eax
add ecx, 0xe
push ecx
call fcn.00660700
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
add ecx, 0x20
add esp, 0x30
inc eax
mov dword [esp + 0x44], ecx
lea ecx, [edi - 1]
add esi, 0x10
mov dword [esp + 0x48], eax
cmp eax, ecx
mov eax, dword [esp + 0x40]
jl 0x6611c8
mov esi, dword [ebp]
lea ecx, [edi - 1]
mov edx, ecx
shl edx, 5
test eax, eax
lea ebx, [edx + esi + 0xe]
jle 0x66129f
lea edx, [edi*4]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x58]
lea edi, [edx + ecx*4]
mov dword [esp + 0x54], eax
jmp 0x661260
mov eax, dword [edi]
mov ebp, dword [eax*4 + 0x30259ff0]
mov esi, 0x10
mov edi, edi
lea ecx, [ebx + 4]
push ecx
lea edx, [ebx + 2]
push edx
lea eax, [ebx - 2]
push eax
push ebp
call fcn.00660090
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ebx, ecx
dec esi
jne 0x661270
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
add edi, ecx
dec eax
mov dword [esp + 0x54], eax
jne 0x661260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret