Function at 0x14005f950
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 [0x140093010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, qword [0x140094180]
lea rdx, [0x140094190]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14005f9a2
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebp, ebp
mov qword [0x1400941bc], rbp
mov qword [0x1400941c8], 1
mov qword [0x1400941e4], rbp
mov dword [0x1400941d8], 1
mov qword [0x1400941d0], rsi
mov dword [0x1400941c4], ebp
mov dword [0x1400941b8], 0x15
mov eax, dword [0x1400940f8]
mov dword [0x1400941b0], eax
mov eax, dword [0x1400940fc]
mov dword [0x1400941b4], eax
mov dword [0x1400941dc], 1
mov dword [0x1400941e0], 0x50
mov dword [0x1400941ec], 0x80000000
mov rcx, qword [0x140094190]
mov rax, qword [rcx]
lea rdx, [0x1400941f8]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
lea rdx, [0x1400941b0]
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 0x14005fa6d
mov rcx, qword [0x140094190]
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 [0x140094060]
test rbx, rbx
je 0x14005fa7f
inc dword [rbx + 0xec]
mov rdx, qword [0x140094050]
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 0x14005fabb
xor edx, edx
mov rcx, rax
call fcn.140012410
jmp 0x14005fabe
mov rax, rbp
mov qword [0x140094060], rax
call fcn.140018b90
mov rax, qword [0x140094060]
test rbx, rbx
cmovne rax, rbx
mov qword [0x140094060], rax
mov rcx, qword [rax + 0x50]
cmp word [0x140094280], 0
jne 0x14005fb51
movups xmm0, xmmword [0x140093048]
movaps xmmword [0x140094280], xmm0
mov eax, dword [0x140093058]
mov dword [0x140094290], eax
lea rdx, [0x140094294]
mov r8d, 0x4e00
lea r9, [0x140085170]
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 0x14005fb30
mov word [rdx], bp
lea rax, [0x140094280]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x140087798]
lea rdx, [0x14007df10]
call fcn.140036260
xor ecx, ecx
call fcn.140031370
call fcn.14005f610
mov rbx, qword [0x140094060]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14005fcdd
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14005fcdd
mov rax, qword [0x140094060]
test rax, rax
je 0x14005fbc7
inc dword [rax + 0xec]
mov rdx, qword [0x140094050]
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 0x14005fbff
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 0x14005fc02
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 [0x140094060]
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 0x14005fcb1
inc rbx
cmp rbx, 5
jl 0x14005fc93
jmp 0x14005fcdd
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 [0x1400941f8]
mov rbx, qword [0x140094060]
test rbx, rbx
je 0x14005fcf6
inc dword [rbx + 0xec]
mov rdx, qword [0x140094050]
mov ecx, 0x28
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14005fd31
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 0x14005fd34
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.14006ce00
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