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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x65a25e
sub esp, 0xa4
lea edi, [esp + 0x68]
lea esi, [esp + 0xb4]
call fcn.004695de
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
test eax, 0x80000000
je 0x659d70
mov edx, ecx
shl ecx, 1
shl eax, 1
mov ebx, edx
shr edx, 0x1f
or eax, edx
mov edx, eax
shl eax, 1
shr ecx, 0x1f
or eax, ecx
shr edx, 0x1f
add eax, 0xd7b17f80
adc edx, 0xd
jmp 0x659d7a
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, ecx
test edx, edx
sete cl
test eax, eax
sete al
and ecx, eax
test cl, cl
je 0x659db3
test ebx, 0x3fffffff
jne 0x659db3
lea eax, [0x758b34]
mov dword [esp + 0xc8], eax
lea eax, [0x758ae0]
mov dword [esp + 0xcc], eax
add esp, 0xa4
ret
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xa8]
mov dword [esp + 8], ecx
call fcn.00659bf0
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x659deb
mov edx, dword [eax + 0x7c]
jmp 0x659df7
lea ecx, [0x7b23f0]
lea edx, [0x994f00]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov ebx, dword [eax + 0x70]
mov dword [esp + 0x5c], ebx
test ebx, ebx
jne 0x659e19
movzx ebp, byte [esp + 0xc]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x65a11c
lea edi, [esp]
lea esi, [esp + 0xb4]
call fcn.004695de
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.00659b50
movzx eax, byte [esp + 0x1c]
test al, al
jne 0x659e46
xor edx, edx
jmp 0x659eb7
lea edi, [esp + 0x7c]
lea esi, [esp + 0xb4]
call fcn.004695de
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
lea edi, [esp + 8]
lea esi, [esp + 0x7c]
call fcn.004695de
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00492e20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 0x78], eax
mov eax, dword [0x995310]
test eax, eax
je 0x659eb4
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [ebx + 0x7c]
mov dword [edi + 4], eax
mov dword [ebx + 0x7c], ecx
mov dword [esp + 0x40], edx
lea eax, [0x6ee120]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00405010
mov eax, dword [0x995310]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x659ee8
mov eax, dword [esp + 0xa8]
jmp 0x659efc
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0x70]
mov dword [edi + 4], edx
mov dword [esp + 0x44], ecx
mov dword [eax + 0x70], ecx
lea edx, [0x70e320]
mov dword [esp], edx
call fcn.0040c500
mov eax, dword [esp + 4]
lea ecx, [0x65a450]
mov dword [eax], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x659f2d
mov ecx, dword [esp + 0x44]
jmp 0x659f38
call fcn.00468e60
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 8], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x659f5f
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa8]
jmp 0x659f77
call fcn.00468e70
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
mov edx, dword [esp + 0xa8]
mov dword [edi + 4], edx
mov dword [esp + 0x58], eax
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea ecx, [0x6ee120]
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00405010
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
lea ecx, [0x708d00]
mov dword [esp], ecx
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
lea ecx, [0x70e2c0]
mov dword [esp], ecx
call fcn.0040c500
mov eax, dword [esp + 4]
lea ecx, [0x65a3a0]
mov dword [eax], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x659fe7
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
jmp 0x65a000
call fcn.00468e80
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov edx, dword [esp + 0x3c]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x40]
mov dword [edi + 8], ebx
mov dword [esp + 0x54], eax
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
lea edi, [esp]
lea esi, [esp + 0xb4]
call fcn.004695de
call fcn.0048b610
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00489af0
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
lea ecx, [0x709120]
mov dword [esp], ecx
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
lea ecx, [0x71bc40]
mov dword [esp], ecx
call fcn.0040c500
mov eax, dword [esp + 4]
lea ecx, [0x65a270]
mov dword [eax], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x65a08d
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x3c]
jmp 0x65a0b4
call fcn.00468ea0
mov ecx, dword [esp + 0x5c]
mov dword [edi], ecx
mov edx, dword [esp + 0x58]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x38]
mov dword [edi + 8], ebx
mov ebp, dword [esp + 0x60]
mov dword [edi + 0xc], ebp
mov esi, dword [esp + 0x3c]
mov dword [edi + 0x10], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], esi
mov dword [esp], eax
call fcn.004448d0
lea eax, [0x700700]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
lea ecx, [0x694480]
mov dword [eax], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x65a0f5
mov ecx, dword [esp + 0x60]
jmp 0x65a100
call fcn.00468e60
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa4
ret
lea edi, [esp]
lea esi, [esp + 0xb4]
call fcn.004695de
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.00659b50
movzx eax, byte [esp + 0x1c]
test al, al
je 0x65a23d
lea edi, [esp + 0x90]
lea esi, [esp + 0xb4]
call fcn.004695de
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
lea edi, [esp + 8]
lea esi, [esp + 0x90]
call fcn.004695de
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00492e20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 0x78], eax
mov eax, dword [0x995310]
test eax, eax
je 0x65a1c1
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [ebx + 0x7c]
mov dword [edi + 4], eax
mov dword [ebx + 0x7c], ecx
lea eax, [0x7004c0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
lea ecx, [0x65a4d0]
mov dword [eax], ecx
mov ecx, dword [0x995310]
lea edi, [eax + 4]
test ecx, ecx
je 0x65a218
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
lea eax, [0x737960]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xb4]
mov dword [esp + 8], eax
call fcn.00411b70
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
lea esi, [esp + 0xb4]
call fcn.004695de
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa4
ret
lea eax, [0x758b34]
mov dword [esp + 0xc8], eax
lea eax, [0x758ae0]
mov dword [esp + 0xcc], eax
add esp, 0xa4
ret
call fcn.00467a60
jmp fcn.00659d10