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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7a6d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4e106c]
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 edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x130]
mov esi, dword [ebp + 0x14]
or ebx, 0xffffffff
mov dword [ebp - 0x150], edi
call fcn.0040c36c
push 0x104
push 0
push 0x105
mov dword [ebp - 4], 0
push edi
mov dword [esi], 0
call fcn.0046b19c
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00458260
add esp, 0x1c
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x451314
mov dword [esi], 3
jmp 0x451593
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.00406ed1
push str.Tencent
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.004525d0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x451393
push 0
push 1
mov ecx, eax
call fcn.0040735b
mov ecx, edi
call fcn.00402756
lea ecx, [ebp - 0x130]
call fcn.00402756
mov ecx, edi
call fcn.00402756
lea ecx, [ebp - 0x130]
call fcn.00402756
push edi
call fcn.004032eb
add esp, 4
lea ecx, [ebp - 0x130]
push eax
call fcn.0040b118
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0
call fcn.0040b307
push 0
lea ecx, [ebp - 0x130]
call fcn.00415551
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4513d4
call edi
cmp eax, 0xb7
je 0x4513d4
call edi
cmp eax, 5
jne 0x451309
push str.DeskUpdate
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.004525d0
add esp, 4
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x451450
push 0
push 1
call fcn.0040735b
mov ecx, dword [ebp - 0x14c]
call fcn.00402756
lea ecx, [ebp - 0x130]
call fcn.00402756
mov ecx, dword [ebp - 0x14c]
call fcn.00402756
lea ecx, [ebp - 0x130]
call fcn.00402756
push dword [ebp - 0x14c]
call fcn.004032eb
add esp, 4
lea ecx, [ebp - 0x130]
push eax
call fcn.0040b118
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0
call fcn.0040b307
push 0
lea ecx, [ebp - 0x130]
call fcn.00415551
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45148b
call edi
cmp eax, 0xb7
je 0x45148b
call edi
cmp eax, 5
jne 0x451309
push str.GlobalMgr.db
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.004525d0
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4514f8
push 0
push 1
mov ecx, eax
call fcn.0040735b
mov ecx, ebx
call fcn.00402756
lea ecx, [ebp - 0x130]
call fcn.00402756
mov ecx, ebx
call fcn.00402756
lea ecx, [ebp - 0x130]
call fcn.00402756
push ebx
call fcn.004032eb
add esp, 4
lea ecx, [ebp - 0x130]
push eax
call fcn.0040b118
lea ecx, [ebp - 0x148]
call fcn.0040b307
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x130]
call fcn.00415551
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x451536
mov dword [esi], 0x50
jmp 0x451567
call edi
cmp eax, 2
jne 0x45158d
push 0
push 0x80
push eax
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x130]
call fcn.00415551
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45158d
push 0x104
lea ecx, [ebp - 0x130]
call fcn.00415551
push eax
push 0x105
push dword [ebp - 0x150]
call fcn.0046b0b4
add esp, 0x10
jmp 0x451593
mov dword [esi], 0x65f
lea ecx, [ebp - 0x130]
call fcn.0040b307
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.00455912
mov esp, ebp
pop ebp
ret 0x10