Function at 0x1400460b0
Capabilities:
Read file on windows
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 - 0x1f8]
sub rsp, 0x2c0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [0x14005d040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, rdx
mov rsi, rcx
xor r12d, r12d
mov rdx, rcx
lea ecx, [r12 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x1400461a5
lea rdx, [rsi + 0x10]
mov qword [rsi + 0x1c], r12
mov qword [rsi + 0x28], 1
mov qword [rsi + 0x44], r12
mov dword [rsi + 0x38], 1
mov qword [rsi + 0x30], r13
mov dword [rsi + 0x24], r12d
mov dword [rsi + 0x18], 0x15
mov eax, dword [rsi + 0xe0]
mov dword [rdx], eax
mov eax, dword [rsi + 0xe4]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x3c], 1
mov dword [rsi + 0x40], 0x50
mov dword [rsi + 0x4c], 0x80000000
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea r8, [rsi + 8]
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r13
xor edx, edx
lea r8d, [r12 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x1400461af
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x14004686c
mov r15, qword [0x14005da58]
test r15, r15
je 0x1400461c2
inc dword [r15 + 0xec]
mov ecx, 0x5570
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x58], rax
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x60], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400461f0
xor edx, edx
mov rcx, rax
call fcn.140007280
jmp 0x1400461f3
mov rax, r12
mov qword [0x14005da58], rax
call fcn.14000e640
test r15, r15
je 0x14004620d
mov qword [0x14005da58], r15
jmp 0x140046214
mov r15, qword [0x14005da58]
mov qword [r15 + 0x20], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rax, [rbp + 0x60]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140046240
movabs r14, 0x7fffffffffffffff
cmp rdi, r14
ja 0x1400468aa
mov qword [rsp + 0x68], 0xf
cmp rdi, 0xf
ja 0x14004628b
mov qword [rsp + 0x60], rdi
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x50], 0
jmp 0x140046326
mov rax, rdi
or rax, 0xf
cmp rax, r14
jbe 0x1400462c1
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14004c670
test rax, rax
je 0x1400462ec
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x140046300
mov r14, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r14, rcx
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x1400462f3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400468b0
jmp 0x1400462a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140046300
call fcn.14004c670
mov r12, rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov r8, rdi
lea rdx, [rbp + 0x60]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [r12 + rdi], 0
xor r12d, r12d
mov r8d, 0x12
lea rdx, str.Fonts_segoeui.ttf
lea rcx, [rsp + 0x50]
call fcn.140004940
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400463aa
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400463a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400463a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c6b4
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rax, qword [r15 + 0x50]
mov qword [rbp - 0x60], rax
lea rdi, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdi, qword [rbp - 0x50]
lea rdx, [0x140053584]
mov rcx, rdi
call fcn.140008be0
mov r14, rax
test rax, rax
je 0x14004666c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r12d, eax
cmp eax, 0xffffffff
je 0x140046660
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140046660
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r15, eax
cmp r15d, 0xffffffff
je 0x140046660
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140046660
cmp r15, 0xffffffffffffffff
je 0x140046660
mov rax, qword [0x14005da58]
test rax, rax
je 0x140046463
inc dword [rax + 0xec]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
je 0x140046660
mov r9, r14
mov r8, r15
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r14
cmp rax, r15
je 0x1400464ba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14005da58]
test rax, rax
je 0x1400464ac
dec dword [rax + 0xec]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140046669
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp + 0x60], xmm2
movups xmmword [rbp + 0x70], xmm2
movups xmmword [rbp + 0xa0], xmm2
movups xmmword [rbp + 0xb0], xmm2
mov qword [rbp + 0xe0], rax
mov byte [rbp + 0x6c], 1
mov dword [rbp + 0x78], 3
mov dword [rbp + 0x7c], 1
mov dword [rbp + 0xa4], 0x7f7fffff
mov dword [rbp + 0xb0], 0x3f800000
mov eax, 0xffff
mov word [rbp + 0xb4], ax
movaps xmm3, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x30], xmm3
movaps xmm4, xmmword [rbp + 0x70]
movaps xmmword [rbp - 0x20], xmm4
movaps xmmword [rbp - 0x10], xmm2
xorps xmm5, xmm5
movaps xmmword [rbp], xmm5
movaps xmm6, xmmword [rbp + 0xa0]
movaps xmmword [rbp + 0x10], xmm6
movaps xmm1, xmmword [rbp + 0xb0]
movaps xmmword [rbp + 0x20], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0x30], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0x40], xmm8
movsd xmm9, qword [rbp + 0xe0]
movsd qword [rbp + 0x50], xmm9
mov r14, r15
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x1400465f5
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140046580
add rbx, rdi
cmp rbx, rdi
jbe 0x1400465a8
lea rcx, [rbx - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x1400465a8
cmp al, 0x5c
je 0x1400465a8
mov rbx, rcx
cmp rcx, rdi
ja 0x140046591
movsd xmm0, qword [0x140054358]
movsd qword [rsp + 0x20], xmm0
mov r9, rbx
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x26]
call fcn.1400089f0
movsd xmm9, qword [rbp + 0x50]
movaps xmm8, xmmword [rbp + 0x40]
movaps xmm7, xmmword [rbp + 0x30]
movaps xmm1, xmmword [rbp + 0x20]
movaps xmm6, xmmword [rbp + 0x10]
movaps xmm5, xmmword [rbp]
movaps xmm2, xmmword [rbp - 0x10]
movaps xmm4, xmmword [rbp - 0x20]
movaps xmm3, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x60], xmm3
movaps xmmword [rbp + 0x70], xmm4
movaps xmmword [rbp + 0x80], xmm2
movaps xmmword [rbp + 0x90], xmm5
movaps xmmword [rbp + 0xa0], xmm6
movaps xmmword [rbp + 0xb0], xmm1
movaps xmmword [rbp + 0xc0], xmm7
movaps xmmword [rbp + 0xd0], xmm8
movsd qword [rbp + 0xe0], xmm9
mov qword [rbp + 0x60], r12
mov dword [rbp + 0x68], r14d
mov dword [rbp + 0x74], 0x41900000
lea rax, [0x1400537c0]
mov qword [rbp + 0x98], rax
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x60]
call fcn.14002b770
xor r12d, r12d
jmp 0x14004666f
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r12d, r12d
mov rax, r12
mov qword [rsi + 0x140], rax
mov rbx, qword [0x14005da58]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400467ba
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400467ba
mov rax, qword [0x14005da58]
test rax, rax
je 0x1400466b3
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400466e0
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 0x1400466e3
mov rdi, r12
mov qword [rbx + 0x90], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], r13
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp - 0x60]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp - 0x58]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x14005da58]
mov rax, qword [rax + 0x4088]
mov rcx, qword [rax]
mov qword [rcx + 0x28], r13
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x80], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x78], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x70], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x68], rax
mov rbx, r12
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14004678e
inc rbx
cmp rbx, 5
jl 0x140046770
jmp 0x1400467ba
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 [rsp + 0x70]
mov rdi, qword [rdi]
mov rbx, qword [0x14005da58]
test rbx, rbx
je 0x1400467d4
inc dword [rbx + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140046803
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 0x140046806
mov rax, r12
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14004686a
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046865
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046865
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c6b4
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14004c650
lea r11, [rsp + 0x2c0]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011a0
int3
call fcn.140001100
int3