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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f59dc
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x828], esi
mov dword [ebp - 0x824], 0
cmp dword [0x66c1fc], 0
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 4], 0
je 0x5795b1
mov eax, dword [0x66c200]
add eax, 0xfffffff0
push eax
call fcn.004bfdc0
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x5796dd
mov eax, dword [0x66c230]
test al, 1
jne 0x5795e0
or eax, 1
mov dword [0x66c230], eax
mov ecx, 0x66c218
mov dword [ebp - 4], 1
call fcn.0055c310
push 0x5fda60
call fcn.0050f1be
add esp, 4
push 0x66c218
mov dword [ebp - 0x830], 0x66c218
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x82c], 1
cmp dword [0x66c1fc], 0
mov eax, dword [0x66c200]
mov dword [ebp - 4], 2
jne 0x5796c1
cmp dword [eax - 0xc], 0
jne 0x579671
push 0x802
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
lea eax, [ebp - 0x814]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x579650
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, 0x66c200
call fcn.004c0470
mov eax, dword [0x66c200]
cmp dword [eax - 0xc], 0
jle 0x5796b2
push 0x66c200
call fcn.0057a6d0
add esp, 4
mov ecx, 0x66c200
push str.TencentQQWubi_
call fcn.004bc9f0
push dword [0x66c200]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5796b2
push eax
push dword [0x66c200]
push eax
call edi
mov eax, dword [0x66c200]
mov dword [0x66c1fc], 1
add eax, 0xfffffff0
push eax
call fcn.004bfdc0
add esp, 4
add eax, 0x10
mov dword [esi], eax
push 0x66c218
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x824], 3
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x57971a
lea ecx, [eax - 1]
test ecx, ecx
js 0x579862
cmp ecx, eax
jg 0x579862
cmp word [edx + ecx*2], 0x5c
je 0x57971a
push 0x5c
mov ecx, esi
call fcn.004bdbf0
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x579858
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 3
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x57986c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 4
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x579876
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
push 0
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.004b3dd0
add esp, 0xc
test eax, eax
je 0x5797d7
mov eax, dword [ebp - 0x818]
cmp dword [eax - 0xc], 0
jle 0x5797d7
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.00588800
push dword [ebp - 0x81c]
push str.SAccount_s_
push esi
call fcn.004bdd00
add esp, 0x14
push 0
push dword [esi]
push 0
call edi
mov edx, dword [ebp - 0x81c]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5797fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x820]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x57981c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x818]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x57983b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b3510
push 0x80070057
call fcn.004b3510
push 0x80004005
call fcn.004b3510
push 0x80004005
call fcn.004b3510
int3