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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rdx
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x140055cd0
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], rsi
mov dword [rbx + 0x24], r12d
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], r12
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rsi
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x140055cda
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x14005600b
mov rdi, qword [0x14015c080]
test rdi, rdi
je 0x140055cec
inc dword [rdi + 0xf4]
mov ecx, 0x5de0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xa8], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 0xa0], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140055d20
xor edx, edx
mov rcx, rax
call fcn.14000cff0
jmp 0x140055d23
mov rax, r12
mov qword [0x14015c080], rax
call fcn.1400126e0
test rdi, rdi
je 0x140055d3d
mov qword [0x14015c080], rdi
jmp 0x140055d44
mov rdi, qword [0x14015c080]
mov qword [rdi + 0x20], r12
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x80], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x40], xmm2
movups xmmword [rbp - 0x30], xmm2
mov qword [rbp], rax
mov byte [rbp - 0x74], 1
mov dword [rbp - 0x68], 3
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x3c], 0x7f7fffff
mov dword [rbp - 0x30], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x2c], ax
movaps xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movaps xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x60], xmm1
movaps xmmword [rbp + 0x70], xmm2
movaps xmmword [rbp + 0x80], xmm2
movsd xmm0, qword [rbp]
movsd qword [rbp + 0x90], xmm0
lea rax, [0x140072100]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], 0xe959c
mov dword [rbp + 0x24], 0x41880000
lea rax, [0x140066c78]
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rdi + 0x58]
call fcn.140034aa0
mov qword [rbx + 0x118], rax
lea r15, [0x140066c8c]
mov qword [rsp + 0x20], r15
movss xmm2, dword [0x140067c5c]
lea rdx, str.C:WindowsSystem32_font_24.ttf
mov rcx, qword [rdi + 0x58]
call fcn.140034d70
mov qword [rbx + 0x120], rax
mov qword [rsp + 0x20], r15
movss xmm2, dword [0x140067be4]
lea rdx, str.C:_font.ttf
mov rcx, qword [rdi + 0x58]
call fcn.140034d70
mov qword [rbx + 0x128], rax
mov rbx, qword [0x14015c080]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140055f9d
lea rcx, [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140055f9d
mov rax, qword [0x14015c080]
test rax, rax
je 0x140055e94
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 0x140055ec1
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 0x140055ec4
mov rdi, r12
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 [rbp + 0xa0]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0xa8]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x14015c080]
mov rcx, qword [rax + 0x4880]
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, r12
mov rcx, qword [rsp + rbx*8 + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140055f71
inc rbx
cmp rbx, 5
jl 0x140055f53
jmp 0x140055f9d
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 [0x14015c080]
test rbx, rbx
je 0x140055fb2
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 0x140055fe1
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 0x140055fe4
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 + 8]
xor eax, eax
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14005d830
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret