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

Disassembly:
push ebp
mov ecx, 0xa
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x8c
mov edx, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 8]
lea edi, [esp + 0x58]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, ebp
mov eax, ebp
sar edi, 0x1f
mov edx, edi
call fcn.6658bcf0
mov dword [esp + 0x5c], eax
test eax, eax
je 0x6659cf5e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.libgcc_s_dw2_1.dll___moddi3
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x60], ebp
mov esi, dword [esp + 0x10]
mov dword [esp + 0x64], eax
sub ecx, eax
mov dword [esp + 0x68], eax
sbb ebx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
nop
mov edi, dword [esp + 0x3c]
mov edx, dword [edi + 8]
imul esi, dword [edx + 4], 0x38
add esi, dword [edi + 0xc]
cdq
add ecx, eax
mov ebp, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], esi
adc ebx, edx
mov dword [esp + 0x18], ebp
test eax, eax
je 0x6659cf20
mov eax, dword [esp + 0x1c]
mov edi, ebp
mov esi, ebp
sar edi, 0x1f
add ecx, ebp
adc ebx, edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, ebp
mov dword [esp + 0x24], ebx
mov ebx, edi
shrd ecx, edi, 7
shr ebx, 7
cdq
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, ebx
or edx, ecx
mov dword [esp + 0x10], eax
mov eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
je 0x6659cef8
mov edx, ebx
mov ebp, 1
lea esi, [esi]
shrd eax, edx, 7
shr edx, 7
add ebp, 1
mov ecx, edx
or ecx, eax
jne 0x6659ce40
mov eax, ebp
mov ebx, ecx
mov ecx, dword [esp + 0x14]
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
cmp dword [esp + 0x10], eax
sbb ecx, edx
jl 0x6659cf20
mov eax, 0x3fff
cmp eax, dword [esp + 0x18]
sbb ebx, edi
jae 0x6659ced8
mov ecx, edi
mov edx, esi
lea eax, [esp + 0x4c]
call fcn.66581dc0
mov ecx, eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x58]
call fcn.66586de0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 0x20]
lea eax, [esp + 0x58]
call fcn.66586de0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov eax, dword [eax + 4]
call fcn.6659cbd0
test eax, eax
jne 0x6659cf3f
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
jmp 0x6659cdc0
movzx eax, byte [esp + 0x30]
mov edx, esi
mov ecx, 2
and edx, 0x7f
or eax, 0xffffff80
mov byte [esp + 0x4d], dl
mov byte [esp + 0x4c], al
jmp 0x6659ce89
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
cmp eax, ecx
mov eax, edx
sbb eax, ebx
jge 0x6659cf20
mov eax, esi
mov ecx, 1
mov byte [esp + 0x4c], al
jmp 0x6659ce89
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
add edx, 0x38
call fcn.6658aeb0
add esp, 0x8c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x58]
add edx, 0x38
call fcn.6658aeb0
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x58], 7
mov eax, dword [esp + 0x68]
jmp 0x6659cdc0