Function at 0x14005f8b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x140092010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, qword [0x140093180]
lea rdx, [0x140093190]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14005f902
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebp, ebp
mov qword [0x1400931bc], rbp
mov qword [0x1400931c8], 1
mov qword [0x1400931e4], rbp
mov dword [0x1400931d8], 1
mov qword [0x1400931d0], rsi
mov dword [0x1400931c4], ebp
mov dword [0x1400931b8], 0x15
mov eax, dword [0x1400930f8]
mov dword [0x1400931b0], eax
mov eax, dword [0x1400930fc]
mov dword [0x1400931b4], eax
mov dword [0x1400931dc], 1
mov dword [0x1400931e0], 0x50
mov dword [0x1400931ec], 0x80000000
mov rcx, qword [0x140093190]
mov rax, qword [rcx]
lea rdx, [0x1400931f8]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
lea rdx, [0x1400931b0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rsi
xor edx, edx
lea r8d, [rbp + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x14005f9cd
mov rcx, qword [0x140093190]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
lea ecx, [rbp + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x140093060]
test rbx, rbx
je 0x14005f9df
inc dword [rbx + 0xec]
mov rdx, qword [0x140093050]
mov ecx, 0x5678
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14005fa1b
xor edx, edx
mov rcx, rax
call fcn.140012400
jmp 0x14005fa1e
mov rax, rbp
mov qword [0x140093060], rax
call fcn.140018b80
mov rax, qword [0x140093060]
test rbx, rbx
cmovne rax, rbx
mov qword [0x140093060], rax
mov rcx, qword [rax + 0x50]
cmp word [0x140093280], 0
jne 0x14005fab1
movups xmm0, xmmword [0x140092048]
movaps xmmword [0x140093280], xmm0
mov eax, dword [0x140092058]
mov dword [0x140093290], eax
lea rdx, [0x140093294]
mov r8d, 0x4e00
lea r9, [0x140084190]
mov r10d, 0xbb7
nop dword [rax]
nop word [rax + rax]
movsx eax, word [r9]
add r8d, eax
mov word [rdx + 2], r8w
mov word [rdx], r8w
lea r9, [r9 + 2]
lea rdx, [rdx + 4]
sub r10, 1
jne 0x14005fa90
mov word [rdx], bp
lea rax, [0x140093280]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x140086778]
lea rdx, [0x14007cf20]
call fcn.140036250
xor ecx, ecx
call fcn.140031360
call fcn.14005f570
mov rbx, qword [0x140093060]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14005fc3d
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14005fc3d
mov rax, qword [0x140093060]
test rax, rax
je 0x14005fb27
inc dword [rax + 0xec]
mov rdx, qword [0x140093050]
mov ecx, 0x48
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14005fb5f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x14005fb62
mov rdi, rbp
mov qword [rbx + 0x90], rdi
lea rax, [rsp + 0x50]
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x140093060]
mov rcx, qword [rax + 0x40b0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x78], rax
mov rbx, rbp
mov rcx, qword [rsp + rbx*8 + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14005fc11
inc rbx
cmp rbx, 5
jl 0x14005fbf3
jmp 0x14005fc3d
mov qword [rdi + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x1400931f8]
mov rbx, qword [0x140093060]
test rbx, rbx
je 0x14005fc56
inc dword [rbx + 0xec]
mov rdx, qword [0x140093050]
mov ecx, 0x28
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14005fc91
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14005fc94
mov rax, rbp
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006c630
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret