Function at 0x14003f030
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rsi, qword [0x1400da4b0]
lea rdx, [0x1400da4f8]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14003f066
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebp, ebp
mov qword [0x1400da52c], rbp
mov qword [0x1400da538], 1
mov qword [0x1400da554], rbp
mov dword [0x1400da548], 1
mov qword [0x1400da540], rsi
mov dword [0x1400da534], ebp
mov dword [0x1400da528], 0x15
mov eax, dword [0x1400da58c]
mov dword [0x1400da520], eax
mov eax, dword [0x1400da588]
mov dword [0x1400da524], eax
mov dword [0x1400da54c], 1
mov dword [0x1400da550], 0x50
mov dword [0x1400da55c], ebp
mov rcx, qword [0x1400da4f8]
mov rax, qword [rcx]
lea rdx, [0x1400da570]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
lea rdx, [0x1400da520]
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 0x14003f12d
mov rcx, qword [0x1400da4f8]
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 [0x1400da3a0]
test rbx, rbx
je 0x14003f13f
inc dword [rbx + 0xec]
mov ecx, 0x5678
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x14003f17b
xor edx, edx
mov rcx, rax
call fcn.14000cba0
jmp 0x14003f17e
mov rax, rbp
mov qword [0x1400da3a0], rax
call fcn.140012f60
test rbx, rbx
je 0x14003f198
mov qword [0x1400da3a0], rbx
jmp 0x14003f19f
mov rbx, qword [0x1400da3a0]
mov qword [rbx + 0x20], rbp
call fcn.14003ee60
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003f2fa
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003f2fa
mov rax, qword [0x1400da3a0]
test rax, rax
je 0x14003f1e6
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003f213
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 0x14003f216
mov rdi, rbp
mov qword [rbx + 0x90], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0xa8]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1400da3a0]
mov rcx, qword [rax + 0x40b0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x60], rax
mov rbx, rbp
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003f2ce
inc rbx
cmp rbx, 5
jl 0x14003f2b0
jmp 0x14003f2fa
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 [0x1400da570]
mov rbx, qword [0x1400da3a0]
test rbx, rbx
je 0x14003f313
inc dword [rbx + 0xec]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14003f342
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14003f345
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
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret