Function at 0x140059300
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 - 0x1c8]
sub rsp, 0x290
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [0x1400dd180]
xor rax, rsp
mov qword [rbp + 0x148], rax
mov r12, rdx
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x1400593f1
lea rdx, [rbx + 0x10]
xor r15d, r15d
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], 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 r13, [rbx + 8]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r12
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x1400593fb
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x140059dac
mov rdi, qword [0x1401174f0]
test rdi, rdi
je 0x14005940d
inc dword [rdi + 0xec]
mov ecx, 0x56a8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x140], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 0xa8], rcx
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140059440
xor edx, edx
mov rcx, rax
call fcn.140019180
jmp 0x140059443
mov rax, r15
mov qword [0x1401174f0], rax
call fcn.14001fb20
test rdi, rdi
je 0x14005945d
mov qword [0x1401174f0], rdi
jmp 0x140059464
mov rdi, qword [0x1401174f0]
xor ecx, ecx
call fcn.1400379b0
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp + 0xb0], xmm6
movups xmmword [rbp + 0xc0], xmm6
movups xmmword [rbp + 0xf0], xmm6
movups xmmword [rbp + 0x100], xmm6
mov qword [rbp + 0x130], rax
mov byte [rbp + 0xbc], 1
mov dword [rbp + 0xc8], 3
mov dword [rbp + 0xcc], 1
mov dword [rbp + 0x100], 0x3f800000
mov r14d, 0xffff
mov word [rbp + 0x104], r14w
mov byte [rbp + 0xf8], 1
mov dword [rbp + 0xf4], 0x41500000
xorps xmm2, xmm2
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], r14w
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp + 0x10], xmm2
movaps xmmword [rbp + 0x20], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x50], xmm2
movaps xmmword [rbp + 0x60], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x70], xmm0
lea rsi, [0x1400de810]
mov qword [rbp - 0x10], rsi
mov dword [rbp - 8], 0x1329c
mov dword [rbp + 4], 0x41800000
lea rdx, [rbp - 0x10]
mov rcx, qword [rdi + 0x50]
call fcn.14003e4e0
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], r14w
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp + 0x10], xmm2
movaps xmmword [rbp + 0x20], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x50], xmm2
movaps xmmword [rbp + 0x60], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x70], xmm0
mov qword [rbp - 0x10], rsi
mov dword [rbp - 8], 0x1329c
mov dword [rbp + 4], 0x41500000
lea rdx, [rbp - 0x10]
mov rcx, qword [rdi + 0x50]
call fcn.14003e4e0
mov qword [0x140117508], rax
movaps xmm0, xmmword [rbp + 0xb0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rbp + 0xc0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rbp - 0x80], xmm6
movaps xmm0, xmmword [rbp + 0xf0]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x100]
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm6
movsd xmm0, qword [rbp + 0x130]
movsd qword [rbp - 0x30], xmm0
lea rax, [0x1400dd240]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x15b4
mov dword [rsp + 0x64], 0x41880000
lea rax, [0x1400c3d7c]
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x50]
call fcn.14003e4e0
mov qword [0x140117528], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], r14w
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp + 0x10], xmm2
movaps xmmword [rbp + 0x20], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x50], xmm2
movaps xmmword [rbp + 0x60], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x70], xmm0
lea rax, [0x1400f1ab0]
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x13398
mov dword [rbp + 4], 0x41f80000
lea rdx, [rbp - 0x10]
mov rcx, qword [rdi + 0x50]
call fcn.14003e4e0
mov qword [0x140117520], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], r14w
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0xc0], xmm1
movaps xmmword [rbp + 0xd0], xmm2
movaps xmmword [rbp + 0xe0], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0xf0], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x100], xmm1
movaps xmmword [rbp + 0x110], xmm2
movaps xmmword [rbp + 0x120], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x130], xmm0
mov qword [rbp + 0xb0], rsi
mov dword [rbp + 0xb8], 0x1329c
mov dword [rbp + 0xc4], 0x41800000
lea rax, [0x1400c2a30]
mov qword [rbp + 0xe8], rax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rdi + 0x50]
call fcn.14003e4e0
mov qword [rbx + 0x110], rax
mov rax, qword [rdi + 0x50]
mov qword [rbp + 0xa8], rax
lea rdx, [0x1400bde14]
lea rcx, str.C:_font.ttf
call fcn.14001a930
mov rsi, rax
test rax, rax
je 0x140059ae8
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r15d, eax
cmp eax, 0xffffffff
je 0x140059adc
xor edx, edx
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140059adc
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r14, eax
cmp r14d, 0xffffffff
je 0x140059adc
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 0x140059adc
cmp r14, 0xffffffffffffffff
je 0x140059adc
mov rax, qword [0x1401174f0]
test rax, rax
je 0x1400598ce
inc dword [rax + 0xec]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x140059adc
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 0x140059925
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401174f0]
test rax, rax
je 0x140059917
dec dword [rax + 0xec]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140059ae5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov esi, 0xffff
mov word [rbp - 0x5c], si
movaps xmm3, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0xb0], xmm3
movaps xmm4, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0xc0], xmm4
movaps xmmword [rbp + 0xd0], xmm1
xorps xmm5, xmm5
movaps xmmword [rbp + 0xe0], xmm5
movaps xmm6, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0xf0], xmm6
movaps xmm2, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x100], xmm2
xorps xmm7, xmm7
movaps xmmword [rbp + 0x110], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0x120], xmm8
movsd xmm9, qword [rbp - 0x30]
movsd qword [rbp + 0x130], xmm9
movdqa xmm0, xmm2
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x140059a7f
lea r9, [0x1400c30f3]
lea rdx, str.C:_font.ttf
nop dword [rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140059a17
cmp al, 0x5c
je 0x140059a17
mov r9, rcx
cmp rcx, rdx
ja 0x140059a00
movsd xmm0, qword [0x1400c3f50]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x106]
call fcn.14001a740
movsd xmm9, qword [rbp + 0x130]
movaps xmm8, xmmword [rbp + 0x120]
movaps xmm7, xmmword [rbp + 0x110]
movaps xmm2, xmmword [rbp + 0x100]
movaps xmm6, xmmword [rbp + 0xf0]
movaps xmm5, xmmword [rbp + 0xe0]
movaps xmm1, xmmword [rbp + 0xd0]
movaps xmm4, xmmword [rbp + 0xc0]
movaps xmm3, xmmword [rbp + 0xb0]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x60], xmm4
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rbp - 0x80], xmm5
movaps xmmword [rbp - 0x70], xmm6
movaps xmmword [rbp - 0x60], xmm2
movaps xmmword [rbp - 0x50], xmm7
movaps xmmword [rbp - 0x40], xmm8
movsd qword [rbp - 0x30], xmm9
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x64], 0x41880000
lea rax, [0x1400c2a44]
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rbp + 0xa8]
call fcn.14003e4e0
xor r15d, r15d
jmp 0x140059af0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r15d, r15d
mov rax, r15
mov esi, 0xffff
mov qword [rbx + 0x118], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], si
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0xc0], xmm1
movaps xmmword [rbp + 0xd0], xmm2
movaps xmmword [rbp + 0xe0], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0xf0], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x100], xmm1
movaps xmmword [rbp + 0x110], xmm2
movaps xmmword [rbp + 0x120], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x130], xmm0
lea rax, [0x140105030]
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xb8], 0xb018
mov dword [rbp + 0xc4], 0x41880000
lea rax, [0x1400c2a30]
mov qword [rbp + 0xe8], rax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rdi + 0x50]
call fcn.14003e4e0
mov qword [rbx + 0x118], rax
mov rdi, qword [0x1401174f0]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140059d3d
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140059d3d
mov rax, qword [0x1401174f0]
test rax, rax
je 0x140059c1a
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140059c47
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
jmp 0x140059c4a
mov rbx, r15
mov qword [rdi + 0x90], rbx
lea rax, str.imgui_impl_win32
mov qword [rdi + 0x80], rax
or dword [rdi + 0xc], 6
mov qword [rbx], r12
mov byte [rbx + 0x2d], 1
mov rax, qword [rbp + 0xa8]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0x140]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x1401174f0]
mov rcx, qword [rax + 0x40e0]
mov rax, qword [rcx]
mov qword [rax + 0x50], r12
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x80], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x88], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x90], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x98], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0xa0], rax
mov rdi, r15
nop word [rax + rax]
mov rcx, qword [rbp + rdi*8 + 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140059d11
inc rdi
cmp rdi, 5
jl 0x140059cf0
jmp 0x140059d3d
mov qword [rbx + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
mov rdi, qword [r13]
mov rbx, qword [0x1401174f0]
test rbx, rbx
je 0x140059d53
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 0x140059d82
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 0x140059d85
mov rax, r15
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 + ioctlsocket]
xor eax, eax
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.1400ad050
lea r11, [rsp + 0x290]
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