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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
push 4
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov dword [ebp - 0x20], edi
movsx ebx, word [edi + 0x3a]
mov eax, ebx
mov dword [ebp - 8], ebx
shl eax, 3
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x3c]
mov ebx, dword [ebp - 4]
mov dword [ebx + eax], ecx
mov ecx, ebx
mov dword [ecx + eax + 4], edx
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x50]
mov dword [eax + ebx + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov dword [eax + ecx + 0xc], edx
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov dword [eax + ebx*8 + 0x10], ecx
mov dword [eax + ebx*8 + 0x14], edx
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xc0]
mov dword [eax + ebx*8 + 0x18], ecx
xor ecx, ecx
mov dword [eax + ebx*8 + 0x1c], edx
mov eax, dword [edi + 0x40]
mov byte [ebx + eax], cl
mov eax, dword [edi + 0x40]
mov byte [eax + ebx + 1], cl
mov eax, dword [edi + 0x40]
mov byte [eax + ebx + 2], cl
mov eax, dword [edi + 0x40]
mov byte [eax + ebx + 3], cl
pop eax
add ebx, eax
test byte [esi + 0x10], 2
mov dword [ebp - 8], ebx
jne 0x65f2ae
push ecx
push ecx
lea ecx, [esi + 0x78]
lea edx, [edi + 0x38]
call fcn.0065ef40
movzx eax, word [esi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [esi + 0x88]
push dword [esi + 0x8c]
call fcn.006f6760
add esp, 0x14
test byte [esi + 0x10], 1
mov edi, dword [edi + 0x3c]
lea edx, [edi + ebx*8]
jne 0x65f338
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
cmp edi, edx
jae 0x65f338
mov ebx, edx
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
add edi, 8
cmp edi, ebx
jb 0x65f2d2
mov ebx, dword [ebp - 8]
test byte [esi + 0x10], 2
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + ebx*8 - 0x18]
mov eax, dword [eax + ebx*8 - 0x14]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], eax
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + ebx*8 - 0x10]
mov eax, dword [eax + ebx*8 - 0xc]
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb8], eax
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + ebx*8 - 8]
mov eax, dword [eax + ebx*8 - 4]
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], eax
jne 0x65f3a8
push 4
pop eax
add word [esi + 0x80], ax
xor dl, dl
mov ecx, esi
call fcn.0065efa9
jmp 0x65f3aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret