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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x78]
mov edx, dword [edx + 8]
cmp dword [edx + 8], 0
je 0x65ac7a
cmp dword [eax + 0x7c], 0
je 0x65ac7a
cmp byte [ebx + 0x6c], 0
jne 0x65aa96
lea eax, [ebx + 0x16c]
call fcn.006ceab8
test al, al
jne 0x65aa96
lea esi, [ebx + 0x16c]
lea edi, [esp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x65aaa4
lea esi, [ebx + 0x15c]
lea edi, [esp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
call fcn.006ceab8
test al, al
jne 0x65abc2
mov eax, dword [ebx + 4]
cmp byte [eax + 0x81], 0
je 0x65abc2
mov dl, 1
mov eax, dword [0x50a748]
call fcn.0051383c
mov esi, eax
lea eax, [esp + 0xc]
call fcn.006cec0c
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [esp + 0xc]
call fcn.006cec28
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004a0f98
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 0x18]
call fcn.0051415c
push eax
mov eax, esi
call fcn.0051415c
pop ecx
pop edx
call fcn.0050de10
cmp byte [ebx + 0x17c], 0
je 0x65ab5f
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov dl, 1
mov eax, esi
call fcn.0051566c
mov edx, dword [ebx + 0x180]
mov eax, esi
call fcn.0051561c
mov eax, dword [ebx + 0x5c]
add eax, 3
mov dword [esp + 4], eax
lea eax, [ebx + 0x5c]
call fcn.006cec28
mov edi, eax
sar edi, 1
jns 0x65ab7a
adc edi, 0
add edi, dword [ebx + 0x60]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x65ab8b
adc eax, 0
sub edi, eax
mov dword [esp + 8], edi
push esi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edi, dword [eax]
call dword [edi + 0x44]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebx + 0x5c]
add edx, 3
add eax, edx
add eax, 3
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407538
jmp 0x65abc9
mov eax, dword [ebx + 0x5c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x5c]
call fcn.006cec28
sar eax, 1
jns 0x65abd8
adc eax, 0
add eax, dword [ebx + 0x60]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 0x7c]
mov edx, dword [edx + 0x38]
sar edx, 1
jns 0x65abeb
adc edx, 0
sub eax, edx
sub eax, 2
mov dword [esp + 8], eax
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 8]
mov ebp, dword [eax + 8]
dec ebp
test ebp, ebp
jl 0x65ac7a
inc ebp
xor esi, esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x78]
mov edx, esi
call fcn.0067cb94
mov edi, eax
cmp byte [edi + 0x15], 0
je 0x65ac76
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0x38]
add eax, dword [esp + 8]
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x7c]
mov ecx, dword [eax + 0x3c]
add ecx, dword [esp + 0xc]
add ecx, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
call fcn.004a0f98
push esi
lea esi, [esp + 0x20]
add edi, 0x24
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, esi
mov edx, dword [esp]
mov eax, ebx
call fcn.0065a978
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0x3c]
add eax, 8
add dword [esp + 4], eax
inc esi
dec ebp
jne 0x65ac05
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret