Function at 0x140041580
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 - 0xf8]
sub rsp, 0x1d0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x14006d040]
xor rax, rsp
mov qword [rbp + 0x80], rax
lea rdx, [0x14006e048]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400415eb
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r12d, r12d
mov qword [0x14006dfcc], r12
mov qword [0x14006dfd8], 1
mov qword [0x14006dff4], r12
mov dword [0x14006dfe8], 1
mov r9, qword [0x14006e038]
mov qword [0x14006dfe0], r9
mov dword [0x14006dfd4], r12d
mov dword [0x14006dfc8], 0x15
mov eax, dword [0x14006e164]
mov dword [0x14006dfc0], eax
mov eax, dword [0x14006e198]
mov dword [0x14006dfc4], eax
mov dword [0x14006dfec], 1
mov dword [0x14006dff0], 0x50
mov eax, r12d
cmp byte [0x14006e0eb], r12b
setne al
mov dword [0x14006dffc], eax
mov rcx, qword [0x14006e048]
mov rax, qword [rcx]
lea rdx, [0x14006df90]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r12
lea rdx, [0x14006dfc0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x1400416c9
mov rcx, qword [0x14006e048]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x14006df80]
test rbx, rbx
je 0x1400416db
inc dword [rbx + 0xec]
mov ecx, 0x5e68
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 0x140041709
xor edx, edx
mov rcx, rax
call fcn.140001370
jmp 0x14004170c
mov rax, r12
mov qword [0x14006df80], rax
call fcn.140004e20
test rbx, rbx
je 0x140041724
mov qword [0x14006df80], rbx
mov rcx, qword [0x14006e038]
call fcn.14002b040
mov rdi, qword [0x14006df90]
mov rbx, qword [0x14006df80]
test rbx, rbx
je 0x140041749
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 0x140041778
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14004177b
mov rax, r12
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]
mov r14, qword [0x14006df80]
mov qword [r14 + 0x20], r12
mov r15, qword [r14 + 0x38]
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, [0x14005a6b0]
lea r13, str.c:WindowsFontsimpact.ttf
mov rcx, r13
call fcn.140002b00
mov rbx, rax
test rax, rax
je 0x140041a04
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400419fb
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 0x1400419fb
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400419fb
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 0x1400419fb
cmp rdi, 0xffffffffffffffff
je 0x1400419fb
mov rax, qword [0x14006df80]
test rax, rax
je 0x14004188c
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400419fb
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 0x1400418e3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14006df80]
test rax, rax
je 0x1400418d5
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140041a04
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm2
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm3
movaps xmmword [rbp + 0x10], xmm6
xorps xmm4, xmm4
movaps xmmword [rbp + 0x20], xmm4
movaps xmm5, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x30], xmm5
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0x50], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0x60], xmm8
movsd xmm9, qword [rbp - 0x30]
movsd qword [rbp + 0x70], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x1400419b1
lea r9, [0x14005f94b]
nop word [rax + rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140041967
cmp al, 0x5c
je 0x140041967
mov r9, rcx
cmp rcx, r13
ja 0x140041950
movsd xmm0, qword [0x140061b48]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x46]
call fcn.1400029d0
movsd xmm9, qword [rbp + 0x70]
movaps xmm8, xmmword [rbp + 0x60]
movaps xmm7, xmmword [rbp + 0x50]
movaps xmm1, xmmword [rbp + 0x40]
movaps xmm5, xmmword [rbp + 0x30]
movaps xmm4, xmmword [rbp + 0x20]
movaps xmm6, xmmword [rbp + 0x10]
movaps xmm3, xmmword [rbp]
movaps xmm2, xmmword [rbp - 0x10]
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], 0x41700000
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1400264b0
jmp 0x140041a04
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [r14 + 0x38], r15
xor ecx, ecx
call fcn.140022270
mov rax, qword [0x14006df80]
mov dword [rax + 0x37e8], 0x3f000000
mov dword [rax + 0x37ec], 0x3f000000
mov qword [rax + 0x37d8], 0x40a00000
mov qword [rax + 0x380c], 0x40000000
mov dword [rax + 0x3800], r12d
mov dword [rax + 0x37d0], 0x41200000
mov dword [rax + 0x37d4], 0x41200000
movdqa xmm0, xmmword [0x140062180]
movups xmmword [rax + 0x38a4], xmm0
movdqa xmm1, xmmword [0x140062070]
movups xmmword [rax + 0x38b4], xmm1
movdqa xmm7, xmmword [0x140061fc0]
movups xmmword [rax + 0x38c4], xmm7
movups xmmword [rax + 0x38d4], xmm7
movdqa xmm5, xmmword [0x140061fb0]
movups xmmword [rax + 0x38e4], xmm5
movdqa xmm2, xmmword [0x140062000]
movups xmmword [rax + 0x38f4], xmm2
movups xmmword [rax + 0x3904], xmm7
movdqa xmm3, xmmword [0x140061ff0]
movups xmmword [rax + 0x3914], xmm3
movups xmmword [rax + 0x3924], xmm2
movdqa xmm6, xmmword [0x1400620c0]
movups xmmword [rax + 0x3934], xmm6
movups xmmword [rax + 0x3944], xmm5
movups xmmword [rax + 0x3954], xmm5
movups xmmword [rax + 0x3964], xmm7
movdqa xmm1, xmmword [0x140061fd0]
movups xmmword [rax + 0x3974], xmm1
movups xmmword [rax + 0x3984], xmm5
movups xmmword [rax + 0x3994], xmm3
movups xmmword [rax + 0x39a4], xmm2
movups xmmword [rax + 0x39b4], xmm3
movdqa xmm4, xmmword [0x140062160]
movups xmmword [rax + 0x39c4], xmm4
movups xmmword [rax + 0x39d4], xmm4
movdqa xmm0, xmmword [0x140062170]
movups xmmword [rax + 0x39e4], xmm0
movups xmmword [rax + 0x39f4], xmm3
movups xmmword [rax + 0x3a04], xmm3
movups xmmword [rax + 0x3a14], xmm4
movups xmmword [rax + 0x3a24], xmm3
movups xmmword [rax + 0x3a34], xmm3
movups xmmword [rax + 0x3a44], xmm4
movups xmmword [rax + 0x3a54], xmm2
movups xmmword [rax + 0x3a64], xmm2
movups xmmword [rax + 0x3a74], xmm2
movups xmmword [rax + 0x3a84], xmm3
movdqa xmm0, xmmword [0x1400620b0]
movups xmmword [rax + 0x3a94], xmm0
movups xmmword [rax + 0x3aa4], xmm6
movups xmmword [rax + 0x3ab4], xmm5
movups xmmword [rax + 0x3ac4], xmm3
movups xmmword [rax + 0x3ad4], xmm1
movups xmmword [rax + 0x3ae4], xmm5
movups xmmword [rax + 0x3af4], xmm7
movdqa xmm0, xmmword [0x140062100]
movups xmmword [rax + 0x3b04], xmm0
movdqa xmm1, xmmword [0x140062150]
movups xmmword [rax + 0x3b14], xmm1
movdqa xmm0, xmmword [0x1400620d0]
movups xmmword [rax + 0x3b24], xmm0
movdqa xmm1, xmmword [0x1400620f0]
movups xmmword [rax + 0x3b34], xmm1
movups xmmword [rax + 0x3b94], xmm6
movups xmmword [rax + 0x3ba4], xmm4
movups xmmword [rax + 0x3bb4], xmm4
movups xmmword [rax + 0x3bc4], xmm4
movdqa xmm0, xmmword [0x140061e90]
movups xmmword [rax + 0x3bd4], xmm0
movups xmmword [rax + 0x3be4], xmm0
mov rcx, qword [0x14006e048]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140055e50
lea r11, [rsp + 0x1d0]
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