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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ebe00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, dword [ebp + 8]
lea edi, [ebx + 0xc]
test esi, esi
jne 0x4cdb7c
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cdb8c
push dword [edi]
mov ecx, ebx
push dword [ebx + 8]
call fcn.004c8e60
test esi, esi
jne 0x4cdb9e
push dword [ebx + 4]
lea esi, [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cdbac
jmp 0x4cdba1
lea esi, [ebx + 4]
push dword [esi]
mov ecx, ebx
push dword [ebx]
call fcn.004c8e60
push dword [esi]
mov ecx, ebx
push dword [edi]
call fcn.004c8610
mov ecx, ebx
call fcn.004c4b00
push 0
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004cde40
mov dword [ebp - 0x14], eax
push str.SkinlistOrder.dat
lea eax, [ebx + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 8]
push eax
call fcn.004c3c70
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
push dword [eax]
mov ecx, ebx
call fcn.004c8090
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdc27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4cdd8d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push 0x6055f4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004c4a30
test al, al
jne 0x4cdc65
push 4
push 0x6055f4
lea ecx, [ebp + 8]
call fcn.004c0470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x20]
call fcn.004c38c0
push eax
mov ecx, ebx
call fcn.004cda40
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdca0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4cdd97
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push 0x60560c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004c4a30
test al, al
jne 0x4cdcde
push 4
push 0x60560c
lea ecx, [ebp + 8]
call fcn.004c0470
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x20]
call fcn.004c38c0
push eax
mov ecx, ebx
call fcn.004cda40
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdd19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x4cdd62
nop
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [ebp - 0x10], eax
sub edx, 0x10
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdd50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xc
push esi
call fcn.0050ed4e
mov esi, dword [ebp - 0x10]
add esp, 8
cmp esi, edi
jne 0x4cdd30
push 0xc
push edi
call fcn.0050ed4e
add esp, 8
mov dword [ebx + 0x10], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004b3510
push 0x80004005
call fcn.004b3510
int3