Function at 0x180006910
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800654c0]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
xor esi, esi
mov dword [rsp + 0x20], esi
and dword [rsp + 0x30], 0xfffffe00
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180003b90
mov rbx, rax
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x80]
call fcn.180016218
nop
mov dword [rsp + 0x20], 3
mov r9b, 1
lea r8, [rsp + 0x28]
mov rdx, rbx
mov rcx, rax
call fcn.18001631c
test al, al
je 0x1800069ac
cmp byte [rsp + 0x30], 7
jne 0x1800069ac
xor dil, dil
jmp 0x1800069af
mov dil, 1
cmp qword [rsp + 0x170], 0x10
jb 0x1800069c7
mov rcx, qword [rsp + 0x158]
call fcn.180033b90
mov qword [rsp + 0x170], recvfrom
mov qword [rsp + 0x168], rsi
mov byte [rsp + 0x158], 0
cmp qword [rsp + 0x120], 0x10
jb 0x1800069fb
mov rcx, qword [rsp + 0x108]
call fcn.180033b90
mov qword [rsp + 0x120], recvfrom
mov qword [rsp + 0x118], rsi
mov byte [rsp + 0x108], 0
lea rcx, [rsp + 0xc0]
call fcn.180009d30
mov rcx, qword [rsp + 0xc0]
call fcn.180033b90
mov r11, qword [rsp + 0xb8]
test r11, r11
je 0x180006a5b
nop
test r11, r11
je 0x180006a5b
sub r11, 1
mov qword [rsp + 0xb8], r11
jne 0x180006a40
mov qword [rsp + 0xb0], rsi
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x180006a92
mov rcx, qword [rsp + 0xa0]
dec rbx
cmp qword [rcx + rbx*8], 0
je 0x180006a8b
mov rcx, qword [rcx + rbx*8]
call fcn.180033b90
mov rcx, qword [rsp + 0xa0]
test rbx, rbx
jne 0x180006a70
jmp 0x180006a9a
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x180006aa4
call fcn.180033b90
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], rsi
mov rcx, qword [rsp + 0x80]
call fcn.180033b90
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180006ad4
mov rcx, qword [rsp + 0x58]
call fcn.180033b90
test dil, dil
je 0x180006b4c
movsx eax, byte [rsp + 0x30]
cmp eax, 4
je 0x180006b07
add eax, 0xfffffffa
cmp eax, 1
ja 0x180006b19
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180006b19
mov rcx, rbx
call fcn.180020c94
mov rcx, rbx
call fcn.180033b90
jmp 0x180006b19
bt dword [rsp + 0x30], 8
jae 0x180006b19
mov rcx, qword [rsp + 0x28]
call fcn.180034b78
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180006c94
lea rbx, [rcx - 8]
lea r9, [0x18001bccc]
mov r8d, dword [rbx]
mov edx, 8
call fcn.180034efc
mov rcx, rbx
call fcn.180034ffc
jmp 0x180006c94
lea r8, [0x180052572]
lea rdx, str.attachment
lea rcx, [rsp + 0x28]
call fcn.18001d2a8
cmp byte [rax + 8], 4
jne 0x180006c2a
lea r8, [0x180052572]
lea rdx, str.attachment
lea rcx, [rsp + 0x28]
call fcn.18001d2a8
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.18001c494
nop
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.180003b00
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180006bb7
mov rcx, qword [rsp + 0x58]
call fcn.180033b90
mov qword [rsp + 0x70], recvfrom
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
lea rcx, [rsp + 0x188]
cmp qword [rsp + 0x1a0], 8
cmovae rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x188]
cmp qword [rsp + 0x1a0], 8
cmovae rdx, qword [rsp + 0x188]
lea rcx, [0x180052598]
call fcn.18003005c
nop
cmp qword [rsp + 0x1a0], 8
jb 0x180006c2a
mov rcx, qword [rsp + 0x188]
call fcn.180033b90
nop
movsx eax, byte [rsp + 0x30]
cmp eax, 4
je 0x180006c58
add eax, 0xfffffffa
cmp eax, 1
ja 0x180006c6a
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180006c6a
mov rcx, rbx
call fcn.180020c94
mov rcx, rbx
call fcn.180033b90
jmp 0x180006c6a
bt dword [rsp + 0x30], 8
jae 0x180006c6a
mov rcx, qword [rsp + 0x28]
call fcn.180034b78
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180006c94
lea rbx, [rcx - 8]
lea r9, [0x18001bccc]
mov r8d, dword [rbx]
mov edx, 8
call fcn.180034efc
mov rcx, rbx
call fcn.180034ffc
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1800336d0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret