Function at 0x7ff71cd17a8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1020
call fcn.7ff71ccb720
sub rsp, rax
mov rax, qword [0x7ff71cee2b0]
xor rax, rsp
mov qword [rsp + 0x1010], rax
xor r15d, r15d
lea r13, [0x7ff71cefce0]
mov ebp, ecx
mov rsi, qword [r13 + rbp*8]
mov r12, rdx
mov r14d, ecx
mov ebx, r15d
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x40], r15d
cmp rsi, r15
jne 0x7ff71cd22a2
cmp qword [0x7ff71cf03d0], r15
jne 0x7ff71cd18de
lea rcx, [0x7ff71ce9740]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x7ff71cf03d0], rax
cmp rax, r15
je 0x7ff71cd18a4
lea rdx, str.DirectInputCreateW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x7ff71cf11a0], rax
cmp rax, r15
jne 0x7ff71cd18e5
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd1886
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd1886
lea edi, [r15 + 1]
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd1886
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x10]
lea r8, [0x7ff71ce95b0]
call fcn.7ff71cc12c0
mov rcx, qword [0x7ff71cf03d0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x7ff71cf03d0], r15
mov ebx, 0x80004005
jmp 0x7ff71cd22bd
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd189a
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd189a
mov edi, 1
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd189a
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x11]
lea r8, [0x7ff71ce95b0]
call fcn.7ff71cc12c0
jmp 0x7ff71cd189a
mov rax, qword [0x7ff71cf11a0]
cmp qword [0x7ff71cee368], r15
jne 0x7ff71cd1947
mov rcx, qword [0x7ff71cee2c8]
lea r8, [0x7ff71cee368]
xor r9d, r9d
mov edx, 0x50a
call rax
cmp eax, r15d
mov rbx, rax
jge 0x7ff71cd1947
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd229b
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd229b
mov edi, 1
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd229b
lea edx, [rdi + 0x1b]
jmp 0x7ff71cd2288
mov edi, 1
cmp dword [0x7ff71cf0dec], r15d
jne 0x7ff71cd19b1
lea rax, [0x7ff71cf0de8]
lea r8, [0x7ff71cd22f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x7ff71cf0de0], rax
cmp rax, r15
je 0x7ff71cd19b1
lea edx, [rdi - 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [0x7ff71cf0de0]
mov dword [0x7ff71cf0dec], edi
cmp rcx, r15
je 0x7ff71cd19b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x7ff71cf0de0], r15
mov rcx, qword [0x7ff71cee370]
cmp rcx, r15
jne 0x7ff71cd19e0
mov rcx, qword [0x7ff71cee368]
lea r8, [0x7ff71cee370]
lea rdx, [0x7ff71ce9730]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [0x7ff71cee370]
mov ebx, eax
cmp ebx, r15d
jl 0x7ff71cd2263
mov dword [rsp + 0xb80], 0x488
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [0x7ff71cee370]
lea r8, [rsp + 0xb80]
mov rax, qword [rcx]
mov r9d, 7
mov edx, ebp
call qword [rax + 0x58]
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd223c
mov rcx, qword [0x7ff71cee368]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0xb84]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd2215
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
lea rdx, [0x7ff71ce9690]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp ebx, r15d
mov qword [rsp + 0x48], r15
jl 0x7ff71cd21bb
lea rax, [rsp + 0xa8]
mov ecx, 0x2e
mov dword [rax + 8], r15d
mov dword [rax], r15d
mov dword [rax + 4], r15d
mov qword [rax - 8], r15
add rax, 0x18
sub rcx, rdi
jne 0x7ff71cd1a88
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xa0]
lea rdx, [0x7ff71cd1100]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x20]
mov qword [0x7ff71cef740], r15
mov dword [0x7ff71cef750], r15d
mov ebx, eax
mov eax, 0x80000000
mov qword [0x7ff71cef758], r15
mov dword [0x7ff71cef74c], eax
mov dword [0x7ff71cef764], eax
mov dword [0x7ff71cef77c], eax
mov dword [0x7ff71cef794], eax
mov dword [0x7ff71cef7ac], eax
mov dword [0x7ff71cef7c4], eax
mov dword [0x7ff71cef7dc], eax
mov dword [0x7ff71cef7f4], eax
mov eax, 0x80ffff0c
mov dword [0x7ff71cef768], r15d
mov qword [0x7ff71cef770], r15
mov dword [0x7ff71cef780], r15d
mov dword [0x7ff71cef80c], eax
mov dword [0x7ff71cef824], eax
mov dword [0x7ff71cef83c], eax
mov dword [0x7ff71cef854], eax
mov dword [0x7ff71cef86c], eax
mov dword [0x7ff71cef884], eax
mov dword [0x7ff71cef89c], eax
mov dword [0x7ff71cef8b4], eax
mov dword [0x7ff71cef8cc], eax
mov dword [0x7ff71cef8e4], eax
mov dword [0x7ff71cef8fc], eax
mov dword [0x7ff71cef914], eax
mov dword [0x7ff71cef92c], eax
mov dword [0x7ff71cef944], eax
mov dword [0x7ff71cef95c], eax
mov dword [0x7ff71cef974], eax
mov qword [0x7ff71cef788], r15
mov dword [0x7ff71cef798], r15d
mov qword [0x7ff71cef7a0], r15
mov dword [0x7ff71cef7b0], r15d
mov qword [0x7ff71cef7b8], r15
mov dword [0x7ff71cef7c8], r15d
mov qword [0x7ff71cef7d0], r15
mov dword [0x7ff71cef7e0], r15d
mov qword [0x7ff71cef7e8], r15
mov dword [0x7ff71cef7f8], r15d
mov qword [0x7ff71cef800], r15
mov dword [0x7ff71cef810], r15d
mov qword [0x7ff71cef818], r15
mov dword [0x7ff71cef828], r15d
mov qword [0x7ff71cef830], r15
mov dword [0x7ff71cef840], r15d
mov qword [0x7ff71cef848], r15
mov dword [0x7ff71cef858], r15d
mov qword [0x7ff71cef860], r15
mov dword [0x7ff71cef870], r15d
mov qword [0x7ff71cef878], r15
mov dword [0x7ff71cef888], r15d
mov qword [0x7ff71cef890], r15
mov dword [0x7ff71cef8a0], r15d
mov qword [0x7ff71cef8a8], r15
mov dword [0x7ff71cef8b8], r15d
mov qword [0x7ff71cef8c0], r15
mov dword [0x7ff71cef8d0], r15d
mov qword [0x7ff71cef8d8], r15
mov dword [0x7ff71cef8e8], r15d
mov qword [0x7ff71cef8f0], r15
mov dword [0x7ff71cef900], r15d
mov qword [0x7ff71cef908], r15
mov dword [0x7ff71cef918], r15d
mov qword [0x7ff71cef920], r15
mov dword [0x7ff71cef930], r15d
mov qword [0x7ff71cef938], r15
mov dword [0x7ff71cef948], r15d
mov qword [0x7ff71cef950], r15
mov dword [0x7ff71cef960], r15d
mov qword [0x7ff71cef968], r15
mov dword [0x7ff71cef978], r15d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
mov qword [0x7ff71cef980], r15
mov dword [0x7ff71cef98c], eax
mov dword [0x7ff71cef990], r15d
mov qword [0x7ff71cef998], r15
mov dword [0x7ff71cef9a4], eax
mov dword [0x7ff71cef9a8], r15d
mov qword [0x7ff71cef9b0], r15
mov dword [0x7ff71cef9bc], eax
mov dword [0x7ff71cef9c0], r15d
mov qword [0x7ff71cef9c8], r15
mov dword [0x7ff71cef9d4], eax
mov dword [0x7ff71cef9d8], r15d
mov qword [0x7ff71cef9e0], r15
mov dword [0x7ff71cef9ec], eax
mov dword [0x7ff71cef9f0], r15d
mov qword [0x7ff71cef9f8], r15
mov dword [0x7ff71cefa04], eax
mov dword [0x7ff71cefa08], r15d
mov qword [0x7ff71cefa10], r15
mov dword [0x7ff71cefa1c], eax
mov dword [0x7ff71cefa20], r15d
mov qword [0x7ff71cefa28], r15
mov dword [0x7ff71cefa34], eax
mov dword [0x7ff71cefa38], r15d
mov qword [0x7ff71cefa40], r15
mov dword [0x7ff71cefa4c], eax
mov dword [0x7ff71cefa50], r15d
mov qword [0x7ff71cefa58], r15
mov dword [0x7ff71cefa64], eax
mov dword [0x7ff71cefa68], r15d
mov qword [0x7ff71cefa70], r15
mov dword [0x7ff71cefa7c], eax
mov dword [0x7ff71cefa80], r15d
mov qword [0x7ff71cefa88], r15
mov dword [0x7ff71cefa94], eax
mov dword [0x7ff71cefa98], r15d
mov qword [0x7ff71cefaa0], r15
mov dword [0x7ff71cefaac], eax
mov dword [0x7ff71cefab0], r15d
mov qword [0x7ff71cefab8], r15
mov dword [0x7ff71cefac4], eax
mov dword [0x7ff71cefac8], r15d
mov qword [0x7ff71cefad0], r15
mov dword [0x7ff71cefadc], eax
mov dword [0x7ff71cefae0], r15d
call fcn.7ff71cd13a0
cmp ebx, r15d
jl 0x7ff71cd2194
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x68], 0x18
lea rdx, [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd216d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 0xa]
call qword [rax + 0x68]
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd213a
mov rcx, qword [rsp + 0x30]
lea rdx, [0x7ff71cefaf0]
mov rax, qword [rcx]
call qword [rax + 0x58]
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd2104
mov ebx, 0x310
mov ecx, 0x40
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
cmp rax, r15
je 0x7ff71cd20b9
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x30]
mov dword [rsp + 0x730], 0x44c
mov qword [rsi], r11
mov ecx, dword [rsp + 0x78]
mov dword [rsi + 0xc], r15d
mov dword [rsi + 8], ecx
mov dword [rsi + 0x30], r15d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x730]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov ebp, 0x2d8
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd209c
cmp dword [0x7ff71cee25c], r15d
je 0x7ff71cd1f78
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x4f0], 0x240
lea rdx, [rsp + 0x4f0]
mov rax, qword [rcx]
mov r9d, edi
mov r8d, 4
call qword [rax + 0x70]
cmp eax, r15d
jl 0x7ff71cd1f78
cmp word [rsp + 0x724], 2
jne 0x7ff71cd1f78
mov eax, 0xc4
cmp word [rsp + 0x726], ax
jne 0x7ff71cd1f78
bt dword [rsp + 0xb94], 0x13
jae 0x7ff71cd1f78
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x4f0]
mov r9d, edi
mov rax, qword [rcx]
mov r8d, 0x14
call qword [rax + 0x70]
cmp eax, r15d
jl 0x7ff71cd1f78
cmp word [rsp + 0x724], 2
jne 0x7ff71cd1f78
mov eax, dword [0x7ff71cee278]
mov ecx, 0xc5
cmp word [rsp + 0x726], cx
cmove eax, edi
mov dword [0x7ff71cee278], eax
lea rcx, [rsi + 0x34]
mov r8, rbp
xor edx, edx
call sub.msvcrt.dll_memset
cmp dword [0x7ff71cef7dc], r15d
mov rcx, qword [rsp + 0x30]
mov eax, 0x20
mov dword [rsp + 0x50], 0x14
mov dword [rsp + 0x54], 0x10
cmovne eax, dword [0x7ff71cef7d8]
mov dword [rsp + 0x5c], edi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x58], eax
mov rax, qword [rcx]
mov edx, 3
call qword [rax + 0x28]
mov edi, dword [rsp + 0x38]
cmp eax, r15d
mov ebx, eax
jl 0x7ff71cd1fd6
or edi, 0x20
jmp 0x7ff71cd1fd9
mov ebx, r15d
movzx eax, word [rsp + 0x744]
mov rcx, qword [0x7ff71cee2c8]
mov r13d, 0x20
mov word [rsi + 0x34], ax
mov eax, dword [rsp + 0x744]
lea r8, [rsi + 0x38]
shr eax, 0x10
mov r9d, r13d
mov edx, 0xbd5
mov word [rsi + 0x36], ax
call qword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [rsp + 0x40]
mov r11d, 0xffff
mov dword [rsi + 0xbc], eax
mov eax, dword [rsp + 0x3c]
lea rcx, [rsi + 0xc4]
lea r8, [0x7ff71cf0a60]
lea edx, [r13 + 0x20]
mov dword [rsi + 0x90], eax
mov dword [rsi + 0xb0], r11d
mov dword [rsi + 0xa8], r11d
mov dword [rsi + 0xa0], r11d
mov dword [rsi + 0x8c], r11d
mov dword [rsi + 0x84], r11d
mov dword [rsi + 0x7c], r11d
mov dword [rsi + 0x94], 0xa
mov dword [rsi + 0x98], 0x3e8
mov dword [rsi + 0xb8], 6
mov dword [rsi + 0xc0], r13d
call fcn.7ff71cc2090
or dword [rsi + 0xb4], edi
lea r13, [0x7ff71cefce0]
cmp r12, r15
je 0x7ff71cd21f3
lea rdx, [rsi + 0x34]
mov rcx, r12
mov r8, rbp
call sub.ntdll.dll_memcpy
jmp 0x7ff71cd21f3
mov ebx, 0x8007000e
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd21fc
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd21fc
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd21fc
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff71ce95b0]
mov edx, 0x13
call fcn.7ff71cc12c0
jmp 0x7ff71cd21f3
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd21f3
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd21f3
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd21f3
mov edx, 0x14
jmp 0x7ff71cd21e0
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd21f3
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd21f3
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd21f3
mov edx, 0x15
jmp 0x7ff71cd21e0
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd21f3
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd21f3
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd21f3
mov edx, 0x16
jmp 0x7ff71cd21e0
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd21f3
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd21f3
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd21f3
mov edx, 0x17
jmp 0x7ff71cd21e0
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd21f3
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd21f3
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd21f3
mov edx, 0x18
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff71ce95b0]
mov r9d, ebx
call fcn.7ff71cc3dd4
cmp ebx, r15d
jge 0x7ff71cd229b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x7ff71cd229b
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd229b
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd229b
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd229b
mov edx, 0x19
jmp 0x7ff71cd2288
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd229b
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd229b
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd229b
mov edx, 0x1a
jmp 0x7ff71cd2288
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd229b
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd229b
cmp byte [rcx + 0x19], dil
jb 0x7ff71cd229b
mov edx, 0x1b
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff71ce95b0]
mov r9d, ebx
call fcn.7ff71cc3dd4
mov qword [r13 + r14*8], rsi
jmp 0x7ff71cd22bd
mov dword [rsi + 0x30], r15d
cmp rdx, r15
je 0x7ff71cd22bd
mov rcx, rdx
lea rdx, [rsi + 0x34]
mov r8d, 0x2d8
call sub.ntdll.dll_memcpy
mov eax, ebx
mov rcx, qword [rsp + 0x1010]
xor rcx, rsp
call fcn.7ff71cc11f0
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1020
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret