Function at 0x180008110
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1801f7e40]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov dword [rsp + 0x30], 0
lea rax, str.C:WindowsSystem32
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], reloc.WS2_32.dll_send
call fcn.18013f164
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.180005ee0
mov r14d, Ordinal_50
mov dword [rsp + 0x30], r14d
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x70]
call fcn.180015040
test eax, eax
jne 0x180008877
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1800081ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800081e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800081e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18013fbb0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov r15, qword [rbp - 0x68]
test r15, r15
je 0x18000820b
lock inc dword [r15 + 8]
mov r15, qword [rbp - 0x68]
mov r14d, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x40], xmm0
test r15, r15
je 0x180008227
lock inc dword [r15 + 8]
mov r15, qword [rbp - 0x68]
mov r14d, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r12, 0xffffffffffffffff
test r15, r15
je 0x18000827a
mov eax, r12d
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x180008271
mov rbx, qword [rbp - 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180008271
mov r15, qword [rbp - 0x68]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180008275
mov r15, qword [rbp - 0x68]
mov r14d, dword [rsp + 0x30]
lea r13, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x1800087b3
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 0x80]
call fcn.180007a60
movsd xmm0, qword [rax]
movsd qword [rsp + 0x70], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x70]
test edx, edx
je 0x1800082be
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x18000888a
cmp ecx, 2
jne 0x180008781
lea rdx, [rbp - 0x30]
lea rcx, [rdi + 0x20]
call fcn.180006370
mov rsi, qword [rax + 0x10]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x180008318
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008313
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008797
call fcn.18013fbb0
test rsi, rsi
jne 0x180008781
mov ecx, dword [rdi + 0x1c]
mov eax, ecx
shr eax, 3
test al, 1
je 0x180008333
mov rax, qword [rdi + 8]
jmp 0x180008376
shr ecx, 1
test cl, 1
je 0x180008340
mov r9d, dword [rdi + 0x10]
jmp 0x180008346
mov r9d, 0xffffffff
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x180008355
mov rcx, qword [rdi + 0x20]
mov r8d, 9
lea rdx, [rbp - 0x30]
call fcn.18013f478
mov edx, eax
mov rax, r12
test edx, edx
cmove rax, qword [rbp - 0x28]
jne 0x180008857
test rax, rax
jne 0x180008412
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x18000838e
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
call fcn.18013f164
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.180018000
or r14d, 0x1c0
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x180008412
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000840d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000879e
call fcn.18013fbb0
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rdi + 0x20]
cmp qword [rbx + 0x18], 7
jbe 0x180008431
mov rbx, qword [rbx]
lea rax, [0x1801d4d60]
mov qword [rbp], rax
lea rax, [0x1801d4bd0]
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r14d, 8
mov dword [rsp + 0x30], r14d
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], r13
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x18], rax
mov byte [rbp + 0x94], 0
mov byte [rbp + 0x89], 0
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor esi, esi
mov qword [rbp + 0x98], rsi
mov rax, qword [0x1802064d8]
mov qword [rbp + 0x8c], rax
mov qword [rbp + 0x80], rsi
mov r8d, 3
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.180016da0
test rax, rax
jne 0x18000850f
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], r13
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 4], edx
cmp qword [rbp + 0x98], 0
je 0x180008742
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call fcn.180016fd0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1800086de
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rcx, qword [rbp - 0x60]
mov qword [rsp + 0x20], Ordinal_41
lea r9, str.This_program_cannot_be_run_in_DOS_mode.
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
call fcn.180015f40
cmp rax, 0xffffffffffffffff
je 0x18000869e
cmp qword [rbp + 0x98], 0
je 0x180008609
lea rcx, [rbp + 0x18]
call fcn.180014a80
test rax, rax
jne 0x180008609
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x180008618
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
call fcn.18013f164
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.180018000
or r14d, 7
mov dword [rsp + 0x30], r14d
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x18000869e
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008699
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800087a5
call fcn.18013fbb0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call fcn.180016fd0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x1800085a0
lea rcx, [rbp + 0x18]
call fcn.180014a80
test rax, rax
jne 0x18000870a
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x180008742
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000873c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800087ac
call fcn.18013fbb0
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], r13
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x18]
call fcn.180013af0
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
call fcn.180007040
test eax, eax
jne 0x180008868
jmp 0x180008281
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800087f0
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800087ec
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800087ec
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r15, qword [rbp - 0x68]
test r15, r15
je 0x180008825
mov eax, r12d
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x180008825
mov rbx, qword [rbp - 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x180008825
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.18013fb90
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rdi + 0x20]
lea rcx, str.directory_entry::file_size
call fcn.180006e10
int3
mov edx, eax
lea rcx, str.directory_iterator::operator
call fcn.180006d20
nop
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.180006e10
nop
lea r8, [rdi + 0x20]
lea rcx, str.status
call fcn.180006e10
int3