Function at 0x100ca320
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122dc9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
push ecx
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x14], esp
push str..cui.exe
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.10045090
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10024750
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add esi, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100ca3c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
test ebx, ebx
je 0x100ca431
push str.DeployConsoleStubExe:__s_already_exists
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ca412
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10024750
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 0x18], 1
jmp 0x100ca4da
push str.DeployConsoleStubExe:_deploying__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ca470
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push ecx
mov ecx, dword [ebp - 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x68]
mov dword [esi], eax
call fcn.1005aef0
mov byte [ebp - 4], 6
mov ecx, 3
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
jne 0x100ca4b0
mov eax, dword [ebp - 0x28]
mov word [eax + 0x5c], cx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10024750
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
add eax, 0x10
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 3
mov dword [ebx], eax
call fcn.1005b380
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ca4fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100ca518
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8