Function at 0x18001c230
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx + 0x2e1]
movzx edi, r8w
mov r12, rdx
test rcx, rcx
je 0x18001c274
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, 1
jne 0x18001c274
cmp dword [rsp + 0x70], 0x103
jne 0x18001c274
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0x40], r13
xor r13d, r13d
mov qword [rbx + 0x31b], r13
test r12, r12
je 0x18001c5b0
cmp r13w, di
je 0x18001c5b0
mov rcx, rbx
call sym.PRDLL.dll_Undelete_Done
movzx edx, di
lea r9d, [r13 + 4]
imul rdx, rdx, 0x126
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x2b5], rax
test rax, rax
je 0x18001c5b0
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
movzx r15d, di
mov word [rbx + 0x2af], r13w
mov word [rbx + 0x2ad], di
mov qword [rbx + 0x28c], r13
mov esi, r13d
test r15d, r15d
je 0x18001c538
mov rdi, r13
nop word [rax + rax]
mov rcx, qword [rbx + 0x2b5]
mov rax, qword [r12]
mov qword [rdi + rcx], rax
mov eax, dword [r12 + 8]
mov dword [rdi + rcx + 8], eax
mov rcx, qword [rbx + 0x2b5]
mov eax, dword [rdi + rcx + 4]
and eax, 0xffffff
je 0x18001c476
cmp eax, 1
jne 0x18001c4f8
mov ebp, dword [rdi + rcx]
mov r14d, esi
and ebp, 0xffffff
imul r14, r14, 0x126
imul rbp, rbp, 0x196
movzx eax, byte [rbx + rbp + 0x333]
lea rdx, [rbx + rbp + 0x3b9]
mov byte [rdi + rcx + 0x26], al
mov rcx, qword [rbx + 0x2b5]
mov rax, qword [rbx + rbp + 0x323]
mov qword [rdi + rcx + 0x14], rax
mov rcx, qword [rbx + 0x2b5]
mov rax, qword [rbx + rbp + 0x32b]
mov qword [rdi + rcx + 0x1c], rax
mov rax, qword [rbx + 0x2b5]
lea rcx, [r14 + rax + 0x27]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
movzx r11d, byte [rbx + rbp + 0x337]
test r11b, r11b
je 0x18001c3cd
mov rax, qword [rbx + 0x2b5]
movzx ecx, r11b
mov word [rdi + rax + 0x24], cx
mov rax, qword [rbx + 0x2b5]
lea rcx, [r14 + rax + 0xc]
test rcx, rcx
je 0x18001c433
call fcn.180001a60
test eax, eax
je 0x18001c433
mov rcx, qword [rbx + 0x2b5]
movzx edx, byte [rbx + rbp + 0x333]
mov r8d, 1
mov rcx, qword [rdi + rcx + 0xc]
call fcn.180002620
test eax, eax
je 0x18001c433
mov rcx, qword [rbx + 0x2b5]
mov r8, qword [rbx + rbp + 0x32b]
mov rdx, qword [rbx + rbp + 0x323]
mov rcx, qword [rdi + rcx + 0xc]
call fcn.180002590
test eax, eax
jne 0x18001c4f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbx + rbp + 0x3b9]
lea rdx, str.Undelete_WipeMultiple:_Unable_to_properly_open_drive__s._n
mov rcx, rbx
mov dword [rbx], eax
call fcn.180016b80
xor eax, eax
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x40]
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
movzx eax, byte [rdi + rcx]
add al, 0x41
mov byte [rdi + rcx + 0x27], al
mov rax, qword [rbx + 0x2b5]
mov byte [rdi + rax + 0x28], 0x3a
mov rax, qword [rbx + 0x2b5]
mov byte [rdi + rax + 0x29], r13b
mov rcx, qword [rbx + 0x2b5]
movzx eax, byte [rdi + rcx + 0x27]
mov word [rdi + rcx + 0x24], ax
mov rax, qword [rbx + 0x2b5]
mov ecx, esi
imul rcx, rcx, 0x126
lea rcx, [rcx + rax + 0xc]
test rcx, rcx
je 0x18001c57c
call fcn.180001a60
test eax, eax
je 0x18001c57c
mov rcx, qword [rbx + 0x2b5]
mov r8d, 1
movzx edx, byte [rdi + rcx + 0x27]
mov rcx, qword [rdi + rcx + 0xc]
call fcn.180002220
test eax, eax
je 0x18001c57c
mov rax, qword [rbx + 0x2b5]
mov rcx, qword [rdi + rax + 0xc]
test rcx, rcx
je 0x18001c522
lea rax, [rsp + 0x70]
test rax, rax
je 0x18001c522
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x28]
add qword [rbx + 0x28c], rax
inc esi
add r12, 0xc
add rdi, 0x126
cmp esi, r15d
jb 0x18001c310
lea rax, [rsp + 0x88]
lea r8, [0x18001bee0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
mov word [rbx + 0x2af], r13w
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0x31b], rax
setne r13b
mov eax, r13d
jmp 0x18001c454
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
lea rdx, str.Undelete_WipeMultiple:_Unable_to_open_drive__c._n
mov dword [rbx], eax
mov rax, qword [rbx + 0x2b5]
imul rcx, rcx, 0x126
movzx r8d, byte [rcx + rax + 0x27]
mov rcx, rbx
call fcn.180016b80
xor eax, eax
jmp 0x18001c454
xor eax, eax
mov r13, qword [rsp + 0x40]
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret