Function at 0x14006f480
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 - 0x148]
sub rsp, 0x210
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [0x14010f080]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r15, rdx
mov rbx, rcx
mov rdx, rcx
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x14006f56f
lea rdx, [rbx + 0x10]
xor r14d, r14d
mov qword [rbx + 0x1c], r14
mov qword [rbx + 0x28], 1
mov qword [rbx + 0x44], r14
mov dword [rbx + 0x38], 1
mov qword [rbx + 0x30], r15
mov dword [rbx + 0x24], r14d
mov dword [rbx + 0x18], reloc.WS2_32.dll_setsockopt
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 r12, [rbx + 8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r15
xor edx, edx
lea r8d, [r14 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x14006f579
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x14006fa19
mov rdi, qword [0x1401105a0]
test rdi, rdi
je 0x14006f58b
inc dword [rdi + 0xf4]
mov ecx, 0x5dd8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x20], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x18], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14006f5b9
xor edx, edx
mov rcx, rax
call fcn.1400266a0
jmp 0x14006f5bc
mov rax, r14
mov qword [0x1401105a0], rax
call fcn.14002a980
test rdi, rdi
je 0x14006f5d6
mov qword [0x1401105a0], rdi
jmp 0x14006f5dd
mov rdi, qword [0x1401105a0]
mov qword [rdi + 0x20], r14
mov r13, qword [rdi + 0x58]
lea rdx, [0x1400f518c]
lea rcx, str.C:WindowsFonts_segoeuib.ttf
call fcn.140028310
mov rdi, rax
test rax, rax
je 0x14006f85c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x14006f850
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14006f850
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14006f850
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14006f850
cmp rsi, 0xffffffffffffffff
je 0x14006f850
mov rax, qword [0x1401105a0]
test rax, rax
je 0x14006f678
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14006f850
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14006f6cf
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401105a0]
test rax, rax
je 0x14006f6c1
dec dword [rax + 0xf4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14006f859
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
movups xmmword [rbp - 0x50], xmm2
mov qword [rbp - 0x20], rax
mov byte [rsp + 0x6c], 1
mov dword [rsp + 0x78], 3
mov dword [rsp + 0x7c], 1
mov dword [rbp - 0x5c], 0x7f7fffff
mov dword [rbp - 0x50], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x4c], ax
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x30], xmm3
movaps xmm4, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x40], xmm4
movaps xmmword [rbp + 0x50], xmm2
xorps xmm5, xmm5
movaps xmmword [rbp + 0x60], xmm5
movaps xmm6, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x70], xmm6
movaps xmm1, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x80], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0x90], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0xa0], xmm8
movsd xmm9, qword [rbp - 0x20]
movsd qword [rbp + 0xb0], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x14006f804
lea r9, [0x1400fa8f5]
lea rdx, str.C:WindowsFonts_segoeuib.ttf
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x14006f7ab
cmp al, 0x5c
je 0x14006f7ab
mov r9, rcx
cmp rcx, rdx
ja 0x14006f794
movsd xmm0, qword [0x1400fb218]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, Ordinal_41
lea rcx, [rbp + 0x86]
call fcn.140028120
movsd xmm9, qword [rbp + 0xb0]
movaps xmm8, xmmword [rbp + 0xa0]
movaps xmm7, xmmword [rbp + 0x90]
movaps xmm1, xmmword [rbp + 0x80]
movaps xmm6, xmmword [rbp + 0x70]
movaps xmm5, xmmword [rbp + 0x60]
movaps xmm2, xmmword [rbp + 0x50]
movaps xmm4, xmmword [rbp + 0x40]
movaps xmm3, xmmword [rbp + 0x30]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x70], xmm4
movaps xmmword [rbp - 0x80], xmm2
movaps xmmword [rbp - 0x70], xmm5
movaps xmmword [rbp - 0x60], xmm6
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm7
movaps xmmword [rbp - 0x30], xmm8
movsd qword [rbp - 0x20], xmm9
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x74], 0x41780000
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.14004d8f0
xor r14d, r14d
jmp 0x14006f85f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r14d, r14d
mov rax, r14
mov qword [rbx + 0x118], rax
mov rbx, qword [0x1401105a0]
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14006f9aa
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14006f9aa
mov rax, qword [0x1401105a0]
test rax, rax
je 0x14006f8a3
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 0x14006f8d0
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 0x14006f8d3
mov rdi, r14
mov qword [rbx + 0x98], rdi
lea rax, [rsp + 0x50]
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 6
mov qword [rdi], r15
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp + 0x18]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1401105a0]
mov rcx, qword [rax + 0x4878]
mov rax, qword [rcx]
mov qword [rax + 0x28], r15
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x10], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 8], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 8], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x10], rax
mov rbx, r14
nop word [rax + rax]
mov rcx, qword [rbp + rbx*8 - 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14006f97e
inc rbx
cmp rbx, 5
jl 0x14006f960
jmp 0x14006f9aa
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 [r12]
mov rbx, qword [0x1401105a0]
test rbx, rbx
je 0x14006f9c0
inc dword [rbx + 0xf4]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14006f9ef
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 0x14006f9f2
mov rax, r14
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 + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400ddbf0
lea r11, [rsp + 0x210]
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