Function at 0x180009920
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 [0x180075010]
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, [0x180049cd0]
lea rcx, [rbp - 9]
call fcn.18000a8d0
nop
mov rax, qword [0x180076120]
test rax, rax
jne 0x1800099c1
mov ecx, 0x1a8
call fcn.18002be24
mov qword [rbp - 0x51], rax
test rax, rax
je 0x1800099b7
mov rcx, rax
call fcn.18001ddb0
jmp 0x1800099ba
mov rax, rsi
mov qword [0x180076120], rax
mov rcx, rax
call fcn.18001dee0
or rbx, 0xffffffffffffffff
test rax, rax
je 0x1800099f7
cmp word [rax], 0
jne 0x1800099dd
mov r8, rsi
jmp 0x1800099eb
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1800099e0
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.18000a8d0
lea rdx, [0x180049cd0]
lea rcx, [rbp - 0x31]
call fcn.18000bb80
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.18000bda0
lea rdx, str.GDeZip.exe
lea rcx, [rbp - 0x31]
call fcn.18000c030
xor sil, sil
test r15b, r15b
je 0x180009b58
test rdi, rdi
je 0x180009b58
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180009a44
cmp rbx, 1
jbe 0x180009b58
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.18000bb80
nop
mov ecx, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x51]
movzx r8d, word [rdx + rcx*2 - 2]
cmp r8w, 0x5c
je 0x180009ab1
cmp r8w, 0x2f
je 0x180009ab1
cmp dword [rbp - 0x45], ecx
jne 0x180009a95
lea rcx, [rbp - 0x51]
call fcn.18000c2b0
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 0x180009ab4
xor r15d, r15d
lea rdx, [0x180049890]
lea rcx, [rbp - 0x51]
call fcn.18000c030
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call fcn.18000c840
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.18000bf20
nop
mov rcx, qword [rbp - 0x21]
call fcn.18002be68
lea rdx, str..zip.tmp
lea rcx, [rbp - 0x51]
call fcn.18000c030
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 0x180009b39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x180009b4d
mov sil, 1
jmp 0x180009b4d
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.18002be68
jmp 0x180009b5b
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 0x180009b7e
mov byte [rsp + 0x20], 1
call fcn.18000ea20
jmp 0x180009b83
call fcn.18000e8a0
mov edi, eax
test eax, eax
je 0x180009bfe
cmp eax, 0x4c7
je 0x180009c3e
mov rbx, qword [rbp - 0x31]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.18000d010
nop
test rbx, rbx
je 0x180009bbe
lea rcx, [rbp - 0x51]
call fcn.18000c0b0
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.18000c030
mov rbx, qword [rbp - 0x51]
mov edx, 0x251c
lea rcx, [rbp - 0x21]
call fcn.18000af40
mov r9d, 0x10
mov r8, qword [rax]
mov rdx, rbx
mov rcx, qword [0x180077088]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp - 0x21]
call fcn.18002be68
nop
mov rcx, qword [rbp - 0x51]
call fcn.18002be68
jmp 0x180009c3e
test r13b, r13b
je 0x180009c12
or edx, 0xffffffff
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x180009c3b
test r14, r14
je 0x180009c3b
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 0x180009c5b
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.18002be68
nop
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x180009c7f
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.18000aa20
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18002bf10
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret