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

Disassembly:
sub esp, 0xa0
push ebp
xor ebp, ebp
cmp dword [esp + 0xb8], ebp
jne 0x661b8d
mov eax, dword [edi]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
push esi
push eax
push ecx
push edi
call fcn.00661090
add esp, 0x20
pop ebp
add esp, 0xa0
ret
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
imul eax, esi
push ebx
push eax
call fcn.00724cfe
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
jmp 0x661bb6
mov ebx, dword [esp + 0xc]
xor ebp, ebp
mov eax, 4
mov ecx, 2
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
mov ebp, 8
mov edx, 1
mov dword [esp + 0x88], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov ebp, dword [esp + ebx + 0x70]
mov dword [esp + 0x60], ecx
mov eax, dword [esp + ebx + 0x54]
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [edi]
mov edx, ebp
sub edx, eax
mov eax, dword [ecx]
lea eax, [edx + eax - 1]
xor edx, edx
div ebp
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], ebp
mov ebp, eax
mov eax, dword [esp + ebx + 0x8c]
mov ebx, dword [esp + ebx + 0x38]
sub edx, ebx
mov dword [esp + 0x20], eax
lea eax, [edx + eax - 1]
xor edx, edx
div dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov dword [esp + 8], eax
test ebp, ebp
je 0x661dac
test eax, eax
je 0x661dac
mov ebx, dword [ecx + 8]
mov ecx, dword [esp + 0xb4]
imul ebx, ebp
mov edx, dword [esp + 0xb8]
imul ebx, ecx
push edx
push ecx
mov ecx, dword [esp + 0xb4]
add ebx, 7
push eax
sar ebx, 3
inc ebx
imul ebx, eax
mov eax, dword [esp + 0xbc]
push ebp
push esi
push eax
push ecx
push edi
mov dword [esp + 0x4c], ebx
call fcn.00661090
add esp, 0x20
test eax, eax
je 0x661dd5
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x661d92
mov edx, dword [esp + 0xc]
mov eax, dword [esp + edx + 0x38]
mov dword [esp + 0x18], eax
mov eax, ebp
imul eax, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], eax
mov dword [esp + 8], ecx
test ebp, ebp
jle 0x661d7f
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
lea ebx, [ebx]
mov eax, dword [edi]
mov ecx, dword [eax]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x28]
mov edx, dword [edi + 0xc]
add ecx, ebp
imul ecx, esi
add ecx, dword [esp + 0x14]
push esi
add edx, ebx
push edx
push ecx
call fcn.007248d0
add ebp, dword [esp + 0x3c]
add esp, 0xc
add ebx, esi
sub dword [esp + 0x1c], 1
jne 0x661d40
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
add dword [esp + 0x18], edx
add dword [esp + 0x10], eax
sub dword [esp + 8], 1
jne 0x661d28
mov eax, dword [edi + 0xc]
push eax
call fcn.007238ab
add dword [esp + 0xb0], ebx
add esp, 4
sub dword [esp + 0xb0], ebx
mov eax, dword [esp + 0xc]
add eax, 4
cmp eax, 0x1c
mov dword [esp + 0xc], eax
jl 0x661bb0
mov edx, dword [esp + 0x14]
pop ebx
mov dword [edi + 0xc], edx
mov eax, 1
pop ebp
add esp, 0xa0
ret
mov ecx, dword [esp + 0x14]
push ecx
call fcn.007238ab
add esp, 4
pop ebx
xor eax, eax
pop ebp
add esp, 0xa0
ret