Function at 0x18003e3a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rdx
mov rdi, rcx
call fcn.18003f4c0
test rbx, rbx
je 0x18003ebac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov qword [rdi + 0x70], rbx
mov rax, qword [rbx]
lea r8, [rdi + 0x78]
xor edx, edx
mov rcx, rbx
call qword [rax + 0xd8]
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, str.afx_line_vs_5_0.acs
call fcn.18003cc30
mov rbx, rax
lea r14, str.POSITION
xor r15d, r15d
lea r12, str.COLOR
lea rsi, str.TEXCOORD
test rax, rax
je 0x18003e521
mov rcx, qword [rdi + 0x70]
mov r10, qword [rcx]
lea rax, [rdi + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rbx
call qword [r10 + 0x60]
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], r15d
mov qword [rbp - 0x24], 6
mov qword [rbp - 0x1c], r15
mov dword [rbp - 0x14], r15d
mov qword [rbp - 0x10], r12
mov dword [rbp - 8], r15d
mov qword [rbp - 4], 0x57
mov qword [rbp + 4], 0xc
mov dword [rbp + 0xc], r15d
mov qword [rbp + 0x10], rsi
mov dword [rbp + 0x18], r15d
mov qword [rbp + 0x1c], 6
mov qword [rbp + 0x24], 0x10
mov dword [rbp + 0x2c], r15d
mov qword [rbp + 0x30], rsi
mov dword [rbp + 0x38], 1
mov qword [rbp + 0x3c], 6
mov qword [rbp + 0x44], 0x1c
mov dword [rbp + 0x4c], r15d
mov qword [rbp + 0x50], rsi
mov dword [rbp + 0x58], 2
mov qword [rbp + 0x5c], 6
mov qword [rbp + 0x64], 0x28
mov dword [rbp + 0x6c], r15d
mov rcx, qword [rdi + 0x70]
mov r10, qword [rcx]
lea rax, [rdi + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8d, [r15 + 5]
lea rdx, [rbp - 0x30]
call qword [r10 + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, str.afx_drawtexture_vs_5_0.acs
call fcn.18003cc30
mov rbx, rax
test rax, rax
je 0x18003e627
mov rcx, qword [rdi + 0x70]
mov r10, qword [rcx]
lea rdx, [rdi + 0x158]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rax
call qword [r10 + 0x60]
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], r15d
mov qword [rbp - 0x24], 6
mov qword [rbp - 0x1c], r15
mov dword [rbp - 0x14], r15d
mov qword [rbp - 0x10], r12
mov dword [rbp - 8], r15d
mov qword [rbp - 4], 0x57
mov qword [rbp + 4], 0xc
mov dword [rbp + 0xc], r15d
mov qword [rbp + 0x10], rsi
mov dword [rbp + 0x18], r15d
mov qword [rbp + 0x1c], 6
mov qword [rbp + 0x24], 0x10
mov dword [rbp + 0x2c], r15d
mov qword [rbp + 0x30], rsi
mov dword [rbp + 0x38], 1
mov qword [rbp + 0x3c], 6
mov qword [rbp + 0x44], 0x1c
mov dword [rbp + 0x4c], r15d
mov qword [rbp + 0x50], rsi
mov dword [rbp + 0x58], 2
mov qword [rbp + 0x5c], 6
mov qword [rbp + 0x64], 0x28
mov dword [rbp + 0x6c], r15d
mov rcx, qword [rdi + 0x70]
mov r10, qword [rcx]
lea rax, [rdi + 0xd0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 5
lea rdx, [rbp - 0x30]
call qword [r10 + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, str.afx_line_ps_5_0.acs
call fcn.18003cc30
mov rbx, rax
test rax, rax
je 0x18003e66d
mov rcx, qword [rdi + 0x70]
mov r10, qword [rcx]
lea rdx, [rdi + 0x110]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rax
call qword [r10 + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, str.afx_drawtexture_ps_5_0.acs
call fcn.18003cc30
mov rbx, rax
test rax, rax
je 0x18003e6b3
mov rcx, qword [rdi + 0x70]
mov r10, qword [rcx]
lea rdx, [rdi + 0x160]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rax
call qword [r10 + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x50], 0x70
mov dword [rsp + 0x54], 2
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x5c], 0x10000
mov dword [rsp + 0x64], r15d
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r9, [rdi + 0xe0]
xor r8d, r8d
lea rdx, [rsp + 0x50]
call qword [rax + 0x18]
mov dword [rsp + 0x50], 0x10
mov dword [rsp + 0x54], 2
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x5c], 0x10000
mov dword [rsp + 0x64], r15d
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r9, [rdi + 0xe8]
xor r8d, r8d
lea rdx, [rsp + 0x50]
call qword [rax + 0x18]
movdqa xmm0, xmmword [0x180056b40]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x60], 0xffff
movdqa xmm0, xmmword [0x180056b90]
movdqu xmmword [rbp - 0x5c], xmm0
movdqa xmm1, xmm0
movdqu xmmword [rbp - 0x4c], xmm0
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r8, [rdi + 0xa0]
lea rdx, [rbp - 0x70]
call qword [rax + 0xa8]
movdqa xmm0, xmmword [0x180056b30]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x60], 0xffff
movdqa xmm0, xmmword [0x180056b90]
movdqu xmmword [rbp - 0x5c], xmm0
movdqa xmm1, xmm0
movdqu xmmword [rbp - 0x4c], xmm0
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r8, [rdi + 0xa8]
lea rdx, [rbp - 0x70]
call qword [rax + 0xa8]
movdqa xmm0, xmmword [0x180056b60]
movdqu xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x60], r15d
mov dword [rbp - 0x5c], 1
mov dword [rbp - 0x58], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x54], xmm0
mov dword [rbp - 0x44], 0xff7fffff
mov dword [rbp - 0x40], 0x7f7fffff
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r8, [rdi + 0xb0]
lea rdx, [rbp - 0x70]
call qword [rax + 0xb8]
movdqa xmm0, xmmword [0x180056b10]
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [0x180056b00]
movdqu xmmword [rbp - 0x80], xmm0
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r8, [rdi + 0xb8]
lea rdx, [rsp + 0x68]
call qword [rax + 0xb0]
movdqa xmm0, xmmword [0x180056b20]
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [0x180056b00]
movdqu xmmword [rbp - 0x80], xmm0
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r8, [rdi + 0xc0]
lea rdx, [rsp + 0x68]
call qword [rax + 0xb0]
movdqa xmm0, xmmword [0x180056b70]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x180056b80]
movdqa xmmword [rbp - 0x20], xmm1
mov dword [rbp - 0x10], 1
mov byte [rbp - 0xc], 0xf
mov dword [rbp - 8], r15d
mov dword [rbp - 4], 2
movdqa xmm0, xmmword [0x180056b50]
movdqa xmmword [rbp], xmm0
mov dword [rbp + 0x10], 1
mov byte [rbp + 0x14], 0xf
mov dword [rbp + 0x18], r15d
mov dword [rbp + 0x1c], 2
movdqa xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 1
mov byte [rbp + 0x34], 0xf
mov dword [rbp + 0x38], r15d
mov dword [rbp + 0x3c], 2
movdqa xmmword [rbp + 0x40], xmm0
mov dword [rbp + 0x50], 1
mov byte [rbp + 0x54], 0xf
mov dword [rbp + 0x58], r15d
mov dword [rbp + 0x5c], 2
movdqa xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x70], 1
mov byte [rbp + 0x74], 0xf
mov dword [rbp + 0x78], r15d
mov dword [rbp + 0x7c], 2
movdqa xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x90], 1
mov byte [rbp + 0x94], 0xf
mov dword [rbp + 0x98], r15d
mov dword [rbp + 0x9c], 2
movdqa xmmword [rbp + 0xa0], xmm0
mov dword [rbp + 0xb0], 1
mov byte [rbp + 0xb4], 0xf
mov dword [rbp + 0xb8], r15d
mov dword [rbp + 0xbc], 2
movdqa xmmword [rbp + 0xc0], xmm0
mov dword [rbp + 0xd0], 1
mov byte [rbp + 0xd4], 0xf
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r8, [rdi + 0xc8]
lea rdx, [rbp - 0x30]
call qword [rax + 0xa0]
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x18003ebac
call fcn.180041ad0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r15w
jne 0x18003e9d0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.18000d200
nop
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
sub rax, rsi
cmp rax, 0x15
jb 0x18003ea33
lea rax, [rsi + 0x15]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rcx, 7
cmova rbx, qword [rsp + 0x68]
lea rcx, [rbx + rsi*2]
mov r8d, 0x2a
lea rdx, str.resourceshexfont.tga
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi*2 + 0x2a], r15w
jmp 0x18003ea54
mov qword [rsp + 0x20], 0x15
lea r9, str.resourceshexfont.tga
xor r8d, r8d
lea edx, [r8 + 0x15]
lea rcx, [rsp + 0x68]
call fcn.18000d8f0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
lea r8, [0x18004fe74]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18003eab1
xor r8d, r8d
lea edx, [r8 + 0x12]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rsp + 0x30]
mov edx, 1
mov r8d, 0x20000
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0x400
mov dword [rbp - 0x70], 0x100
mov dword [rbp - 0x6c], 0x80
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x60], 0x57
mov qword [rbp - 0x5c], 1
mov dword [rbp - 0x54], 1
mov qword [rbp - 0x50], 8
mov dword [rbp - 0x48], r15d
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r9, [rdi + 0x148]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
call qword [rax + 0x28]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rdi + 0x148]
test rdx, rdx
je 0x18003eb68
mov dword [rsp + 0x38], 0x57
mov dword [rsp + 0x3c], 4
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x44], 1
mov rcx, qword [rdi + 0x70]
mov rax, qword [rcx]
lea r9, [rdi + 0x150]
lea r8, [rsp + 0x38]
call qword [rax + 0x38]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x18003ebac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003eba7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003eba7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004a4a8
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.18004a540
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret