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

Disassembly:
mov eax, 0x34
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
push 1
push eax
mov dword [esp + 0x18], eax
lea eax, [edi + 0x60]
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
call fcn.00689800
add esp, 0xc
mov esi, eax
cmp ebp, 0x7fffffff
ja 0x65d6c4
cmp dword [esp + 0x60], 0x7fffffff
ja 0x65d6c4
test esi, esi
je 0x65d6c4
cmp dword [esi + 0x3c], ebp
jae 0x65d6c4
push dword [esi + 0x38]
call fcn.006527d0
add esp, 4
cmp dword [edi + 0x30c], edx
ja 0x65d6c4
jb 0x65d4e2
cmp dword [edi + 0x308], eax
jae 0x65d6c4
xor edx, edx
cmp dword [esp + 0x10], 3
je 0x65d4f7
mov dword [ebx], edx
xor ebp, ebp
mov dword [ebx + 4], edx
jmp 0x65d598
mov al, byte [esp + 0x70]
cmp al, 1
ja 0x65d6c4
mov ah, byte [esi + 0x40]
movzx ecx, al
mov dword [esp + 0x10], ecx
cmp ah, 3
jne 0x65d51a
mov ebp, dword [esi + 0x28]
and ebp, 1
jmp 0x65d51c
mov ebp, ecx
movzx eax, ah
sub eax, 1
je 0x65d550
sub eax, 1
je 0x65d53b
sub eax, 1
jne 0x65d569
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x65d569
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and edx, 1
xor edx, ecx
mov ecx, dword [esi + 0x28]
sub ecx, edx
sbb eax, 0
jmp 0x65d564
mov ecx, dword [esi + 0x28]
xor eax, eax
and ecx, 1
xor ecx, dword [esp + 0x10]
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
cmp ebp, 2
jae 0x65d6c4
test edx, edx
je 0x65d598
mov eax, dword [esp + 0x68]
cmp eax, dword [edi + 0x314]
ja 0x65d6c4
jb 0x65d598
mov ecx, dword [esp + 0x64]
cmp ecx, dword [edi + 0x310]
jae 0x65d6c4
mov ebx, dword [esi + ebp*4 + 0x18]
push ebx
call fcn.00559c60
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, 8
jl 0x65d6c4
push eax
shl ebp, 4
lea ecx, [esi + 0x42]
add ecx, ebp
lea eax, [esp + 0x34]
push ecx
push eax
call fcn.006fb4d0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
mov ecx, eax
mov ebp, dword [esp + 0x70]
push 0
xor byte [esp + edx + 0x3f], al
mov eax, dword [esp + 0x78]
shrd ecx, eax, 8
mov eax, dword [esp + 0x78]
xor byte [esp + edx + 0x3e], cl
mov ecx, dword [esp + 0x74]
shrd ecx, eax, 0x10
xor byte [esp + edx + 0x3d], cl
mov ecx, dword [esp + 0x78]
mov eax, ecx
xor byte [esp + edx + 0x3b], cl
shrd ebp, eax, 0x18
mov eax, ebp
mov dword [esp + 0x20], ebp
xor byte [esp + edx + 0x3c], al
mov eax, ecx
shr eax, 8
xor byte [esp + edx + 0x3a], al
mov eax, ecx
shr eax, 0x10
xor byte [esp + edx + 0x39], al
lea eax, [esp + 0x40]
push eax
push 0
push 0
shr ecx, 0x18
xor byte [esp + edx + 0x44], cl
push 0
push ebx
call fcn.0055b920
add esp, 0x24
cmp eax, 1
jne 0x65d6c4
mov ecx, dword [esi + 0x3c]
mov ebp, dword [esp + 0x1c]
mov eax, ebp
sub eax, ecx
add eax, dword [esp + 0x18]
push eax
push ecx
push 0x11
push ebx
call fcn.0055bec0
add esp, 0x10
cmp eax, 1
jne 0x65d6c4
push dword [esp + 0x60]
lea eax, [esp + 0x18]
push dword [esp + 0x24]
push eax
push 0
push ebx
call fcn.0055b950
add esp, 0x14
cmp eax, 1
jne 0x65d6c4
sub ebp, dword [esi + 0x3c]
lea eax, [esp + 0x14]
push ebp
push dword [esp + 0x1c]
push eax
push dword [esp + 0x30]
push ebx
call fcn.0055b950
add esp, 0x14
cmp eax, 1
jne 0x65d6c4
lea eax, [esp + 0x28]
push eax
push 0
push ebx
call fcn.0055bad0
add esp, 0xc
cmp eax, 1
je 0x65d6d9
add dword [edi + 0x308], 1
adc dword [edi + 0x30c], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00541f33
add esp, 0x34
ret
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [esp + 0x38]
pop ebp
pop ebx
xor ecx, esp
call fcn.00541f33
add esp, 0x34
ret