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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x65f250
sub esp, 0x70
lea edi, [esp + 0xa0]
xor eax, eax
call fcn.00463354
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ebx
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
test edx, edx
je 0x65ef6d
cmp byte [ebx], 0x2f
je 0x65ef8b
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xbc], eax
jmp 0x65ef99
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], edx
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.0065f260
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov byte [esp + 0xcb], al
test ebx, ebx
jne 0x65f236
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + 0x3c]
test eax, eax
jl 0x65f214
jg 0x65f114
lea esi, [ecx + 0x20]
mov dword [esp + 0x30], esi
lea edi, [esp + 0x34]
call fcn.0046384e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x65f05f
shl ecx, 1
mov edx, eax
shr eax, 0x1f
or eax, ecx
mov ecx, edx
shl edx, 1
mov ebx, eax
shl eax, 1
shr edx, 0x1f
or eax, edx
mov edx, eax
add eax, 0xd7b17f80
shr ebx, 0x1f
add edx, 0xd7b17f80
adc ebx, 0xd
jmp 0x65f06d
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edx, ecx
mov ecx, eax
mov eax, edx
test eax, eax
sete al
test ebx, ebx
sete dl
and edx, eax
test dl, dl
je 0x65f0a4
test ecx, 0x3fffffff
jne 0x65f0a4
lea edi, [esp + 0xcc]
lea esi, [0x8e7130]
call fcn.0046384e
mov byte [esp + 0xca], 0
jmp 0x65f166
lea edi, [esp + 0x48]
mov esi, dword [esp + 0x30]
call fcn.0046384e
lea edi, [esp]
lea esi, [esp + 0x48]
call fcn.0046384e
lea edi, [esp + 0x14]
lea esi, [esp + 0x7c]
call fcn.0046384e
call fcn.004ab3d0
movzx eax, byte [esp + 0x28]
test al, al
je 0x65f0f2
lea edi, [esp + 0xcc]
mov esi, dword [esp + 0x30]
call fcn.0046384e
mov byte [esp + 0xca], 1
jmp 0x65f166
mov byte [esp + 0x110], 1
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
add esp, 0x70
ret
mov ecx, 0x3b9aca00
mov ebx, eax
mul ecx
lea edi, [esp]
lea esi, [esp + 0x7c]
call fcn.0046384e
sar ebx, 0x1f
imul ecx, ebx, 0x3b9aca00
add ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
call fcn.004ac850
lea edi, [esp + 0x5c]
lea esi, [esp + 0x1c]
call fcn.0046384e
lea edi, [esp + 0xcc]
lea esi, [esp + 0x5c]
call fcn.0046384e
mov byte [esp + 0xca], 1
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
movzx ecx, byte [eax + 0x40]
mov byte [esp + 0xc8], cl
movzx ecx, byte [eax + 0x41]
mov byte [esp + 0xc9], cl
mov eax, dword [eax + 0x44]
cmp eax, 1
jne 0x65f1b6
lea eax, [0x6cf2ec]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 8
jmp 0x65f1f2
cmp eax, 2
jne 0x65f1d5
lea eax, [0x6d0870]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0xc
jmp 0x65f1f2
cmp eax, 3
jne 0x65f1f2
lea eax, [0x6d1ba3]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0xf
mov byte [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
add esp, 0x70
ret
mov byte [esp + 0x110], 1
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
add esp, 0x70
ret
mov byte [esp + 0x110], 0
mov dword [esp + 0x114], ebp
mov dword [esp + 0x118], esi
add esp, 0x70
ret
call fcn.00461cc0
jmp fcn.0065ef20