Function at 0x14004ab90
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 [0x140065040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, rdx
mov rbx, rcx
xor r15d, r15d
mov rdx, rcx
lea ecx, [r15 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x14004ac83
lea rdx, [rbx + 0x10]
mov qword [rbx + 0x1c], r15
mov qword [rbx + 0x28], 1
mov qword [rbx + 0x44], r15
mov dword [rbx + 0x38], 1
mov qword [rbx + 0x30], r12
mov dword [rbx + 0x24], r15d
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 r8, [rbx + 8]
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r12
xor edx, edx
lea r8d, [r15 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x14004ac8d
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x14004b362
mov r14, qword [0x140065a80]
test r14, r14
je 0x14004aca0
inc dword [r14 + 0xf4]
mov ecx, 0x5dd8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xb8], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 0xb0], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14004acd4
xor edx, edx
mov rcx, rax
call fcn.140007bf0
jmp 0x14004acd7
mov rax, r15
mov qword [0x140065a80], rax
call fcn.14000bdd0
test r14, r14
je 0x14004acf1
mov qword [0x140065a80], r14
jmp 0x14004acf8
mov r14, qword [0x140065a80]
mov qword [r14 + 0x20], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp - 0x60]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14004ad20
movabs rsi, 0x7fffffffffffffff
cmp rdi, rsi
ja 0x14004b3a0
cmp rdi, 0xf
ja 0x14004ad6b
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0xf
mov r8, rdi
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x58], 0
jmp 0x14004ae05
mov rax, rdi
or rax, 0xf
cmp rax, rsi
jbe 0x14004ada0
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140052da0
test rax, rax
je 0x14004adcb
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x14004addf
mov rsi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x14004add2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004b3a6
jmp 0x14004ad85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14004addf
call fcn.140052da0
mov r15, rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rsi
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, 0xe
lea rdx, str.fontmedium.ttf
lea rcx, [rsp + 0x58]
call fcn.140004930
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14004ae95
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ae90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ae90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052de4
movdqa xmm0, xmmword [0x14005c420]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov r13, qword [r14 + 0x58]
lea rdi, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0xf
cmova rdi, qword [rbp + 0xc0]
lea rdx, [0x14005b38c]
mov rcx, rdi
call fcn.140009860
mov rsi, rax
test rax, rax
je 0x14004b15d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r15d, eax
cmp eax, 0xffffffff
je 0x14004b151
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004b151
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r14, eax
cmp r14d, 0xffffffff
je 0x14004b151
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004b151
cmp r14, 0xffffffffffffffff
je 0x14004b151
mov rax, qword [0x140065a80]
test rax, rax
je 0x14004af53
inc dword [rax + 0xf4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x14004b151
mov r9, rsi
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rsi
cmp rax, r14
je 0x14004afaa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140065a80]
test rax, rax
je 0x14004af9c
dec dword [rax + 0xf4]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004b15a
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 - 0x50], xmm2
movups xmmword [rbp - 0x20], xmm2
movups xmmword [rbp - 0x10], xmm2
mov qword [rbp + 0x20], rax
mov byte [rbp - 0x54], 1
mov dword [rbp - 0x48], 3
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x1c], 0x7f7fffff
mov dword [rbp - 0x10], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0xc], ax
movaps xmm3, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0xe0], xmm3
movaps xmm4, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0xf0], xmm4
movaps xmmword [rbp + 0x100], xmm2
xorps xmm5, xmm5
movaps xmmword [rbp + 0x110], xmm5
movaps xmm6, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x120], xmm6
movaps xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x130], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0x140], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0x150], xmm8
movsd xmm9, qword [rbp + 0x20]
movsd qword [rbp + 0x160], xmm9
mov rsi, r14
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x14004b103
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14004b070
add rbx, rdi
cmp rbx, rdi
jbe 0x14004b098
lea rcx, [rbx - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x14004b098
cmp al, 0x5c
je 0x14004b098
mov rbx, rcx
cmp rcx, rdi
ja 0x14004b081
movsd xmm0, qword [0x14005c230]
movsd qword [rsp + 0x20], xmm0
mov r9, rbx
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x136]
call fcn.140009670
movsd xmm9, qword [rbp + 0x160]
movaps xmm8, xmmword [rbp + 0x150]
movaps xmm7, xmmword [rbp + 0x140]
movaps xmm1, xmmword [rbp + 0x130]
movaps xmm6, xmmword [rbp + 0x120]
movaps xmm5, xmmword [rbp + 0x110]
movaps xmm2, xmmword [rbp + 0x100]
movaps xmm4, xmmword [rbp + 0xf0]
movaps xmm3, xmmword [rbp + 0xe0]
movaps xmmword [rbp - 0x60], xmm3
movaps xmmword [rbp - 0x50], xmm4
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x30], xmm5
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp], xmm7
movaps xmmword [rbp + 0x10], xmm8
movsd qword [rbp + 0x20], xmm9
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], esi
mov dword [rbp - 0x4c], 0x41880000
lea rax, [0x14005b5c0]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.14002e380
jmp 0x14004b15a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r15d, r15d
mov rbx, qword [0x140065a80]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004b2aa
lea rcx, [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004b2aa
mov rax, qword [0x140065a80]
test rax, rax
je 0x14004b1a0
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 0x14004b1cd
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 0x14004b1d0
mov rdi, r15
mov qword [rbx + 0x98], rdi
lea rax, [rsp + 0x48]
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 6
mov qword [rdi], r12
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp + 0xb0]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0xb8]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x140065a80]
mov rax, qword [rax + 0x4878]
mov rcx, qword [rax]
mov qword [rcx + 0x28], r12
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, r15
nop dword [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14004b27e
inc rbx
cmp rbx, 5
jl 0x14004b260
jmp 0x14004b2aa
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 + 0x50]
mov rdi, qword [rdi]
mov rbx, qword [0x140065a80]
test rbx, rbx
je 0x14004b2c4
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 0x14004b2f3
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14004b2f6
mov rax, r15
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]
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x14004b360
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b35b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b35b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052de4
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140052d80
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.1400011b0
int3
call fcn.140001110
int3