Function at 0x180003230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0xf8], 0xfffffffffffffffe
lea rcx, str.Unspecified_error.
call fcn.18001b200
cmp qword [rsp + 0x138], 0
jne 0x180003284
lea rcx, str.Invalid_file_name_specified.
call fcn.18001b200
mov eax, 1
jmp 0x18000372f
cmp qword [rsp + 0x140], 0
je 0x1800032f5
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x48]
call fcn.18000fa50
nop
lea rcx, [rsp + 0x48]
call fcn.1800127b0
lea rcx, [rsp + 0x48]
call fcn.180012880
lea rcx, [rsp + 0x48]
call fcn.180012030
test eax, eax
jne 0x1800032eb
lea rcx, str.Invalid_destination_file_name_specified.
call fcn.18001b200
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x48]
call fcn.1800100b0
mov eax, dword [rsp + 0x50]
jmp 0x18000372f
lea rcx, [rsp + 0x48]
call fcn.1800100b0
lea rax, [rsp + 0x100]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xa0]
call fcn.18000fa50
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.180023dc0
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x1800035c5
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x18000336c
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
jne 0x18000336c
mov dword [rsp + 0x34], 1
jmp 0x180003374
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x1800033a7
mov eax, dword [rsp + 0x150]
and eax, 2
test eax, eax
jne 0x1800033a7
lea rcx, str.The_file_does_not_exists_or_not_a_regular_file.
call fcn.18001b200
mov eax, 1
jmp 0x18000372f
lea rcx, [rsp + 0x60]
call fcn.18000fbb0
nop
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x70]
call fcn.180010310
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x60]
call fcn.180010310
mov eax, dword [rsp + 0x150]
and eax, 1
test eax, eax
je 0x1800033ee
mov dword [rsp + 0x38], 1
jmp 0x1800033f6
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x150]
and eax, 4
test eax, eax
je 0x180003416
mov dword [rsp + 0x3c], 1
jmp 0x18000341e
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x7c], eax
cmp qword [rsp + 0x140], 0
je 0x180003448
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call fcn.180010310
jmp 0x1800034fc
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x28]
call fcn.18000fa50
nop
mov dword [rsp + 0x20], 0xffffffff
mov r8w, 0x5c
mov dx, 0x2f
lea rcx, [rsp + 0x28]
call fcn.180012590
mov dx, 0x5c
lea rcx, [rsp + 0x28]
call fcn.180012640
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1800034e2
mov eax, dword [rsp + 0x20]
inc eax
mov r8d, eax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x28]
call fcn.180012320
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x28]
call fcn.180010260
nop
lea rcx, [rsp + 0xc0]
call fcn.1800100b0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.180010260
nop
lea rcx, [rsp + 0x28]
call fcn.1800100b0
mov rax, qword [rsp + 0x130]
add rax, 0x178
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.180018ba0
mov rax, qword [rsp + 0x130]
add rax, 0x178
lea rdx, [rsp + 0x108]
mov rcx, rax
call fcn.1800162c0
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.180021300
movzx eax, al
test eax, eax
je 0x18000357b
lea rcx, str.A_file_with_such_a_destination_name_already_exists.
call fcn.18001b200
mov dword [rsp + 0x5c], 1
lea rcx, [rsp + 0x60]
call fcn.180010120
mov eax, dword [rsp + 0x5c]
jmp 0x18000372f
mov rax, qword [rsp + 0x130]
add rax, 0x178
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1800104e0
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180010350
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x130]
call fcn.1800067c0
nop
lea rcx, [rsp + 0x60]
call fcn.180010120
jmp 0x180003721
lea rcx, [rsp + 0x80]
call fcn.18000fbb0
nop
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x90]
call fcn.180010310
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x80]
call fcn.180010310
lea rax, [rsp + 0x110]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xd0]
call fcn.18000fa50
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0xf0]
call fcn.180023ae0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x88]
call fcn.180010260
nop
lea rcx, [rsp + 0xf0]
call fcn.1800100b0
mov eax, dword [rsp + 0x150]
and eax, 1
test eax, eax
je 0x180003692
mov dword [rsp + 0x40], 1
jmp 0x18000369a
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x150]
and eax, 4
test eax, eax
je 0x1800036bd
mov dword [rsp + 0x44], 1
jmp 0x1800036c5
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x9c], eax
mov rax, qword [rsp + 0x130]
add rax, 0x178
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.1800104e0
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.180010350
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x130]
call fcn.1800067c0
nop
lea rcx, [rsp + 0x80]
call fcn.180010120
lea rcx, str.Success.
call fcn.18001b200
xor eax, eax
add rsp, 0x128
ret