Function at 0x14016dbf0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r15, rcx
xor r13d, r13d
mov r14d, r13d
mov dword [rsp + 0x30], r13d
cmp qword [rcx + 0x18], 8
jb 0x14016dc40
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov r12d, eax
test eax, eax
je 0x14016e583
xor cl, cl
mov edi, 0xffff
lea rax, [0x1403c8f48]
test cl, cl
jne 0x14016dcb4
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14010a1d0
mov rbx, rax
or r14d, 1
mov dword [rsp + 0x30], r14d
cmp dword [0x140575068], 0
je 0x14016dc98
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x140575068]
je 0x14016dc98
call fcn.140136fe0
jmp 0x14016dc9f
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x14016dcb4
mov rcx, rbx
call fcn.140136b60
cmp eax, 1
jb 0x14016dcb4
mov bl, 1
jmp 0x14016dcb6
xor bl, bl
test r14b, 1
je 0x14016dcd8
and r14d, 0xfffffffe
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x10]
call fcn.14000e160
test bl, bl
je 0x14016e583
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140575108]
test rax, rax
jne 0x14016dd02
call fcn.140120770
mov qword [0x140575108], rax
mov r9, rax
mov r8, qword [0x1403c87b8]
lea rdx, str.File__s_couldnt_be_removed
lea rcx, [rbp - 0x48]
call fcn.140109720
nop
mov rbx, qword [rax]
mov qword [rbp - 0x60], rbx
call fcn.14010aa30
cmp rbx, rax
je 0x14016dd32
inc word [rbx + 0x10]
or r14d, 2
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
je 0x14016dd82
add word [rcx + 0x10], di
jne 0x14016dd79
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x14016dd74
cmp byte [rdi + 0x12], 0
je 0x14016dd67
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rdi
call fcn.14036c454
mov edi, 0xffff
call fcn.14010aa30
mov qword [rbp - 0x48], rax
mov rdx, qword [rbx]
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14016dda1
lea rcx, [rbp + 0x10]
call fcn.14001d300
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
cmp rbx, rax
je 0x14016ddf3
add word [rbx + 0x10], di
jne 0x14016ddea
cmp byte [rbx + 0x12], 0
je 0x14016dddd
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r13w
mov qword [rbp + 0x90], r13
mov qword [rbp + 0x98], r13
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r13w
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x68], r13
call fcn.140149fa0
test rax, rax
je 0x14016de67
lea r9, [rbp + 0x70]
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.14014a3e0
mov rbx, rax
test rax, rax
jne 0x14016de73
lea rcx, [rbp + 0x10]
call fcn.14014b190
mov rbx, rax
call fcn.14010aa30
mov qword [rsp + 0x38], rax
call fcn.14010aa30
mov qword [rsp + 0x40], rax
call fcn.14010aa30
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r13
mov rax, qword [0x140575108]
test rax, rax
jne 0x14016deb3
call fcn.140120770
mov qword [0x140575108], rax
mov r9, rax
mov r8, qword [0x1403c87b8]
lea rdx, str.wx.sys_error
lea rcx, [rbp - 0x38]
call fcn.140109720
nop
mov rbx, qword [rax]
mov qword [rbp - 0x58], rbx
call fcn.14010aa30
cmp rbx, rax
je 0x14016dee3
inc word [rbx + 0x10]
or r14d, 4
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
mov rcx, qword [rbp - 0x38]
cmp rcx, rax
je 0x14016df33
add word [rcx + 0x10], di
jne 0x14016df2a
mov rdi, qword [rbp - 0x38]
test rdi, rdi
je 0x14016df25
cmp byte [rdi + 0x12], 0
je 0x14016df18
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rdi
call fcn.14036c454
mov edi, 0xffff
call fcn.14010aa30
mov qword [rbp - 0x38], rax
mov rdx, qword [rbx]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14016df52
lea rcx, [rbp - 0x20]
call fcn.14001d300
and r14d, 0xfffffffb
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
cmp rbx, rax
je 0x14016dfa4
add word [rbx + 0x10], di
jne 0x14016df9b
cmp byte [rbx + 0x12], 0
je 0x14016df8e
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rbp - 0x58], rax
mov qword [rbp], r13
mov qword [rbp + 8], r13
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov rdi, qword [r15 + 0x10]
mov rsi, r15
cmp qword [r15 + 0x18], 8
jb 0x14016dfca
mov rsi, qword [r15]
cmp rdi, 8
jae 0x14016dfe2
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], 7
jmp 0x14016e02e
movabs rax, 0x7ffffffffffffffe
mov qword [rsp + 0x68], rax
mov rbx, rdi
or rbx, 7
mov qword [rsp + 0x68], rbx
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x70]
call fcn.140020710
mov qword [rsp + 0x70], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov dword [rbp + 0xa0], 1
lea rax, str.C:ProjectwxWidgets_3.2.2.1_srccommon_filefn.cpp
mov qword [rbp + 0xa8], rax
lea rax, str.wxRemoveFile
mov qword [rbp + 0xb8], rax
mov dword [rbp + 0xb0], 0x415
lea rax, [0x1403c8f48]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], r13
mov qword [rbp + 0xd0], r13
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp + 0xd8], eax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf8], r13
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], r13w
mov qword [rbp + 0x108], r13
mov qword [rbp + 0x110], r13
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp qword [rbp + 0xf8], 0
je 0x14016e125
cmp qword [0x14055a4b8], 0
je 0x14016e125
lea rax, str.can_only_have_one_optional_value
mov qword [rsp + 0x20], rax
lea r9, str.m_optKey.empty__
lea r8, str.wxLogger::MaybeStore
mov edx, 0x39e
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewxlog.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14016e125
mov byte [0x1405750a8], 0
int3
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
lea rcx, [rbp + 0xe8]
call fcn.14001d300
mov rdi, qword [rbp + 0xe0]
test rdi, rdi
jne 0x14016e1b1
lea ecx, [rdi + 0x40]
call fcn.14036c0f8
mov rdi, rax
mov qword [rbp - 0x28], rax
mov ecx, 0x64
call fcn.14011ba90
mov ecx, eax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r13
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rdi], rax
lea rbx, [rdi + 0x20]
mov qword [rbp - 0x50], rbx
mov ecx, 0x64
call fcn.14011ba90
mov ecx, eax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], r13
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx], rax
mov qword [rbp + 0xe0], rdi
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14010ec40
mov qword [rax], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.1401448b0
mov ecx, eax
and ecx, 6
cmp ecx, eax
je 0x14016e228
cmp qword [0x14055a4b8], 0
je 0x14016e228
lea rax, str.format_specifier_doesnt_match_argument_type
mov qword [rsp + 0x20], rax
lea r9, str._argtype___wxFormatString::Arg_String____argtype
lea r8, str.wxArgNormalizerWchar_class_wxString_const__::wxArgNormalizerWchar
mov edx, 0x230
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_strvararg.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14016e228
mov byte [0x1405750a8], 0
int3
lea rcx, [rsp + 0x38]
call fcn.140143f20
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.140145820
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.140011670
nop
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x70]
call fcn.14000e160
nop
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x100]
cmp rdx, 8
jb 0x14016e2ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016e2b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016e560
call fcn.14036c454
mov qword [rbp + 0xf8], r13
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], r13w
mov rbx, qword [rbp + 0xe0]
test rbx, rbx
je 0x14016e332
lea r8, [0x1400110e0]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.14011b9f0
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x140011220]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.14011b9f0
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14036c454
nop
mov rcx, qword [rbp]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14016e37d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016e377
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016e567
call fcn.14036c454
nop
call fcn.14010aa30
mov rcx, qword [rsp + 0x48]
mov edi, 0xffff
cmp rcx, rax
je 0x14016e3c7
add word [rcx + 0x10], di
jne 0x14016e3bd
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14016e3bd
cmp byte [rbx + 0x12], 0
je 0x14016e3b0
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x48], rax
call fcn.14010aa30
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14016e40c
add word [rcx + 0x10], di
jne 0x14016e402
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14016e402
cmp byte [rbx + 0x12], 0
je 0x14016e3f5
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x40], rax
call fcn.14010aa30
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x14016e451
add word [rcx + 0x10], di
jne 0x14016e447
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14016e447
cmp byte [rbx + 0x12], 0
je 0x14016e43a
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x38], rax
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x14016e49b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016e496
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016e56e
call fcn.14036c454
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r13w
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x14016e4fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016e4f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016e575
call fcn.14036c454
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r13w
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x14016e559
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016e554
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016e57c
call fcn.14036c454
mov cl, 1
jmp 0x14016dc58
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
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]
int3
test r12d, r12d
sete al
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14036c0d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret