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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140053040]
xor rax, rsp
mov qword [rbp + 0x10], rax
lea rdx, [0x140081820]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x14003d49c
xor r14d, r14d
mov qword [rbp - 0x34], r14
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x10], 0x50
mov dword [rbp - 0x18], 1
mov r9, qword [0x140082250]
mov qword [rbp - 0x20], r9
mov dword [rbp - 0x2c], r14d
mov dword [rbp - 0x38], 0x15
mov eax, dword [0x140082370]
mov dword [rbp - 0x40], eax
mov eax, dword [0x140082374]
mov dword [rbp - 0x3c], eax
mov dword [rbp - 4], 1
mov dword [rbp - 0x14], 1
mov dword [rbp - 8], r14d
mov rcx, qword [0x140081820]
mov rax, qword [rcx]
lea rdx, [0x140081828]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x14003d4a3
mov rcx, qword [0x140081820]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor al, al
jmp 0x14003d7c5
mov rax, qword [0x1400821e0]
test rax, rax
je 0x14003d4b5
inc dword [rax + 0x3b0]
mov ecx, 0x3fb8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 8], rax
lea rcx, [rbp - 0x80]
mov qword [rbp], rcx
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14003d4e1
xor edx, edx
mov rcx, rax
call fcn.140001e20
jmp 0x14003d4e4
mov rax, r14
cmp qword [0x1400821e0], 0
jne 0x14003d4f5
mov qword [0x1400821e0], rax
mov rcx, rax
call fcn.140007ee0
mov rsi, qword [0x140082250]
mov rbx, qword [0x1400821e0]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003d6dc
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003d6dc
mov rax, qword [0x1400821e0]
test rax, rax
je 0x14003d541
inc dword [rax + 0x3b0]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003d56e
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 0x14003d571
mov rdi, r14
mov qword [rbx + 0xe8], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xd8], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 8]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov qword [rbx + 0x120], rsi
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x40], 0x25
mov dword [rbx + 0x44], 0x27
mov dword [rbx + 0x48], 0x26
mov dword [rbx + 0x4c], 0x28
mov dword [rbx + 0x50], 0x21
mov dword [rbx + 0x54], 0x22
mov dword [rbx + 0x58], 0x24
mov dword [rbx + 0x5c], 0x23
mov dword [rbx + 0x60], 0x2d
mov dword [rbx + 0x64], 0x2e
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], 0x20
mov dword [rbx + 0x70], 0xd
mov dword [rbx + 0x74], 0x1b
mov dword [rbx + 0x78], 0xd
mov dword [rbx + 0x7c], 0x41
mov dword [rbx + 0x80], 0x43
mov dword [rbx + 0x84], 0x56
mov dword [rbx + 0x88], 0x58
mov dword [rbx + 0x8c], 0x59
mov dword [rbx + 0x90], 0x5a
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x70], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x68], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x50], rax
mov rbx, r14
mov rcx, qword [rbp + rbx*8 - 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003d6b0
inc rbx
cmp rbx, 5
jl 0x14003d692
jmp 0x14003d6dc
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 [0x140081828]
mov rbx, qword [0x1400821e0]
test rbx, rbx
je 0x14003d6f5
inc dword [rbx + 0x3b0]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14003d724
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 0x14003d727
mov rax, r14
mov qword [rbx + 0xf0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0xe0], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
lea rax, [0x140082260]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0xc8
mov r9d, 0xc8
mov r8d, 0x7a9a
lea rdx, [0x140078f20]
mov rcx, qword [0x140081828]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
mov rcx, qword [0x140081820]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400405a0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret