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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x14017dbd0], rax
test rax, rax
je 0x1400cfe43
xorps xmm0, xmm0
movaps xmmword [0x14017dbe0], xmm0
movaps xmmword [0x14017dbf0], xmm0
movaps xmmword [0x14017dc00], xmm0
movaps xmmword [0x14017dc10], xmm0
mov dword [0x14017dc08], 1
mov r9, qword [0x14017dc28]
mov qword [0x14017dc00], r9
mov dword [0x14017dbe8], 0x15
mov dword [0x14017dbf8], 1
mov dword [0x14017dc10], 0x50
mov dword [0x14017dc1c], 0x80000000
mov dword [0x14017dc0c], 1
xor ebp, ebp
mov dword [0x14017dbf4], ebp
mov rax, qword [rax]
lea rdx, [0x14017dbb8]
mov qword [rsp + 0x30], rdx
lea rdx, [0x14017dbe0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + reloc.WLDAP32.dll_Ordinal_32], 0x20
xor edx, edx
lea r8d, [rbp + 1]
call qword [rax + 0x80]
mov rcx, qword [0x14017dbb8]
test rcx, rcx
je 0x1400cfe43
lea rdx, [0x14017dc40]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateLine]
mov rax, qword [0x14017daa0]
test rax, rax
je 0x1400cfb86
inc dword [rax + 0x3b0]
mov ecx, 0x3f70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400cfbb9
xor edx, edx
mov rcx, rax
call fcn.14007aba0
jmp 0x1400cfbbc
mov rax, rbp
cmp qword [0x14017daa0], 0
jne 0x1400cfbcd
mov qword [0x14017daa0], rax
mov rcx, rax
call fcn.140081640
xor ecx, ecx
call fcn.1400980b0
call fcn.1400cf3f0
mov rsi, qword [0x14017dc28]
mov rbx, qword [0x14017daa0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400cfdcf
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400cfdcf
mov rax, qword [0x14017daa0]
test rax, rax
je 0x1400cfc2a
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 0x1400cfc57
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 0x1400cfc5a
mov rdi, rbp
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 [rsp + 0x78]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov qword [rbx + 0x120], rsi
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x40], Ordinal_41
mov dword [rbx + 0x44], Ordinal_45
mov dword [rbx + 0x48], Ordinal_41
mov dword [rbx + 0x4c], Ordinal_45
mov dword [rbx + 0x50], reloc.WLDAP32.dll_Ordinal_33
mov dword [rbx + 0x54], Ordinal_35
mov dword [rbx + 0x58], Ordinal_41
mov dword [rbx + 0x5c], reloc.WLDAP32.dll_Ordinal_35
mov dword [rbx + 0x60], reloc.WLDAP32.dll_Ordinal_45
mov dword [rbx + 0x64], reloc.WLDAP32.dll_Ordinal_46
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbx + 0x70], reloc.WS2_32.dll_listen
mov dword [rbx + 0x74], reloc.WLDAP32.dll_Ordinal_27
mov dword [rbx + 0x78], reloc.WS2_32.dll_listen
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 [rsp + 0x50], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x70], rax
mov rbx, rbp
mov rcx, qword [rsp + rbx*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400cfda3
inc rbx
cmp rbx, 5
jl 0x1400cfd85
jmp 0x1400cfdcf
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 [0x14017dbb8]
mov rbx, qword [0x14017daa0]
test rbx, rbx
je 0x1400cfde8
inc dword [rbx + 0x3b0]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400cfe17
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x1400cfe1a
mov rax, rbp
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 + reloc.WS2_32.dll_htonl]
mov al, 1
jmp 0x1400cfe45
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140145cd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret