Function at 0x4cc120
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561077
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esi], 0
call fcn.004c6260
mov ebx, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5d5bfc]
cmp eax, dword [ecx + 4]
jle 0x4cc20d
push 0x5d5bfc
call fcn.0051dec2
add esp, 4
cmp dword [0x5d5bfc], 0xffffffff
jne 0x4cc20d
mov dword [ebp - 4], 0
push 0x104
push 0
push 0x5d5c0c
mov dword [0x5d5c00], 0xa
mov dword [0x5d5c04], 0
mov dword [0x5d5c08], 0
call fcn.0051fe50
add esp, 0xc
mov dword [0x5d5d10], 1
mov word [0x5d5d14], 0
mov dword [0x5d5d18], 0x5e3
push 0
push 0x100
push 0x5d5c10
call fcn.00518fc0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
push 0x5d5bfc
call fcn.0051de78
add esp, 4
mov eax, dword [ebx]
cmp eax, dword [0x5d5c00]
jae 0x4cc21b
xor al, al
jmp 0x4cc250
ja 0x4cc24e
mov eax, dword [ebx + 4]
cmp eax, dword [0x5d5c04]
jae 0x4cc22c
xor al, al
jmp 0x4cc250
ja 0x4cc24e
mov eax, dword [ebx + 0xc]
cmp eax, dword [0x5d5c0c]
jae 0x4cc23d
xor al, al
jmp 0x4cc250
ja 0x4cc24e
mov eax, dword [ebx + 8]
cmp eax, dword [0x5d5c08]
jae 0x4cc24e
xor al, al
jmp 0x4cc250
mov al, 1
test al, al
je 0x4cc3c3
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x4cc280
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4cc276
xor edx, edx
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], dx
je 0x4cc2a3
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x4cc291
cmp ecx, edx
jb 0x4cc3c3
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.004a0ee0
mov ecx, eax
test ecx, ecx
je 0x4cc2d7
nop word [eax + eax]
mov ax, word [edi + edx*2]
cmp ax, word [ebp + edx*2 - 0x21c]
jne 0x4cc3c3
inc edx
cmp edx, ecx
jb 0x4cc2c0
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0051fe50
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.0051fe50
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
push 0
push str.shim_clone
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x62c]
mov ecx, esi
push eax
call fcn.004cc440
mov dword [ebp - 0x634], 0
mov byte [ebp - 0x630], 0
mov dword [ebp - 4], 1
call fcn.004c7ed0
mov eax, dword [0x5d53d0]
test eax, eax
je 0x4cc374
lea ecx, [ebp - 0x634]
push ecx
call eax
mov byte [ebp - 0x630], 1
push 0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x4cc392
push edi
mov ecx, esi
call fcn.004cc440
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x630], 0
je 0x4cc3cf
call fcn.004c7ed0
mov ecx, dword [0x5d53cc]
test ecx, ecx
je 0x4cc3cf
lea eax, [ebp - 0x634]
push eax
call ecx
mov byte [ebp - 0x630], 0
jmp 0x4cc3cf
push edi
mov ecx, esi
call fcn.004cc440
mov byte [esi + 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret 4