Function at 0x180029470
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push rdi
push r13
sub rsp, 0x58
mov rbx, rcx
mov rcx, qword [rcx + 0x2e1]
mov esi, r9d
movzx edi, r8w
mov r13, rdx
test rcx, rcx
je 0x1800294c3
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, 1
jne 0x1800294c3
cmp dword [rsp + 0x80], 0x103
jne 0x1800294c3
xor eax, eax
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x48], r14
xor r14d, r14d
mov qword [rbx + 0x31b], r14
test r13, r13
je 0x1800297f0
cmp r14w, di
je 0x1800297f0
mov rcx, rbx
call sym.PRDLL.dll_Undelete_Done
movzx edx, di
lea r9d, [r14 + 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 0x1800297f0
movzx edx, di
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x40], r15
mov word [rbx + 0x2af], r14w
mov word [rbx + 0x2ad], di
mov qword [rbx + 0x28c], r14
mov r15d, r14d
mov dword [rsp + 0x80], edx
test edx, edx
je 0x1800296fd
mov rdi, r14
nop dword [rax]
mov rsi, qword [rbx + 0x2b5]
mov rax, qword [r13]
mov qword [rdi + rsi], rax
mov eax, dword [r13 + 8]
mov dword [rdi + rsi + 8], eax
mov eax, dword [rdi + rsi + 4]
and eax, 0xffffff
je 0x18002965a
cmp eax, 1
jne 0x1800296bc
mov r12d, dword [rdi + rsi]
lea rcx, [rdi + rsi + 0x27]
and r12d, 0xffffff
imul r12, r12, 0x196
movzx eax, byte [r12 + rbx + 0x333]
lea rdx, [r12 + rbx + 0x3b9]
mov byte [rdi + rsi + 0x26], al
mov rax, qword [r12 + rbx + 0x323]
mov qword [rdi + rsi + 0x14], rax
mov rax, qword [r12 + rbx + 0x32b]
mov qword [rdi + rsi + 0x1c], rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
movzx r11d, byte [r12 + rbx + 0x337]
test r11b, r11b
je 0x1800295f2
movzx eax, r11b
mov word [rdi + rsi + 0x24], ax
lea rbp, [rdi + rsi + 0xc]
test rbp, rbp
je 0x180029773
mov rcx, rbp
call fcn.180001a60
test eax, eax
je 0x180029773
movzx edx, byte [r12 + rbx + 0x333]
mov rcx, qword [rbp]
mov r8d, 1
call fcn.180002620
test eax, eax
je 0x180029773
mov r8, qword [r12 + rbx + 0x32b]
mov rdx, qword [r12 + rbx + 0x323]
mov rcx, qword [rbp]
call fcn.180002590
test eax, eax
je 0x180029773
mov edx, dword [rsp + 0x80]
jmp 0x1800296bc
movzx eax, byte [rdi + rsi]
mov byte [rdi + rsi + 0x28], 0x3a
mov byte [rdi + rsi + 0x29], r14b
add al, 0x41
movzx ecx, al
mov byte [rdi + rsi + 0x27], cl
mov word [rdi + rsi + 0x24], cx
lea rcx, [rdi + rsi + 0xc]
test rcx, rcx
je 0x180029796
call fcn.180001a60
test eax, eax
je 0x180029796
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 0x180029796
mov edx, dword [rsp + 0x80]
mov rcx, qword [rdi + rsi + 0xc]
test rcx, rcx
je 0x1800296df
lea rax, [rsp + 0x38]
test rax, rax
je 0x1800296df
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x28]
add qword [rbx + 0x28c], rax
inc r15d
add r13, 0xc
add rdi, 0x126
cmp r15d, edx
jb 0x180029560
mov esi, dword [rsp + 0x98]
mov eax, dword [rsp + 0xa0]
and dword [rbx + 0x294], 0xfffffffc
and esi, 1
and eax, 1
mov rcx, rbx
mov word [rbx + 0x2af], r14w
add eax, eax
or eax, esi
or dword [rbx + 0x294], eax
call fcn.18001a540
test eax, eax
jne 0x1800297b7
lea rdx, str.Undelete_SearchMultiple:_Files_list_or_strings_storage_is_NOT_allocated._n
mov rcx, rbx
call fcn.180016b80
mov rcx, rbx
call sym.PRDLL.dll_Undelete_Done
mov dword [rbx], 0x20000008
xor eax, eax
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [r12 + rbx + 0x3b9]
lea rdx, str.Undelete_SearchMultiple:_Unable_to_properly_open_drive__s._n
mov rcx, rbx
mov dword [rbx], eax
call fcn.180016b80
xor eax, eax
jmp 0x180029752
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Undelete_SearchMultiple:_Unable_to_open_drive__c._n
mov rcx, rbx
mov dword [rbx], eax
movzx r8d, byte [rdi + rsi + 0x27]
call fcn.180016b80
xor eax, eax
jmp 0x180029752
lea rax, [rsp + 0x30]
lea r8, [0x1800289e0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0x31b], rax
setne r14b
mov eax, r14d
jmp 0x180029752
xor eax, eax
mov r14, qword [rsp + 0x48]
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret