Function at 0x5799a0
Capabilities:
Check if file exists
Get common file path
List user accounts

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fce34
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test byte [ebp + 8], 2
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0
je 0x579a55
lea eax, [ebp - 0x3c]
push eax
push 4
push ecx
call fcn.0057c300
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x579a4e
push 1
mov ecx, ebx
call fcn.00403af0
push 1
mov ecx, esi
call fcn.00403af0
mov esi, dword [esi]
push 0
push ecx
mov ecx, edi
call fcn.0057c300
push eax
push 0x104
mov ecx, esi
call fcn.005db9a0
mov ecx, eax
call fcn.0059c620
test al, al
je 0x579a4e
mov esi, dword [ebx]
push ecx
mov ecx, edi
call fcn.0057c330
push eax
mov ecx, esi
call fcn.005dc510
mov eax, 1
jmp 0x579cc2
xor eax, eax
jmp 0x579cc2
xor edi, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x1c], 0x104
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], edi
call fcn.005dc5e0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x30], edi
movq qword [ebp - 0x38], xmm0
call fcn.005dc5e0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push edi
push edi
push 0x104
lea ecx, [ebp - 0x38]
call fcn.005db9a0
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x579ae0
cmp eax, 0xea
jne 0x579cae
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x579cae
cmp dword [ebp - 0x20], 0
je 0x579cae
push eax
mov ecx, ebx
call fcn.00403af0
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00403af0
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x18], eax
jbe 0x579cb0
xor edi, edi
nop dword [eax]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push ecx
lea eax, [edx + eax*4]
push 4
push dword [eax]
mov dword [ebp - 0x50], eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x579c96
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi]
mov dword [ebp - 0x4c], eax
add ecx, edi
mov eax, dword [ebp - 0x50]
push 0
push dword [eax]
push 0x104
call fcn.005db9a0
mov ecx, eax
call fcn.0059c620
test al, al
je 0x579c88
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebx]
add ecx, edi
push dword [eax + 0x68]
call fcn.005dc510
mov eax, dword [ebx]
add eax, edi
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.005dbeb0
test al, al
je 0x579bf7
mov ecx, dword [esi]
add ecx, edi
call fcn.005dc190
mov edx, dword [ebp - 0x4c]
mov ecx, eax
call fcn.0059cca0
test al, al
jne 0x579bf7
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
mov esi, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [eax]
add esi, edi
push 0x624284
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005dc200
mov ecx, dword [ebx]
add ecx, edi
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x579bf4
mov ecx, dword [ebx]
add ecx, edi
call fcn.005dc400
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebx]
add ecx, edi
call fcn.005dbeb0
test al, al
jne 0x579c88
mov ecx, dword [esi]
add ecx, edi
call fcn.005dc190
mov edx, eax
mov ecx, SHDefExtractIconW
call fcn.005d4630
test al, al
jne 0x579c82
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, edi
push str.NTUSER.DAT
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc200
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x579c82
mov esi, dword [esi]
lea ecx, [ebp - 0x2c]
add esi, edi
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005dc190
push eax
push SHDefExtractIconW
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov esi, dword [ebp - 0x44]
inc dword [ebp - 0x48]
add edi, 0xc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x579c96
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x18]
jb 0x579b20
mov edi, dword [ebp - 0x48]
jmp 0x579cb0
xor edi, edi
lea ecx, [ebp - 0x38]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
call fcn.005dc430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0x1c