Function at 0x45cf90
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5c23
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x220], edi
test byte [0x4fe9b0], 1
jne 0x45d047
or dword [0x4fe9b0], 1
mov eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc7ec
mov dword [ebp - 4], edi
call edx
add eax, 0x10
mov dword [0x4fe9ac], eax
mov eax, 0x4cdb58
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x45d024
mov ecx, eax
movzx esi, cx
push edi
push esi
call fcn.0040114c
add esp, 8
cmp eax, edi
je 0x45d033
push esi
push eax
mov ecx, 0x4fe9ac
call fcn.0040188a
jmp 0x45d033
push 0x4cdb58
mov ecx, 0x4fe9ac
call fcn.00403254
push 0x4cc270
call fcn.0047f31a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4fe9ac]
cmp dword [eax - 0xc], edi
je 0x45d067
add eax, 0xfffffff0
push eax
call fcn.004014d8
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x45d231
lea edx, [ebp - 0x220]
push edx
call fcn.0045c9a0
push edi
push 0x4cd850
push 0x4fe9ac
push 0x4cf7ec
push str.User_Configuration
mov dword [ebp - 4], 2
call fcn.0045cd30
mov eax, dword [0x4fe9ac]
add esp, 0x18
cmp dword [eax - 0xc], edi
je 0x45d1e1
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x45d1e1
mov eax, dword [0x4fe9ac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45d1e1
mov edx, dword [0x4fe9ac]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, edi
jl 0x45d1d7
cmp eax, ecx
jg 0x45d1d7
cmp word [edx + eax*2], 0x5c
je 0x45d0f7
push 0x5c
mov ecx, 0x4fe9ac
call fcn.0045c940
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, 0x4fe9ac
call fcn.00401331
test eax, eax
je 0x45d1e1
mov ecx, dword [0x4fe9ac]
cmp dword [ecx - 0xc], edi
jge 0x45d120
or edi, 0xffffffff
jmp 0x45d143
push str.liuliangbaoCache_
push ecx
call fcn.0047f374
mov ecx, dword [0x4fe9ac]
add esp, 8
cmp eax, edi
jne 0x45d13d
or edi, 0xffffffff
jmp 0x45d143
sub eax, ecx
sar eax, 1
mov edi, eax
mov esi, dword [ecx - 0xc]
push str.liuliangbaoCache_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
cmp edi, esi
je 0x45d166
push str.liuliangbaoCache_
mov ecx, 0x4fe9ac
call fcn.0040d5b0
mov edx, dword [0x4fe9ac]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45d188
push eax
mov eax, dword [0x4fe9ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45d1e1
mov edx, dword [0x4fe9ac]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x4cd850
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x45d1e1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4fe9ac]
add eax, 0xfffffff0
push eax
call fcn.004014d8
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x220]
mov dword [ebx], eax
call fcn.00401599
jmp 0x45d231
push 0x80070057
call fcn.00401000
lea ecx, [ebp - 0x220]
push ecx
mov ecx, 0x4fe9ac
call fcn.0040195e
mov eax, dword [0x4fe9ac]
add eax, 0xfffffff0
push eax
call fcn.004014d8
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d231
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e4d2
mov esp, ebp
pop ebp
ret