Function at 0x1400408c0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x14016c0c0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
lea rax, [rbp + 0x138]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rax
mov r14, qword [rax]
xor r14, rcx
mov qword [rbp + 0x18], r14
xor r13d, r13d
mov qword [rax], r13
lea rdx, [0x140519608]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14004095b
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [0x14051956c], r13
mov qword [0x140519578], 1
mov qword [0x140519594], r13
mov dword [0x140519588], 1
mov r9, qword [0x1405195f8]
mov qword [0x140519580], r9
mov dword [0x140519574], r13d
mov dword [0x140519568], 0x15
mov eax, dword [0x14051a6c8]
mov dword [0x140519560], eax
mov eax, dword [0x14051a6dc]
mov dword [0x140519564], eax
mov dword [0x14051958c], 1
mov dword [0x140519590], 0x50
mov dword [0x14051959c], 0x80000000
mov rcx, qword [0x140519608]
mov rax, qword [rcx]
lea rdx, [0x140519540]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r13
lea rdx, [0x140519560]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x140040a2d
mov rcx, qword [0x140519608]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x140519520]
test rbx, rbx
je 0x140040a3f
inc dword [rbx + 0xf4]
mov ecx, 0x5e00
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x10], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 8], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140040a6d
xor edx, edx
mov rcx, rax
call fcn.1400023b0
jmp 0x140040a70
mov rax, r13
mov qword [0x140519520], rax
call fcn.140005d10
test rbx, rbx
je 0x140040a8a
mov qword [0x140519520], rbx
jmp 0x140040a91
mov rbx, qword [0x140519520]
mov rsi, qword [0x1405195f8]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140040bce
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140040bce
mov rax, qword [0x140519520]
test rax, rax
je 0x140040ace
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 0x140040afb
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 0x140040afe
mov rdi, r13
mov qword [rbx + 0x98], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov rax, qword [rbp + 8]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x10]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x140519520]
mov rax, qword [rax + 0x48a8]
mov rcx, qword [rax]
mov qword [rcx + 0x28], rsi
mov byte [rdi + 0x2d], 1
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x20], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x18], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x10], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 8], rax
lea rax, str.xinput1_1.dll
mov qword [rbp], rax
mov rbx, r13
mov rcx, qword [rbp + rbx*8 - 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140040ba2
inc rbx
cmp rbx, 5
jl 0x140040b84
jmp 0x140040bce
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 rbx, qword [0x140519540]
mov rax, qword [0x140519520]
lea rcx, str.imgui_impl_dx9
mov qword [rax + 0x90], rcx
or dword [rax + 0xc], 8
lea rcx, str.d3d9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140519938], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov r15, qword [0x140519520]
mov r12, qword [r15 + 0x58]
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rsp + 0x50], xmm6
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rbp - 0x70], xmm6
movups xmmword [rbp - 0x60], xmm6
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x5c], ax
mov byte [rsp + 0x5c], 0
lea rdx, [0x1401521cc]
lea rcx, str.c:WindowsFontsBahnschrift.ttf
call fcn.140003b60
mov rbx, rax
test rax, rax
je 0x140040e88
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140040e7f
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140040e7f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140040e7f
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140040e7f
cmp rdi, 0xffffffffffffffff
je 0x140040e7f
mov rax, qword [0x140519520]
test rax, rax
je 0x140040cf0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140040e7f
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140040d47
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140519520]
test rax, rax
je 0x140040d39
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140040e88
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x30], xmm2
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x40], xmm3
movaps xmmword [rbp + 0x50], xmm6
xorps xmm4, xmm4
movaps xmmword [rbp + 0x60], xmm4
movaps xmm5, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x70], xmm5
movaps xmm1, xmmword [rbp - 0x60]
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 - 0x30]
movsd qword [rbp + 0xb0], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x140040e35
lea r9, [0x140152ab0]
lea rdx, str.c:WindowsFontsBahnschrift.ttf
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140040ddc
cmp al, 0x5c
je 0x140040ddc
mov r9, rcx
cmp rcx, rdx
ja 0x140040dc5
movsd xmm0, qword [0x1401531a8]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, Ordinal_41
lea rcx, [rbp + 0x86]
call fcn.140003970
movsd xmm9, qword [rbp + 0xb0]
movaps xmm8, xmmword [rbp + 0xa0]
movaps xmm7, xmmword [rbp + 0x90]
movaps xmm1, xmmword [rbp + 0x80]
movaps xmm5, xmmword [rbp + 0x70]
movaps xmm4, xmmword [rbp + 0x60]
movaps xmm6, xmmword [rbp + 0x50]
movaps xmm3, xmmword [rbp + 0x40]
movaps xmm2, xmmword [rbp + 0x30]
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rbp - 0x80], xmm4
movaps xmmword [rbp - 0x70], xmm5
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm7
movaps xmmword [rbp - 0x40], xmm8
movsd qword [rbp - 0x30], xmm9
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x64], 0x41600000
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140022e40
jmp 0x140040e88
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [r15 + 0x58], r12
lea rax, str.imgui.ini
mov qword [r15 + 0x20], rax
mov rax, qword [0x140519520]
mov dword [rax + 0x381c], 0x41200000
mov dword [rax + 0x3820], 0x41200000
mov dword [rax + 0x382c], 0x41200000
mov dword [rax + 0x3830], 0x40a00000
mov dword [rax + 0x3824], 0x40a00000
mov qword [rax + 0x37f0], 0x41700000
mov dword [rax + 0x3818], r13d
mov qword [rax + 0x37e8], r13
mov dword [rax + 0x3810], 0x38d1b717
movups xmm0, xmmword [0x140518130]
movups xmmword [rax + 0x38d4], xmm0
xorps xmm1, xmm1
movups xmmword [rax + 0x3904], xmm1
mov dword [rax + 0x38a8], r13d
mov dword [rax + 0x3814], 0x40a00000
mov dword [rax + 0x3818], 0x3fa66666
mov dword [rax + 0x3854], 0x40800000
mov dword [rax + 0x3858], 0x41200000
mov rcx, qword [0x140519608]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
movabs rax, 0xff00ff00ff00ff00
xor r14, rax
lea rax, [rbp + 0x138]
mov qword [rax], r14
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14011b320
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
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 rbp
ret