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

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x1f0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
mov rdi, rdx
mov rbx, rcx
mov rdx, rcx
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x1400530ba
lea rdx, [rbx + 0x10]
xor r12d, r12d
mov qword [rbx + 0x1c], r12
mov qword [rbx + 0x28], 1
mov qword [rbx + 0x44], r12
mov dword [rbx + 0x38], 1
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0x24], r12d
mov dword [rbx + 0x18], reloc.WS2_32.dll_setsockopt
mov eax, dword [rbx + 0xe0]
mov dword [rdx], eax
mov eax, dword [rbx + 0xe4]
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x3c], 1
mov dword [rbx + 0x40], 0x50
mov dword [rbx + 0x4c], 0x80000000
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r14, [rbx + 8]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rdi
xor edx, edx
lea r8d, [r12 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x1400530c4
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x1400535a8
mov rbx, qword [0x1401be220]
test rbx, rbx
je 0x1400530d6
inc dword [rbx + 0xf4]
mov ecx, 0x5e70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x140], rax
lea rcx, [rbp + 0x130]
mov qword [rbp + 0x148], rcx
mov qword [rbp - 8], rax
test rax, rax
je 0x14005310b
xor edx, edx
mov rcx, rax
call fcn.140008a70
jmp 0x14005310e
mov rax, r12
mov qword [0x1401be220], rax
call fcn.14000c820
test rbx, rbx
je 0x140053128
mov qword [0x1401be220], rbx
jmp 0x14005312f
mov rbx, qword [0x1401be220]
mov qword [rbx + 0x20], r12
xorps xmm11, xmm11
xor eax, eax
movups xmmword [rbp], xmm11
movups xmmword [rbp + 0x10], xmm11
movups xmmword [rbp + 0x40], xmm11
movups xmmword [rbp + 0x50], xmm11
mov qword [rbp + 0x80], rax
mov byte [rbp + 0xc], 1
mov dword [rbp + 0x18], 3
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x44], 0x7f7fffff
mov dword [rbp + 0x50], 0x3f800000
mov eax, 0xffff
mov word [rbp + 0x54], ax
movaps xmm10, xmmword [rbp]
movaps xmmword [rsp + 0x40], xmm10
movaps xmm9, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm11
movaps xmm8, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x80], xmm8
movaps xmm7, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm11
movsd xmm6, qword [rbp + 0x80]
movsd qword [rbp - 0x40], xmm6
lea rsi, [0x14016fb80]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 0x26368
mov dword [rsp + 0x54], 0x41880000
lea r15, [0x140154d90]
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x58]
call fcn.14002aa30
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rbp - 0x80], xmm8
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm11
movsd qword [rbp - 0x40], xmm6
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 0x26368
mov dword [rsp + 0x54], 0x41700000
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x58]
call fcn.14002aa30
mov qword [0x1401be230], rax
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rbp - 0x80], xmm8
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm11
movsd qword [rbp - 0x40], xmm6
lea rax, [0x1401bb850]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0xf40
mov dword [rsp + 0x54], 0x41c00000
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x58]
call fcn.14002aa30
mov qword [0x1401be238], rax
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rbp - 0x80], xmm8
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm11
movsd qword [rbp - 0x40], xmm6
lea rsi, [0x140195ef0]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 0x25958
mov dword [rsp + 0x54], 0x41880000
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x58]
call fcn.14002aa30
mov qword [0x1401be298], rax
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rbp - 0x80], xmm8
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm11
movsd qword [rbp - 0x40], xmm6
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 0x25958
mov dword [rsp + 0x54], 0x41e00000
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x58]
call fcn.14002aa30
mov qword [0x1401be248], rax
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rbp - 0x80], xmm8
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm11
movsd qword [rbp - 0x40], xmm6
lea rax, [0x1401bc790]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x954
mov dword [rsp + 0x54], 0x41a00000
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x58]
call fcn.14002aa30
mov qword [0x1401be290], rax
mov rsi, qword [0x1401be220]
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14005353a
lea rcx, [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14005353a
mov rax, qword [0x1401be220]
test rax, rax
je 0x140053431
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14005345e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
jmp 0x140053461
mov rbx, r12
mov qword [rsi + 0x98], rbx
lea rax, [rbp + 0x130]
mov qword [rsi + 0x88], rax
or dword [rsi + 0xc], 6
mov qword [rbx], rdi
mov byte [rbx + 0x2d], 1
mov rax, qword [rbp + 0x140]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0x148]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x1401be220]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rdi
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x28], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x20], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x18], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x10], rax
mov rdi, r12
nop dword [rax]
mov rcx, qword [rbp + rdi*8 - 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14005350e
inc rdi
cmp rdi, 5
jl 0x1400534f0
jmp 0x14005353a
mov qword [rbx + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
mov rdi, qword [r14]
mov rbx, qword [0x1401be220]
test rbx, rbx
je 0x14005354f
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 0x14005357e
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140053581
mov rax, r12
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
lea r11, [rsp + 0x1f0]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret