Function at 0x180009ed0
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x1800a3830]
xor rax, rsp
mov qword [rbp + 0x17], rax
movzx r13d, r9b
mov rdi, r8
movzx r15d, dl
mov r12, rcx
mov r14, qword [rbp + 0x7f]
mov qword [rbp + 0xf], 7
xor esi, esi
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
xor r8d, r8d
lea rdx, [0x18006de50]
lea rcx, [rbp - 9]
call fcn.18000ae80
nop
mov rax, qword [0x1800a6200]
test rax, rax
jne 0x180009f71
mov ecx, 0x1a8
call fcn.18002f954
mov qword [rbp - 0x51], rax
test rax, rax
je 0x180009f67
mov rcx, rax
call fcn.180020580
jmp 0x180009f6a
mov rax, rsi
mov qword [0x1800a6200], rax
mov rcx, rax
call fcn.1800206b0
or rbx, 0xffffffffffffffff
test rax, rax
je 0x180009fa7
cmp word [rax], 0
jne 0x180009f8d
mov r8, rsi
jmp 0x180009f9b
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180009f90
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.18000ae80
lea rdx, [0x18006de50]
lea rcx, [rbp - 0x31]
call fcn.18000c150
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.18000c370
lea rdx, str.GDeZip.exe
lea rcx, [rbp - 0x31]
call fcn.18000c600
xor sil, sil
test r15b, r15b
je 0x18000a108
test rdi, rdi
je 0x18000a108
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180009ff4
cmp rbx, 1
jbe 0x18000a108
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.18000c150
nop
mov ecx, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x51]
movzx r8d, word [rdx + rcx*2 - 2]
cmp r8w, 0x5c
je 0x18000a061
cmp r8w, 0x2f
je 0x18000a061
cmp dword [rbp - 0x45], ecx
jne 0x18000a045
lea rcx, [rbp - 0x51]
call fcn.18000c880
mov ecx, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x51]
mov eax, ecx
mov r8d, 0x5c
mov word [rdx + rax*2], r8w
inc ecx
xor r15d, r15d
mov word [rdx + rcx*2], r15w
mov dword [rbp - 0x49], ecx
jmp 0x18000a064
xor r15d, r15d
lea rdx, [0x18006db98]
lea rcx, [rbp - 0x51]
call fcn.18000c600
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call fcn.18000ce10
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.18000c4f0
nop
mov rcx, qword [rbp - 0x21]
call fcn.18002f990
lea rdx, str..zip.tmp
lea rcx, [rbp - 0x51]
call fcn.18000c600
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x18000a0e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18000a0fd
mov sil, 1
jmp 0x18000a0fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbp - 0x51]
call fcn.18002f990
jmp 0x18000a10b
xor r15d, r15d
mov qword [rbp - 0x39], r15
xor r9d, r9d
mov r8, r12
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x39]
test sil, sil
je 0x18000a12e
mov byte [rsp + 0x20], 1
call fcn.18000eff0
jmp 0x18000a133
call fcn.18000ee70
mov edi, eax
test eax, eax
je 0x18000a1ae
cmp eax, 0x4c7
je 0x18000a1ee
mov rbx, qword [rbp - 0x31]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.18000d5e0
nop
test rbx, rbx
je 0x18000a16e
lea rcx, [rbp - 0x51]
call fcn.18000c680
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.18000c600
mov rbx, qword [rbp - 0x51]
mov edx, 0x251c
lea rcx, [rbp - 0x21]
call fcn.18000b4f0
mov r9d, 0x10
mov r8, qword [rax]
mov rdx, rbx
mov rcx, qword [0x1800a7208]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp - 0x21]
call fcn.18002f990
nop
mov rcx, qword [rbp - 0x51]
call fcn.18002f990
jmp 0x18000a1ee
test r13b, r13b
je 0x18000a1c2
or edx, 0xffffffff
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18000a1eb
test r14, r14
je 0x18000a1eb
mov rax, qword [rbp - 0x39]
mov qword [rbp - 0x51], rax
mov rax, qword [r14]
mov qword [rbp - 0x49], rax
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x51]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, r15d
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x18000a20b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x39]
test eax, eax
cmovne rcx, r15
mov qword [rbp - 0x39], rcx
mov rcx, qword [rbp - 0x31]
call fcn.18002f990
nop
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x18000a22f
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.18000afd0
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18002fa40
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret