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

Disassembly:
push 0xffffffffffffffff
push 0x60a268
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.00409dd0
xor edi, edi
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, edi
je 0x4e9c53
jl 0x4e9c53
push str.SetupPackRecommend
push ecx
call fcn.005d2e73
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, edi
je 0x4e9c53
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4e9c53
cmp dword [ecx - 0xc], edi
jge 0x4e983d
or eax, 0xffffffff
jmp 0x4e985a
push str.SetupPackRecommend
push ecx
call fcn.005d2e73
add esp, 8
cmp eax, edi
jne 0x4e9854
or eax, 0xffffffff
jmp 0x4e985a
sub eax, dword [esp + 0x18]
sar eax, 1
mov ecx, eax
lea esi, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.00409f40
mov bl, 1
mov byte [esp + 0x4c], bl
call fcn.00448810
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.004eb1d0
cmp dword [esp + 0x3c], edi
jbe 0x4e9c3c
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x6354a0
call fcn.00409dd0
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.00467460
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 0x4e98f3
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 0x4e9907
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4e990c
call fcn.005d29f1
cmp dword [esp + 0x28], esi
je 0x4e992c
lea esi, [esp + 0x24]
call fcn.0041d200
mov ebp, dword [esp + 0x54]
add eax, 4
lea edi, [ebp + 4]
call fcn.0040ab90
jmp 0x4e9930
mov ebp, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
mov ecx, str.dictexpath
call fcn.00409dd0
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.00467460
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 0x4e997e
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 0x4e998e
lea ecx, [esp + 0x34]
cmp esi, ecx
je 0x4e9993
call fcn.005d29f1
cmp edi, ebx
je 0x4e99ab
lea esi, [esp + 0x24]
call fcn.0041d200
add eax, 4
lea edi, [ebp + 8]
call fcn.0040ab90
lea edx, [esp + 0x1c]
push edx
mov ecx, str.instdir
call fcn.00409dd0
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.00467460
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 0x4e99f9
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 0x4e9a09
lea ecx, [esp + 0x34]
cmp esi, ecx
je 0x4e9a0e
call fcn.005d29f1
cmp edi, ebx
je 0x4e9a26
lea esi, [esp + 0x24]
call fcn.0041d200
add eax, 4
lea edi, [ebp + 0xc]
call fcn.0040ab90
mov edx, dword [ebp + 4]
mov eax, dword [edx - 0xc]
test eax, eax
lea edi, [ebp + 4]
je 0x4e9a4d
lea ecx, [eax - 1]
mov eax, edi
call fcn.0040af70
cmp ax, 0x5c
je 0x4e9a4d
mov edx, 0x62454c
call fcn.0040ae60
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [ebp + 8]
je 0x4e9a74
lea ecx, [eax - 1]
mov eax, edi
call fcn.0040af70
cmp ax, 0x5c
je 0x4e9a74
mov edx, 0x62454c
call fcn.0040ae60
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
lea ebx, [ebp + 0xc]
je 0x4e9a9d
lea ecx, [eax - 1]
mov eax, ebx
call fcn.0040af70
cmp ax, 0x5c
je 0x4e9a9d
mov edx, 0x62454c
mov edi, ebx
call fcn.0040ae60
xor esi, esi
lea edi, [ebp + 0x10]
push esi
push str.SkinTmpFoler__d_
call fcn.0040ac80
lea edx, [esp + 0x24]
push edi
push edx
call fcn.0041eb50
add esp, 0x10
mov byte [esp + 0x4c], 3
call fcn.0040ab90
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 0x4e9aea
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 0x4e9b04
add esi, 1
cmp esi, 0x3e8
jl 0x4e9aa2
jmp 0x4e9b11
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.0040ac80
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push edi
push ecx
add ebx, 0xc
call fcn.0041eb50
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 0x4e9b91
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4e9b86
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4e9b86
call fcn.0040a210
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4e9b7b
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 0x4e9b91
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.004037a0
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 0x4e9bb6
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 0x4e9bd4
add ebp, 1
cmp ebp, 0x3e8
jl 0x4e9b1a
jmp 0x4e9be1
mov edi, dword [edi]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, dword [esp + 0x54]
call fcn.004e9c90
mov ecx, esi
call fcn.004eabb0
mov ecx, esi
call fcn.004eb560
lea eax, [esp + 0x34]
mov byte [esp + 0x4c], 1
call fcn.0041d480
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 0x4e9c2b
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 0x4e9c5e
lea eax, [esp + 0x34]
mov byte [esp + 0x4c], bl
call fcn.0041d480
mov byte [esp + 0x4c], 0
lea eax, [esi - 0x10]
jmp 0x4e9c12
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 0x4e9c77
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