Function at 0x4cafe0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da68d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x6c], eax
call eax
test eax, eax
je 0x4cb038
mov esi, 1
jmp 0x4cb457
sub esp, 0x18
lea eax, [ebp + 8]
mov esi, esp
mov edx, SysReAllocString
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
cmp ecx, 8
jae 0x4cb07c
movups xmm0, xmmword [eax]
mov edi, 7
movups xmmword [esi], xmm0
jmp 0x4cb0fb
mov edi, ecx
or edi, 7
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4cb4ed
add eax, eax
cmp eax, 0x1000
jb 0x4cb0c4
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cb4ed
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4cb4b0
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4cb0df
test eax, eax
je 0x4cb0dd
push eax
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4cb4be
jmp 0x4cb0df
xor ecx, ecx
mov eax, dword [ebp - 0x64]
mov dword [esi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x68]
push ecx
call fcn.005729d0
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0x28]
mov dword [esi + 0x14], edi
call fcn.004c64f0
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
jne 0x4cb11d
xor esi, esi
jmp 0x4cb409
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [ebp - 0x6c]
test eax, eax
jne 0x4cb258
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
sub esp, 0x18
mov edi, esp
mov dword [ebp - 0x6c], ecx
mov esi, ecx
mov dword [ebp - 0x68], edi
mov dword [edi], eax
mov dword [edi + 0x10], eax
lea edx, [esi + 2]
mov dword [edi + 0x14], 7
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cb160
sub esi, edx
sar esi, 1
cmp esi, 7
ja 0x4cb18f
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ecx
push edi
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4cb242
cmp esi, 0x7ffffffe
ja 0x4cb4cc
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4cb1b6
mov dword [ebp - 0x64], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4cb1da
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x64], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4cb4ed
add eax, eax
cmp eax, 0x1000
jb 0x4cb201
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cb4ed
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4cb4d1
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cb21c
test eax, eax
je 0x4cb21a
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4cb4df
jmp 0x4cb21c
xor edi, edi
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [ecx + 0x10], esi
add esi, esi
push esi
push dword [ebp - 0x6c]
mov dword [ecx + 0x14], eax
push edi
call fcn.005729d0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov eax, dword [ebp - 0x68]
mov dword [eax], edi
mov edi, dword [ebp - 0x70]
mov ecx, edi
call fcn.004cafe0
mov esi, eax
test esi, esi
je 0x4cb409
jmp 0x4cb25b
mov edi, dword [ebp - 0x70]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x4cb409
cmp dword [edi], 0
je 0x4cb409
lea ecx, [ebp - 0x5c]
call fcn.004c9210
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp - 0x44]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], ecx
cmp eax, ecx
ja 0x4cb2de
lea esi, [eax + eax]
mov dword [ebp - 0x48], eax
cmp ecx, 8
lea edi, [ebp - 0x58]
push esi
cmovae edi, dword [ebp - 0x58]
push dword [ebp - 0x68]
push edi
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4cb3d9
cmp eax, 0x7ffffffe
ja 0x4cb4f2
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4cb302
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4cb33b
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4cb31d
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4cb33b
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4cb4ed
add eax, eax
cmp eax, 0x1000
jb 0x4cb362
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cb4ed
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4cb4f7
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cb37d
test eax, eax
je 0x4cb37b
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4cb505
jmp 0x4cb37d
xor edi, edi
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x68]
push edi
call fcn.005729d0
mov edx, dword [ebp - 0x64]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x4cb3d6
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb3cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb513
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov dword [ebp - 0x58], edi
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
je 0x4cb3f5
mov ecx, eax
call fcn.004ce4f0
add dword [esi + 0x24], 0x34
jmp 0x4cb3fe
push eax
lea ecx, [esi + 0x20]
call fcn.004ce220
lea ecx, [ebp - 0x5c]
call fcn.004c9240
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4cb443
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb439
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb518
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4cb491
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb487
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb518
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret 0x18
push 0x638780
lea eax, [ebp - 0x5d]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x5e]
push eax
call fcn.0057359b
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x5e]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x5d]
push eax
call fcn.0057359b
call fcn.00407b84
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x5e]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x5d]
push eax
call fcn.0057359b
call fcn.0057da80
call fcn.0057da80
int3