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

Disassembly:
push 0xffffffffffffffff
push 0x5aba48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.00404460
xor edi, edi
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, edi
je 0x4cdf33
jl 0x4cdf33
push str.SetupPackRecommend
push ecx
call fcn.0057880c
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, edi
je 0x4cdf33
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4cdf33
cmp dword [ecx - 0xc], edi
jge 0x4cdb1d
or eax, 0xffffffff
jmp 0x4cdb3a
push str.SetupPackRecommend
push ecx
call fcn.0057880c
add esp, 8
cmp eax, edi
jne 0x4cdb34
or eax, 0xffffffff
jmp 0x4cdb3a
sub eax, dword [esp + 0x18]
sar eax, 1
mov ecx, eax
lea esi, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.00403540
mov bl, 1
mov byte [esp + 0x4c], bl
call fcn.004642e0
mov dword [esp + 0x38], eax
mov byte [eax + 0x15], bl
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
mov dword [eax], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 8], eax
mov dword [esp + 0x3c], edi
mov byte [esp + 0x4c], 2
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004cf4b0
cmp dword [esp + 0x3c], edi
jbe 0x4cdf1c
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5c9a1c
call fcn.00404460
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.004204f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdbd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0x38]
je 0x4cdbe7
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4cdbec
call fcn.00578ff3
cmp dword [esp + 0x28], esi
je 0x4cdc0c
lea esi, [esp + 0x24]
call fcn.00420560
mov ebp, dword [esp + 0x54]
add eax, 4
lea edi, [ebp + 4]
call fcn.004035d0
jmp 0x4cdc10
mov ebp, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
mov ecx, str.dictexpath
call fcn.00404460
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.004204f0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdc5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov ebx, dword [esp + 0x38]
je 0x4cdc6e
lea ecx, [esp + 0x34]
cmp esi, ecx
je 0x4cdc73
call fcn.00578ff3
cmp edi, ebx
je 0x4cdc8b
lea esi, [esp + 0x24]
call fcn.00420560
add eax, 4
lea edi, [ebp + 8]
call fcn.004035d0
lea edx, [esp + 0x1c]
push edx
mov ecx, str.instdir
call fcn.00404460
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.004204f0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdcd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov ebx, dword [esp + 0x38]
je 0x4cdce9
lea ecx, [esp + 0x34]
cmp esi, ecx
je 0x4cdcee
call fcn.00578ff3
cmp edi, ebx
je 0x4cdd06
lea esi, [esp + 0x24]
call fcn.00420560
add eax, 4
lea edi, [ebp + 0xc]
call fcn.004035d0
mov edx, dword [ebp + 4]
mov eax, dword [edx - 0xc]
test eax, eax
lea edi, [ebp + 4]
je 0x4cdd2d
lea ecx, [eax - 1]
mov eax, edi
call fcn.004129b0
cmp ax, 0x5c
je 0x4cdd2d
mov edx, 0x5bd0e8
call fcn.00412930
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [ebp + 8]
je 0x4cdd54
lea ecx, [eax - 1]
mov eax, edi
call fcn.004129b0
cmp ax, 0x5c
je 0x4cdd54
mov edx, 0x5bd0e8
call fcn.00412930
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
lea ebx, [ebp + 0xc]
je 0x4cdd7d
lea ecx, [eax - 1]
mov eax, ebx
call fcn.004129b0
cmp ax, 0x5c
je 0x4cdd7d
mov edx, 0x5bd0e8
mov edi, ebx
call fcn.00412930
xor esi, esi
lea edi, [ebp + 0x10]
push esi
push str.SkinTmpFoler__d_
call fcn.004126f0
lea edx, [esp + 0x24]
push edi
push edx
call fcn.00423280
add esp, 0x10
mov byte [esp + 0x4c], 3
call fcn.004035d0
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cddca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cdde4
add esi, 1
cmp esi, 0x3e8
jl 0x4cdd82
jmp 0x4cddf1
mov edi, dword [edi]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, dword [esp + 0x54]
xor ebp, ebp
add edi, 0x14
push ebp
push str.DictTmpFoler__d_
call fcn.004126f0
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push edi
push ecx
add ebx, 0xc
call fcn.00423280
add esp, 0x10
mov byte [esp + 0x4c], 4
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4cde71
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4cde66
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4cde66
call fcn.00403ce0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4cde5b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4cde71
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cde96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cdeb4
add ebp, 1
cmp ebp, 0x3e8
jl 0x4cddfa
jmp 0x4cdec1
mov edi, dword [edi]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, dword [esp + 0x54]
call fcn.004cdf70
mov ecx, esi
call fcn.004cee90
mov ecx, esi
call fcn.004cf840
lea eax, [esp + 0x34]
mov byte [esp + 0x4c], 1
call fcn.00420770
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdf0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x4cdf3e
lea eax, [esp + 0x34]
mov byte [esp + 0x4c], bl
call fcn.00420770
mov byte [esp + 0x4c], 0
lea eax, [esi - 0x10]
jmp 0x4cdef2
mov dword [esp + 0x4c], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdf57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4