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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100edd98
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
push 0x10100f78
call fcn.100c2bf0
add esp, 4
cmp dword [ebp + 8], 0
jne 0x100c54e5
push str.Invalid_file_name_specified.
call fcn.100c2bf0
add esp, 4
mov eax, 1
jmp 0x100c5848
cmp dword [ebp + 0xc], 0
je 0x100c5554
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.100c1870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100c9310
lea ecx, [ebp - 0x18]
call fcn.100c93d0
lea ecx, [ebp - 0x18]
call fcn.100c24c0
test eax, eax
jne 0x100c5545
push str.Invalid_destination_file_name_specified.
call fcn.100c2bf0
add esp, 4
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100c1ae0
mov eax, dword [ebp - 0x44]
jmp 0x100c5848
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100c1ae0
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
mov edx, dword [ebp + 8]
push edx
call fcn.100c1870
call fcn.100ca3b0
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x100c5763
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x100c55a5
mov edx, dword [ebp - 0x20]
and edx, 0x10
jne 0x100c55a5
mov dword [ebp - 0x24], 1
jmp 0x100c55ac
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x100c55d7
mov ecx, dword [ebp + 0x14]
and ecx, 2
jne 0x100c55d7
push str.The_file_does_not_exists_or_not_a_regular_file.
call fcn.100c2bf0
add esp, 4
mov eax, 1
jmp 0x100c5848
lea ecx, [ebp - 0x40]
call fcn.100c4990
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x38]
call fcn.100c1d10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.100c1d10
mov ecx, dword [ebp + 0x14]
and ecx, 1
je 0x100c560f
mov dword [ebp - 0x28], 1
jmp 0x100c5616
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0xc], 0
je 0x100c563a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100c1d10
jmp 0x100c56c0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100c1870
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0xffffffff
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.100c8900
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.100c89d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x100c56a8
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x10]
call fcn.100c7690
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x10]
call fcn.100c5050
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.100c1ae0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100c5050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.100c1ae0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x90
call fcn.100c9730
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x90
call fcn.10032a40
push eax
lea ecx, [ebp - 0x60]
call fcn.100247f0
movzx ecx, al
test ecx, ecx
je 0x100c5726
push str.A_file_with_such_a_destination_name_already_exists.
call fcn.100c2bf0
add esp, 4
mov dword [ebp - 0x64], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100c4f70
mov eax, dword [ebp - 0x64]
jmp 0x100c5848
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x90
call fcn.100c5130
mov ecx, eax
call fcn.100c5070
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.100c7db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100c4f70
jmp 0x100c5839
lea ecx, [ebp - 0x84]
call fcn.100c4990
mov dword [ebp - 4], 4
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x7c]
call fcn.100c1d10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
call fcn.100c1d10
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
mov edx, dword [ebp + 8]
push edx
call fcn.100c1870
lea eax, [ebp - 0x70]
push eax
call fcn.100c9f40
add esp, 8
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x80]
call fcn.100c5050
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.100c1ae0
mov eax, dword [ebp + 0x14]
and eax, 1
je 0x100c57e4
mov dword [ebp - 0x2c], 1
jmp 0x100c57eb
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x90
call fcn.100c5130
mov ecx, eax
call fcn.100c5070
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.100c7db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.100c4f70
push 0x10101100
call fcn.100c2bf0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10