Function at 0x1400050c0
Capabilities:
Create directory

Disassembly:
push rbp
lea rbp, [rsp - 0x770]
mov eax, 0x870
call fcn.14000c460
sub rsp, rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x140040dd0]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x140005101
mov eax, 0x22
add rsp, 0x870
pop rbp
ret
mov qword [rsp + 0x880], rbx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x888], rsi
lea r8, str._s.bak
mov qword [rsp + 0x890], rdi
lea rcx, [rbp + 0x140]
mov edx, 0x104
mov qword [rsp + 0x898], r14
call fcn.140006730
lea r9, [0x140040dd0]
mov edx, 0x104
lea r8, str._s.bak_updated
lea rcx, [rbp + 0x560]
call fcn.140006730
xor edx, edx
lea rcx, [rbp + 0x140]
call fcn.140006140
call fcn.140003e20
mov rcx, rax
lea r9, [rbp + 0x140]
lea r8, [rsp + 0x30]
lea rdx, str.Begin_moving_destDir___S__to_tmpDir___S_
call fcn.1400089d0
mov r8b, 1
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call fcn.140006980
xor ebx, ebx
mov edi, eax
cmp eax, 7
jne 0x14000522d
mov esi, dword [0x140042700]
mov r14d, 4
mov eax, ebx
inc ebx
cmp eax, 0xa
jge 0x140005231
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rsi*8]
mov eax, dword [r14 + rcx]
cmp dword [0x140040ba8], eax
jg 0x1400053cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], edi
mov r8d, ebx
mov dword [rsp + 0x20], eax
lea rdx, str.PerformReplaceRequest:_destDir_rename_attempt__d_failed._File:__S._Last_error:__d__err:__d
lea rcx, [0x140040790]
call fcn.1400089d0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8b, 1
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call fcn.140006980
mov edi, eax
cmp eax, 7
je 0x1400051b8
test edi, edi
je 0x14000524f
call fcn.140003e20
mov rcx, rax
lea rdx, str.Moving_destDir_to_tmpDir_failed__err:__d
mov r8d, edi
call fcn.1400089d0
mov eax, edi
jmp 0x1400053a6
call fcn.140003e20
mov rcx, rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str.Begin_moving_newDir___S__to_destDir___S_
call fcn.1400089d0
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x560]
call fcn.140006980
mov ebx, eax
test eax, eax
je 0x1400052f8
call fcn.140003e20
mov rcx, rax
lea rdx, str.Moving_newDir_to_destDir_failed__err:__d
mov r8d, ebx
call fcn.1400089d0
call fcn.140003e20
mov rcx, rax
lea rdx, str.Now__try_to_move_tmpDir_back_to_destDir
call fcn.1400089d0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140006140
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x140]
call fcn.140006980
mov edi, eax
test eax, eax
je 0x1400052f1
call fcn.140003e20
mov rcx, rax
lea rdx, str.Moving_tmpDir_back_to_destDir_failed__err:__d
mov r8d, edi
call fcn.1400089d0
mov eax, ebx
jmp 0x1400053a6
call fcn.140003e20
mov rcx, rax
lea rdx, str.Now__remove_the_tmpDir
call fcn.1400089d0
mov dl, 1
lea rcx, [rbp + 0x140]
call fcn.140006140
mov ebx, eax
test eax, eax
je 0x14000539d
call fcn.140003e20
mov rcx, rax
lea rdx, str.Removing_tmpDir_failed__err:__d
mov r8d, ebx
call fcn.1400089d0
lea rax, str.tobedeleted
mov edx, 0x104
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [0x14002f858]
lea rcx, [rbp + 0x350]
call fcn.140006730
lea rcx, [rbp + 0x350]
call fcn.140019d30
xor edx, edx
lea rcx, [rbp + 0x350]
call fcn.140012fe4
test eax, eax
je 0x14000538a
lea rcx, [rbp + 0x350]
call fcn.140019d04
lea rdx, [rbp + 0x350]
lea rcx, [rbp + 0x140]
call fcn.1400067a0
mov byte [0x140041818], 1
xor eax, eax
mov rdi, qword [rsp + 0x890]
mov rsi, qword [rsp + 0x888]
mov rbx, qword [rsp + 0x880]
mov r14, qword [rsp + 0x898]
add rsp, 0x870
pop rbp
ret
lea rcx, [0x140040ba8]
call fcn.14000c89c
cmp dword [0x140040ba8], 0xffffffff
jne 0x1400051de
lea rcx, [0x140040790]
call fcn.140008790
lea rcx, [0x14002cff0]
call fcn.14000c72c
lea rcx, [0x140040ba8]
call fcn.14000c83c
jmp 0x1400051de