Function at 0x140086c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x140086d11
lea rdx, [rdi + 0x10]
xor ebp, ebp
mov qword [rdi + 0x1c], rbp
mov qword [rdi + 0x28], 1
mov qword [rdi + 0x44], rbp
mov dword [rdi + 0x38], 1
mov qword [rdi + 0x30], rsi
mov dword [rdi + 0x24], ebp
mov dword [rdi + 0x18], reloc.WS2_32.dll_setsockopt
mov eax, dword [rdi + 0xe0]
mov dword [rdx], eax
mov eax, dword [rdi + 0xe4]
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x3c], 1
mov dword [rdi + 0x40], 0x50
mov dword [rdi + 0x4c], 0x80000000
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea r14, [rdi + 8]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbp
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 0x140086d1b
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x140086f88
mov rbx, qword [0x140bd7fd0]
test rbx, rbx
je 0x140086d2d
inc dword [rbx + 0xf4]
mov ecx, 0x5dd8
call qword [sym.imp.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 0x140086d63
xor edx, edx
mov rcx, rax
call fcn.1400a4130
jmp 0x140086d66
mov rax, rbp
mov qword [0x140bd7fd0], rax
call fcn.1400a8060
test rbx, rbx
je 0x140086d80
mov qword [0x140bd7fd0], rbx
jmp 0x140086d87
mov rbx, qword [0x140bd7fd0]
mov qword [rbx + 0x20], rbp
lea rax, [0x14015acd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x140160780]
mov r8d, 0xe959c
lea rdx, [0x140aec480]
mov rcx, qword [rbx + 0x58]
call fcn.140099990
mov qword [rdi + 0x118], rax
mov rbx, qword [0x140bd7fd0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140086f1a
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140086f1a
mov rax, qword [0x140bd7fd0]
test rax, rax
je 0x140086e06
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140086e33
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 0x140086e36
mov rdi, rbp
mov qword [rbx + 0x98], rdi
lea rax, [rsp + 0x50]
mov qword [rbx + 0x88], 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 [0x140bd7fd0]
mov rcx, qword [rax + 0x4878]
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
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140086eee
inc rbx
cmp rbx, 5
jl 0x140086ed0
jmp 0x140086f1a
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 [r14]
mov rbx, qword [0x140bd7fd0]
test rbx, rbx
je 0x140086f2f
inc dword [rbx + 0xf4]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140086f5e
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 0x140086f61
mov rax, rbp
mov qword [rbx + 0xa0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x90], 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.140135a80
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret