Function at 0x1400460e0
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 [0x14005e010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, rdx
mov rsi, rcx
xor r15d, r15d
mov rdx, rcx
lea ecx, [r15 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x1400461d3
lea rdx, [rsi + 0x10]
mov qword [rsi + 0x1c], r15
mov qword [rsi + 0x28], 1
mov qword [rsi + 0x44], r15
mov dword [rsi + 0x38], 1
mov qword [rsi + 0x30], r13
mov dword [rsi + 0x24], r15d
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], r15
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r13
xor edx, edx
lea r8d, [r15 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x1400461dd
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x14004687c
mov r14, qword [0x14005e9e8]
test r14, r14
je 0x1400461f0
inc dword [r14 + 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 0x14004621e
xor edx, edx
mov rcx, rax
call fcn.140007290
jmp 0x140046221
mov rax, r15
mov qword [0x14005e9e8], rax
call fcn.14000e610
test r14, r14
je 0x14004623b
mov qword [0x14005e9e8], r14
jmp 0x140046242
mov r14, qword [0x14005e9e8]
mov qword [r14 + 0x20], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rbp + 0x60]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x140046266
movabs r12, 0x7fffffffffffffff
cmp rdi, r12
ja 0x1400468c0
mov qword [rsp + 0x68], 0xf
cmp rdi, 0x10
jae 0x1400462b1
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 0x140046342
mov rax, rdi
or rax, 0xf
cmp rax, r12
ja 0x1400462cc
mov r12, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r12, rcx
mov rcx, r12
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x14004630f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400468ba
mov rcx, rax
call fcn.14004cdf0
test rax, rax
je 0x140046308
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x14004631c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14004631c
call fcn.14004cdf0
mov r15, rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov r8, rdi
lea rdx, [rbp + 0x60]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [r15 + rdi], 0
xor r15d, r15d
mov r8d, 0x12
lea rdx, str.Fonts_segoeui.ttf
lea rcx, [rsp + 0x50]
call fcn.140004950
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], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400463c6
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400463c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400463c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004ce34
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rax, qword [r14 + 0x50]
mov qword [rbp - 0x60], rax
lea rdi, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdi, qword [rbp - 0x50]
lea rdx, [0x140054584]
mov rcx, rdi
call fcn.140008bf0
mov r14, rax
test rax, rax
je 0x14004667d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r12d, eax
cmp eax, 0xffffffff
je 0x140046674
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 0x140046674
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r15, eax
cmp r15d, 0xffffffff
je 0x140046674
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 0x140046674
cmp r15, 0xffffffffffffffff
je 0x140046674
mov rax, qword [0x14005e9e8]
test rax, rax
je 0x14004647f
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 0x140046674
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 0x1400464d6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14005e9e8]
test rax, rax
je 0x1400464c8
dec dword [rax + 0xec]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004667d
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 0x140046609
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140046594
add rbx, rdi
cmp rbx, rdi
jbe 0x1400465bc
lea rcx, [rbx - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x1400465bc
cmp al, 0x5c
je 0x1400465bc
mov rbx, rcx
cmp rcx, rdi
ja 0x1400465a5
movsd xmm0, qword [0x1400553a0]
movsd qword [rsp + 0x20], xmm0
mov r9, rbx
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x26]
call fcn.140008a00
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, [0x1400547c0]
mov qword [rbp + 0x98], rax
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x60]
call fcn.14002b810
xor r14d, r14d
jmp 0x140046683
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r14d, r14d
mov eax, r14d
mov qword [rsi + 0x140], rax
mov rbx, qword [0x14005e9e8]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400467ca
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400467ca
mov rax, qword [0x14005e9e8]
test rax, rax
je 0x1400466c7
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 0x1400466f4
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 0x1400466f7
mov rdi, r14
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 [0x14005e9e8]
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, r14
nop
mov rcx, qword [rsp + rbx*8 + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14004679e
inc rbx
cmp rbx, 5
jl 0x140046780
jmp 0x1400467ca
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 [0x14005e9e8]
test rbx, rbx
je 0x1400467e4
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 0x140046813
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140046816
mov rax, r14
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, 0x10
jb 0x14004687a
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046875
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046875
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004ce34
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14004cdd0
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.140001100
int3
call fcn.1400011a0
int3