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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140199040]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rdx, [0x140199ed0]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140043db5
lea rdx, str.directx_erro
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140046d80
lea rdx, [0x140046f50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x140044093
xor ebx, ebx
mov qword [rbp + 0x13], rbx
mov qword [rbp + 0x1f], 1
mov dword [rbp + 0x3b], ebx
mov dword [rbp + 0x2f], 1
mov rax, qword [0x140199ef8]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x1b], ebx
mov dword [rbp + 0xf], 0x15
call fcn.1400460e0
mov ecx, dword [rax + 0x28]
mov dword [rbp + 7], ecx
call fcn.1400460e0
mov ecx, dword [rax + 0x24]
mov dword [rbp + 0xb], ecx
mov dword [rbp + 0x33], 1
mov dword [rbp + 0x37], 0x50
mov dword [rbp + 0x43], 1
mov dword [rbp + 0x3f], ebx
mov rcx, qword [0x140199ed0]
mov rax, qword [rcx]
lea rdx, [0x140199ed8]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 7]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, qword [0x140199ef8]
xor edx, edx
lea r8d, [rbx + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x140043e67
mov rcx, qword [0x140199ed0]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor al, al
jmp 0x140044093
mov rax, qword [0x140199e50]
test rax, rax
je 0x140043e79
inc dword [rax + 0x3b4]
mov ecx, 0x3ee8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rax
test rax, rax
je 0x140043ea5
xor edx, edx
mov rcx, rax
call fcn.140001260
jmp 0x140043ea8
mov rax, rbx
cmp qword [0x140199e50], 0
jne 0x140043eb9
mov qword [0x140199e50], rax
mov rcx, rax
call fcn.140007660
mov rax, qword [0x140199e50]
or dword [rax + 8], 1
mov rdi, qword [0x140199ef8]
lea rcx, [0x14019a020]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140044057
lea rcx, [0x14019a018]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140044057
mov qword [0x14019a010], rdi
mov rax, qword [0x140199e50]
or dword [rax + 0xc], 6
lea rcx, str.imgui_impl_win32
mov qword [rax + 0xd8], rcx
mov qword [rax + 0x120], rdi
mov dword [rax + 0x3c], 9
mov dword [rax + 0x40], 0x25
mov dword [rax + 0x44], 0x27
mov dword [rax + 0x48], 0x26
mov dword [rax + 0x4c], 0x28
mov dword [rax + 0x50], 0x21
mov dword [rax + 0x54], 0x22
mov dword [rax + 0x58], 0x24
mov dword [rax + 0x5c], 0x23
mov dword [rax + 0x60], 0x2d
mov dword [rax + 0x64], 0x2e
mov dword [rax + 0x68], 8
mov dword [rax + 0x6c], 0x20
mov dword [rax + 0x70], 0xd
mov dword [rax + 0x74], 0x1b
mov dword [rax + 0x78], 0xd
mov dword [rax + 0x7c], 0x41
mov dword [rax + 0x80], 0x43
mov dword [rax + 0x84], 0x56
mov dword [rax + 0x88], 0x58
mov dword [rax + 0x8c], 0x59
mov dword [rax + 0x90], 0x5a
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x41], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x39], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x31], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x29], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x21], rax
mov rcx, qword [rbp + rbx*8 - 0x41]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140044022
inc rbx
cmp rbx, 5
jl 0x140044004
jmp 0x140044057
mov qword [0x140199ff8], rdi
lea rdx, str.XInputGetCapabilities
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14019a000], rax
lea rdx, str.XInputGetState
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14019a008], rax
mov rcx, qword [0x140199ed8]
mov rax, qword [0x140199e50]
lea rdx, str.imgui_impl_dx9
mov qword [rax + 0xe0], rdx
or dword [rax + 0xc], 8
mov qword [0x140199fe0], rcx
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x140199ed0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14004f320
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret