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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
movaps xmmword [rsp + 0x260], xmm6
mov rax, qword [0x14011f080]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, 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 0x140046b52
lea rdx, [rdi + 0x10]
xor ebx, ebx
mov qword [rdi + 0x1c], rbx
mov qword [rdi + 0x28], 1
mov qword [rdi + 0x44], rbx
mov dword [rdi + 0x38], 1
mov qword [rdi + 0x30], r15
mov dword [rdi + 0x24], ebx
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 r12, [rdi + 8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r15
xor edx, edx
lea r8d, [rbx + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x140046b5c
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x14004719c
mov rsi, qword [0x140209f08]
test rsi, rsi
je 0x140046b6e
inc dword [rsi + 0xf4]
mov ecx, 0x5dd8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x148], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x140], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140046ba2
xor edx, edx
mov rcx, rax
call fcn.14000d490
jmp 0x140046ba5
mov rax, rbx
mov qword [0x140209f08], rax
call fcn.140011020
test rsi, rsi
je 0x140046bbf
mov qword [0x140209f08], rsi
jmp 0x140046bc6
mov rsi, qword [0x140209f08]
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x10], xmm6
movups xmmword [rbp], xmm6
movups xmmword [rbp + 0x10], xmm6
movups xmmword [rbp + 0x30], xmm6
movups xmmword [rbp + 0x40], xmm6
mov qword [rbp + 0x70], rax
mov byte [rbp - 4], 1
mov dword [rbp + 0x34], 0x7f7fffff
mov dword [rbp + 0x40], 0x3f800000
mov ecx, 0xffff
mov word [rbp + 0x44], cx
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
mov byte [rbp + 0x38], 1
mov byte [rbp + 0x10], 1
mov dword [rbp + 8], 3
mov dword [rbp + 0xc], 3
xorps xmm2, xmm2
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], cx
mov byte [rsp + 0x5c], al
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0xc0], xmm1
movaps xmmword [rbp + 0xd0], xmm2
movaps xmmword [rbp + 0xe0], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0xf0], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x100], xmm1
movaps xmmword [rbp + 0x110], xmm2
movaps xmmword [rbp + 0x120], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x130], xmm0
lea rax, [0x1400ec4b0]
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xb8], 0x225bc
mov dword [rbp + 0xc4], 0x41b40000
lea rdx, [rbp + 0xb0]
mov rcx, qword [rsi + 0x58]
call fcn.140030800
mov rbx, qword [rsi + 0x58]
mov qword [rbp + 0x140], rbx
mov rax, qword [0x140209f08]
test rax, rax
je 0x140046d01
inc dword [rax + 0xf4]
mov ecx, 0x286ac
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
lea rax, [0x1400cde10]
mov qword [0x140209f40], rax
lea r14, [r13 + 0x286ac]
mov qword [0x140209f48], r14
mov qword [0x140209f50], r13
mov qword [0x140209f58], r13
lea rcx, [0x1400cde20]
call fcn.1400348a0
lea rcx, [0x1400cde20]
cmp rax, rcx
je 0x140046d71
cmp qword [0x140209f58], r14
ja 0x140046d6a
mov rbx, rax
mov rcx, rax
call fcn.1400348a0
cmp rax, rbx
jne 0x140046d51
mov rbx, qword [rbp + 0x140]
movaps xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm2, xmmword [rbp]
movaps xmm3, xmmword [rbp + 0x10]
movaps xmm4, xmmword [rbp + 0x30]
movaps xmm5, xmmword [rbp + 0x40]
movsd xmm1, qword [rbp + 0x70]
mov byte [rbp + 0xbc], 1
movaps xmm0, xmmword [rbp + 0xb0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm2
movaps xmmword [rsp + 0x70], xmm3
movaps xmmword [rbp - 0x80], xmm6
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm5
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm6
movsd qword [rbp - 0x30], xmm1
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x286ac
mov dword [rsp + 0x64], 0x41b40000
lea rax, [0x14010f1a8]
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140030800
mov qword [0x140209f38], rax
mov rcx, qword [rsi + 0x58]
call fcn.140030ad0
xor r14d, r14d
mov qword [rsi + 0x20], r14
lea rbx, [0x14010eb5c]
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f310]
lea rdx, str.c:WindowsFontsVerdanaB.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f2e8]
lea rdx, str.c:WindowsFontsVerdana.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f308]
lea rdx, str.c:WindowsFontsVerdanaB.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f2f8]
lea rdx, str.c:WindowsFontsVerdana.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f2fc]
lea rdx, str.c:WindowsFontsVerdanaB.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [0x140209f20], rax
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f2b0]
lea rdx, str.c:WindowsFontsVerdana.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [0x140209f30], rax
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f2f4]
lea rdx, str.c:WindowsFontsVerdana.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [rsp + 0x20], rbx
movss xmm2, dword [0x14010f300]
lea rdx, str.c:WindowsFontsVerdanaB.ttf
mov rcx, qword [rsi + 0x58]
call fcn.140030c40
mov qword [0x140209f28], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x5c], ax
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp + 0x10], xmm2
movaps xmmword [rbp + 0x20], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x50], xmm2
movaps xmmword [rbp + 0x60], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x70], xmm0
lea rax, [0x14011fb40]
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0xe959c
mov dword [rbp + 4], 0x41880000
lea rax, [0x14010eb48]
mov qword [rbp + 0x28], rax
lea rdx, [rbp - 0x10]
mov rcx, qword [rsi + 0x58]
call fcn.140030800
mov qword [rdi + 0x118], rax
mov rdi, qword [0x140209f08]
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004712d
lea rcx, [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004712d
mov rax, qword [0x140209f08]
test rax, rax
je 0x14004700d
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 0x14004703a
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 0x14004703d
mov rbx, r14
mov qword [rdi + 0x98], rbx
lea rax, [rbp - 0x20]
mov qword [rdi + 0x88], rax
or dword [rdi + 0xc], 6
mov qword [rbx], r15
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 [0x140209f08]
mov rcx, qword [rax + 0x4878]
mov rax, qword [rcx]
mov qword [rax + 0x28], r15
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x80], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x88], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x90], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x98], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0xa0], rax
mov rdi, r14
nop word [rax + rax]
mov rcx, qword [rbp + rdi*8 + 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140047101
inc rdi
cmp rdi, 5
jl 0x1400470e0
jmp 0x14004712d
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 [r12]
mov rbx, qword [0x140209f08]
test rbx, rbx
je 0x140047143
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 0x140047172
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140047175
mov rax, r14
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 [rbp + 0x150]
xor rcx, rsp
call fcn.1400b2e90
mov rbx, qword [rsp + 0x2c0]
movaps xmm6, xmmword [rsp + 0x260]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret