Function at 0x140024070
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x900
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
mov dword [rsp + 0x78], 0
movzx eax, word [0x140094438]
mov word [rsp + 0xd0], ax
lea rax, [rsp + 0xd2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
movzx eax, word [0x140094438]
mov word [rsp + 0x2e0], ax
lea rax, [rsp + 0x2e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0xb8]
movzx ecx, word [rsp + 0xbe]
movzx edx, word [rsp + 0xba]
lea rdi, [0x1400ce460]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov r8d, edx
lea rdx, str.wbxcrash__02hu_02hu_04hu__s_full.zip
lea rcx, [rsp + 0xd0]
call qword [sym.imp.USER32.dll_wsprintfW]
movzx eax, word [rsp + 0xb8]
movzx ecx, word [rsp + 0xbe]
movzx edx, word [rsp + 0xba]
lea rdi, [0x1400ce460]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov r8d, edx
lea rdx, str.wbxcrash__02hu_02hu_04hu__s_full.dmp
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x910]
call fcn.140022180
test eax, eax
jne 0x1400241a1
xor eax, eax
jmp 0x140024473
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.14001f860
nop
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x80]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400241e9
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x140024200
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jle 0x1400242ee
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x88]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140024240
mov dword [rsp + 0x40], 0xffffffff
jmp 0x140024257
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.140022440
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x30]
call fcn.1400203e0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400202f0
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400242c9
mov dword [rsp + 0x44], 0
jmp 0x1400242d8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x44], eax
lea r8, [rsp + 0x2e0]
mov edx, dword [rsp + 0x44]
lea rcx, [rsp + 0x30]
call fcn.140021730
mov r9b, 1
mov r8d, 0x7f02
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.14001f950
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140021f10
mov ecx, dword [0x1400d0bdc]
mov dword [rsp + 0x20], ecx
mov r9d, dword [0x1400d0bd8]
mov r8d, dword [0x1400d0bd4]
mov rdx, rax
mov rcx, qword [rsp + 0x910]
call fcn.140027560
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x80070006
jne 0x140024391
lea rax, [rsp + 0x4f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov r9d, 0x200
lea r8, [rsp + 0x4f0]
mov edx, 0xef33
mov rcx, qword [rsp + 0x910]
call fcn.1400226a0
lea rdx, [rsp + 0x4f0]
mov rcx, qword [rsp + 0x910]
call fcn.140027e20
jmp 0x1400243a9
cmp dword [rsp + 0x38], 0
je 0x1400243a9
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x910]
call fcn.140027da0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140021f10
mov ecx, dword [0x1400d0bdc]
mov dword [rsp + 0x28], ecx
mov ecx, dword [0x1400d0bd8]
mov dword [rsp + 0x20], ecx
mov r9d, dword [0x1400d0bd4]
mov r8, rax
lea rdx, [rsp + 0xd0]
lea rcx, [0x1400d0bf0]
call fcn.14004a010
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [0x140094438]
lea r8, [0x140094438]
mov edx, 0x9c5
mov ecx, 0x9c4
call fcn.140027750
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x14002442a
jmp 0x14002443a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_SetCursor]
mov byte [rsp + 0x70], 0
mov qword [rsp + 0xb0], 0
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x140024451
jmp 0x140024461
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_SetCursor]
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x30]
call fcn.1400202f0
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.140082550
add rsp, 0x900
pop rdi
ret