Function at 0x4c8f00
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589764
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x59af18]
mov dword [ebp - 0x224], eax
push 0x204
push 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041d9b0
mov dword [ebp - 4], 0
push 0x59af1c
push 1
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041dde0
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
call fcn.0041dbd0
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x245], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0041dab0
movzx eax, byte [ebp - 0x245]
test eax, eax
je 0x4c901e
lea ecx, [ebp - 0x14]
call fcn.0041e2f0
sub eax, 1
push eax
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041de70
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041dad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.0041dab0
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0041dcb0
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
je 0x4c9081
mov ecx, dword [ebp - 0x240]
push ecx
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041de70
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041dad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.0041dab0
push 0x59af20
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0041dfe0
add esp, 0xc
mov byte [ebp - 4], 4
push str._rectdock.dll
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.0041dfe0
add esp, 0xc
mov byte [ebp - 4], 5
push str.circledock.dll
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov byte [ebp - 4], 6
push str.oldversion
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.0041dfe0
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041dad0
push 0
lea ecx, [ebp - 0x230]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
lea edx, [ebp - 0x18]
push edx
call fcn.0041d990
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004d5890
add esp, 8
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x22c]
call fcn.0041d970
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
push ecx
push str.cooldock_s.zip
lea edx, [ebp - 0x22c]
push edx
call fcn.00423c30
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041db10
lea ecx, [ebp - 0x230]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c919d
lea ecx, [ebp - 0x230]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x234]
call fcn.0041d970
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x228]
call fcn.0041d970
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c92ed
push 0
lea ecx, [ebp - 0x230]
call fcn.0041e1e0
push eax
call fcn.0040b4a0
add esp, 8
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jne 0x4c928e
mov byte [ebp - 0x259], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x234]
call fcn.0041dab0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x22c]
call fcn.0041dab0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.0041dab0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.0041dab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov al, byte [ebp - 0x259]
jmp 0x4c945a
lea ecx, [ebp - 0x18]
call fcn.0041e1e0
push eax
push str.coolDock.exe
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.0040b510
add esp, 0xc
mov edx, dword [ebp - 0x244]
push edx
call fcn.0040b730
add esp, 4
movzx eax, al
test eax, eax
je 0x4c92d8
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.0040b6d0
add esp, 4
mov dword [ebp - 0x280], eax
jmp 0x4c92ed
mov edx, dword [ebp - 0x244]
push edx
call fcn.00406c20
add esp, 4
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x240], 0
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c932c
cmp dword [ebp - 0x240], 0x32
jge 0x4c932c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4c92f7
cmp dword [ebp - 0x240], 0x32
jl 0x4c93cc
mov byte [ebp - 0x25a], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x234]
call fcn.0041dab0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x22c]
call fcn.0041dab0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.0041dab0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.0041dab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov al, byte [ebp - 0x25a]
jmp 0x4c945a
mov byte [ebp - 0x25b], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x234]
call fcn.0041dab0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x22c]
call fcn.0041dab0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.0041dab0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.0041dab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041dab0
mov al, byte [ebp - 0x25b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret