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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x230
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
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
mov rax, qword [0x14005e040]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov rsi, rdx
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x140048a9f
lea rdx, [rbx + 0x10]
xor r15d, r15d
mov qword [rbx + 0x1c], r15
mov qword [rbx + 0x28], 1
mov qword [rbx + 0x44], r15
mov dword [rbx + 0x38], 1
mov qword [rbx + 0x30], rsi
mov dword [rbx + 0x24], r15d
mov dword [rbx + 0x18], 0x15
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], r15
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rsi
xor edx, edx
lea r8d, [r15 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x140048aa9
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x140049066
mov rdi, qword [0x1400a9180]
test rdi, rdi
je 0x140048abb
inc dword [rdi + 0xf4]
mov ecx, 0x5588
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xa0], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x98], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140048aef
xor edx, edx
mov rcx, rax
call fcn.140008100
jmp 0x140048af2
mov rax, r15
mov qword [0x1400a9180], rax
call fcn.14000f970
test rdi, rdi
je 0x140048b0c
mov qword [0x1400a9180], rdi
jmp 0x140048b13
mov rdi, qword [0x1400a9180]
mov qword [rdi + 0x20], r15
xor ecx, ecx
call fcn.140027c80
xorps xmm13, xmm13
xor eax, eax
movups xmmword [rbp - 0x20], xmm13
movups xmmword [rbp - 0x10], xmm13
movups xmmword [rbp], xmm13
movups xmmword [rbp + 0x10], xmm13
movups xmmword [rbp + 0x20], xmm13
movups xmmword [rbp + 0x30], xmm13
mov qword [rbp + 0x60], rax
mov byte [rbp - 0x14], 1
mov dword [rbp + 0x24], 0x7f7fffff
mov eax, 0xffff
mov word [rbp + 0x34], ax
mov byte [rbp], 0
mov dword [rbp - 8], 5
mov dword [rbp - 4], 5
mov dword [rbp + 0x30], 0x3f99999a
lea r13, [0x140055b90]
mov qword [rbp + 0x18], r13
movaps xmm12, xmmword [rbp - 0x20]
movaps xmmword [rsp + 0x50], xmm12
movaps xmm11, xmmword [rbp - 0x10]
movaps xmmword [rsp + 0x60], xmm11
movaps xmm10, xmmword [rbp]
movaps xmmword [rsp + 0x70], xmm10
movaps xmm9, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x80], xmm9
movaps xmm8, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x70], xmm8
movaps xmm7, xmmword [rbp + 0x30]
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd xmm6, qword [rbp + 0x60]
movsd qword [rbp - 0x30], xmm6
lea rax, [0x14005f510]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x24200
mov dword [rsp + 0x64], 0x41700000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
lea r12, str.OTTO
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x24b84
mov dword [rsp + 0x64], 0x41700000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [0x1400a91a0], rax
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
lea r15, [0x14005e120]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x13e8
mov dword [rsp + 0x64], 0x41700000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [0x1400a91b8], rax
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x13e8
mov dword [rsp + 0x64], 0x41a80000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [rbx + 0x118], rax
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x24b84
mov dword [rsp + 0x64], 0x41980000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [0x1400a91c0], rax
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x13e8
mov dword [rsp + 0x64], 0x41900000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [0x1400a91b0], rax
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], 0x24b84
mov dword [rsp + 0x64], 0x41700000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [0x1400a91c8], rax
movaps xmmword [rsp + 0x50], xmm12
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm8
movaps xmmword [rbp - 0x60], xmm7
movaps xmmword [rbp - 0x50], xmm13
movaps xmmword [rbp - 0x40], xmm13
movsd qword [rbp - 0x30], xmm6
lea rax, [0x140083710]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x5bc
mov dword [rsp + 0x64], 0x41100000
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x58]
call fcn.14002d230
mov qword [0x1400a91a8], rax
mov rdi, qword [0x1400a9180]
lea rcx, [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140048fed
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140048fed
mov rax, qword [0x1400a9180]
test rax, rax
je 0x140048ee0
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 0x140048f0d
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 0x140048f0f
xor ebx, ebx
mov qword [rdi + 0x98], rbx
lea rax, str.imgui_impl_win32
mov qword [rdi + 0x88], rax
or dword [rdi + 0xc], 6
mov qword [rbx], rsi
mov byte [rbx + 0x2d], 1
mov rax, qword [rbp + 0x98]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x1400a9180]
mov rcx, qword [rax + 0x4090]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x70], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x78], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x80], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x88], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x90], rax
xor edi, edi
mov rcx, qword [rbp + rdi*8 + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140048fc1
inc rdi
cmp rdi, 5
jl 0x140048fa3
jmp 0x140048fed
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 [0x1400a9180]
test rbx, rbx
je 0x140049002
inc dword [rbx + 0xf4]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14004903f
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
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 + 8]
xor eax, eax
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.14004c740
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x50]
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]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret