Function at 0x14003e1e0
Capabilities:
Delete file
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rdx
mov r15, rcx
cmp qword [rdx + 0x18], 0x10
jb 0x14003e213
mov rdx, qword [rdx]
lea rcx, [rsp + 0x60]
call fcn.140041180
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rdx, 0xffffffffffffffff
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x50]
add rsi, qword [rsp + 0x48]
movq rcx, xmm0
add rcx, rdx
cmp rsi, rcx
jne 0x14003e2ff
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.140040a70
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14003e2f5
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003e2f0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003e603
mov rcx, r8
call fcn.140063c10
xor edi, edi
mov byte [rbx], dil
jmp 0x14003e452
movdqu xmmword [rsp + 0x30], xmm0
xor edi, edi
mov qword [rsp + 0x40], rdi
test rsi, rsi
je 0x14003e34e
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x14003e60a
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140041d00
mov r8, rsi
xor edx, edx
mov r14, qword [rsp + 0x30]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
lea rax, [r14 + rsi]
mov qword [rsp + 0x38], rax
jmp 0x14003e353
mov r14, qword [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rsp + 0x50]
add r8, qword [rsp + 0x48]
mov rdx, r14
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rdx, [rsp + 0x30]
lea rcx, [r15 + 0x10]
call fcn.140040ae0
mov rax, qword [r15 + 0x18]
cmp rax, qword [r15 + 0x10]
jne 0x14003e47c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003e3d4
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x14003e3ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e5fc
call fcn.140063c10
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.140040a70
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14003e44f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003e44a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003e603
mov rcx, r8
call fcn.140063c10
mov byte [rbx], 0
xor al, al
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x70]
call fcn.1400410d0
test rax, rax
jne 0x14003e4a9
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003e4b6
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rcx, qword [r15 + 0x10]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003e397
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14003e397
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14003e5bd
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x14003e5bd
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003e53c
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e536
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e5fc
call fcn.140063c10
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.140040a70
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14003e5b3
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003e5ae
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003e603
mov rcx, r8
call fcn.140063c10
mov byte [rbx], 0
mov al, 1
jmp 0x14003e454
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003e3d4
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e3ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003e3ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140041ce0
int3