Function at 0x1013660
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov eax, dword [0x01068268]
and eax, 0x10
test eax, eax
jne 0x1013714
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x01032430]
mov edx, 0x80000
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x10136b1
xor eax, eax
jmp 0x1013a11
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10136c9
xor eax, eax
jmp 0x1013a11
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov edx, 0xfa
mov rcx, qword [0x01068988]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1013712
xor edx, edx
mov rcx, qword [0x01068930]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1013710
xor eax, eax
jmp 0x1013a11
jmp 0x10136dd
jmp 0x101372d
lea r9, [0x01002370]
mov r8d, 0x177
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [0x01068268]
and eax, 1
test eax, eax
jne 0x10137a4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x0103f9f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1013773
xor eax, eax
jmp 0x1013a11
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x101378e
xor eax, eax
jmp 0x1013a11
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
jmp 0x10137bd
lea r9, [0x01002348]
mov r8d, 0x177
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [0x01068268]
and eax, 2
test eax, eax
jne 0x1013834
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x010177d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1013803
xor eax, eax
jmp 0x1013a11
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x101381e
xor eax, eax
jmp 0x1013a11
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0
jmp 0x101384d
lea r9, [0x01002330]
mov r8d, 0x177
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [0x01068268]
and eax, 4
test eax, eax
jne 0x10138c4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x01039a20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1013893
xor eax, eax
jmp 0x1013a11
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10138ae
xor eax, eax
jmp 0x1013a11
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
jmp 0x10138dd
lea r9, [0x01002300]
mov r8d, 0x177
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [0x01068268]
and eax, 8
test eax, eax
jne 0x1013954
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x0101fcf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1013923
xor eax, eax
jmp 0x1013a11
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x101393e
xor eax, eax
jmp 0x1013a11
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 0
jmp 0x101396d
lea r9, [0x010022e0]
mov r8d, 0x177
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [0x01068268]
and eax, 0x20
test eax, eax
jne 0x10139db
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x0104a280]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x10139b0
xor eax, eax
jmp 0x1013a11
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10139c5
xor eax, eax
jmp 0x1013a11
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], 0
jmp 0x10139ed
mov r8d, 0x18c
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [0x01068268]
and eax, 4
test eax, eax
je 0x1013a0c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 4
call fcn.0103eb00
mov eax, 1
add rsp, 0x68
ret