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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff8f5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x70f200]
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, edx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [edi], 0
xor esi, esi
xorps xmm0, xmm0
mov dword [ebx], 0
mov dword [ebp - 0x3c], eax
mov dword [eax], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], esi
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], esi
call fcn.005dc5e0
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
push esi
push 3
push esi
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x59d435
cmp eax, 0xea
jne 0x59d754
cmp dword [ebp - 0x14], 0
je 0x59d754
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], esi
test esi, esi
je 0x59d754
mov ecx, 0xc
mov dword [ebp - 0x28], esi
mov eax, esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x34], eax
push fcn.005dc430
push fcn.005dc5e0
mov byte [ebp - 4], 1
push dword [ebp - 0x40]
mov dword [eax], esi
lea esi, [eax + 4]
push 0xc
push esi
call fcn.0041e804
mov byte [ebp - 4], 0
mov ecx, 0xc
mov dword [edi], esi
mov edi, dword [ebp - 0x18]
mov eax, edi
mul ecx
mov ecx, 0xffffffff
mov dword [ebp - 0x34], edi
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x28], eax
push fcn.005dc430
push fcn.005dc5e0
push edi
lea esi, [eax + 4]
mov byte [ebp - 4], 2
push 0xc
push esi
mov dword [eax], edi
call fcn.0041e804
mov byte [ebp - 4], 0
mov ecx, 0xc
mov edi, dword [ebp - 0x18]
mov eax, edi
mul ecx
mov ecx, 0xffffffff
mov dword [ebx], esi
mov dword [ebp - 0x34], edi
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x28], eax
push fcn.005dc430
push fcn.005dc5e0
push edi
lea esi, [eax + 4]
mov byte [ebp - 4], 3
push 0xc
push esi
mov dword [eax], edi
call fcn.0041e804
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
mov dword [eax], esi
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0
jbe 0x59d6f4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
lea esi, [eax + eax*2]
shl esi, 2
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x59d6e1
push 0
push eax
mov eax, dword [ebp - 0x30]
push 0x104
mov ecx, dword [eax]
add ecx, esi
call fcn.005db9a0
mov ecx, eax
call fcn.0059c620
test al, al
je 0x59d6e1
mov ecx, dword [ebx]
push dword [edi + 0x68]
add ecx, esi
call fcn.005dc510
mov ecx, dword [ebx]
push 2
push 1
push 1
push 1
push 0x624284
add ecx, esi
call fcn.005daa70
mov ecx, dword [ebx]
test eax, eax
je 0x59d5b1
add ecx, esi
call fcn.005dc400
jmp 0x59d6e1
lea eax, [esi + ecx]
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.005dbeb0
test al, al
je 0x59d652
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
add ecx, esi
call fcn.005dc190
mov edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.0059cca0
test al, al
jne 0x59d652
test byte [ebp + 0xc], 1
je 0x59d6e1
mov ecx, dword [ebx]
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x200
add ecx, esi
mov dword [ebp - 0x28], 0x200
call fcn.005db9a0
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x59d6e1
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [edi]
add ecx, esi
push 0x624284
call fcn.005da780
mov ecx, dword [ebx]
add ecx, esi
call fcn.005dc190
mov ecx, eax
call fcn.005e1200
test al, al
je 0x59d6e1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
add ecx, esi
call fcn.005dc190
mov edx, eax
mov ecx, SHDefExtractIconW
call fcn.005d4630
test al, al
jne 0x59d6cd
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.NTUSER.DAT
add ecx, esi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x24]
call fcn.005dc200
lea ecx, [ebp - 0x24]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x59d6cd
lea ecx, [ebp - 0x24]
call fcn.005dc190
push eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
add ecx, esi
call fcn.005dc190
push eax
push SHDefExtractIconW
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov eax, dword [ebp - 0x3c]
push dword [edi]
mov ecx, dword [eax]
add ecx, esi
call fcn.005dc510
inc dword [ebp - 0x38]
add esi, 0xc
mov eax, dword [ebp - 0x40]
add edi, 0x74
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x14]
jb 0x59d550
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x59d702
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x44], 0xea
mov dword [ebp - 0x2c], 0
jne 0x59d746
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
push 0
push 3
push 0
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x59d73c
cmp eax, 0xea
jne 0x59d746
cmp dword [ebp - 0x14], 0
jne 0x59d530
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x59d84b
mov edi, dword [ebp - 0x30]
push 0x10
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x34], eax
push fcn.005dc430
push fcn.005dc5e0
push 1
lea esi, [eax + 4]
mov byte [ebp - 4], 4
push 0xc
push esi
mov dword [eax], 1
call fcn.0041e804
mov byte [ebp - 4], 0
push 0x10
mov dword [edi], esi
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x34], eax
push fcn.005dc430
push fcn.005dc5e0
push 1
lea esi, [eax + 4]
mov byte [ebp - 4], 5
push 0xc
push esi
mov dword [eax], 1
call fcn.0041e804
mov byte [ebp - 4], 0
push 0x10
mov dword [ebx], esi
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x34], eax
push fcn.005dc430
push fcn.005dc5e0
push 1
lea esi, [eax + 4]
mov byte [ebp - 4], 6
push 0xc
push esi
mov dword [eax], 1
call fcn.0041e804
mov eax, dword [ebp - 0x3c]
push 0
mov byte [ebp - 4], 0
push 0
mov dword [eax], esi
mov ecx, dword [edi]
push 0x80
call fcn.005db9a0
mov ecx, dword [ebx]
push eax
push 0
push 0
push 0x104
call fcn.005db9a0
mov esi, eax
mov eax, dword [ebp - 0x3c]
push 0
push 0
push 0x80
mov ecx, dword [eax]
call fcn.005db9a0
mov edx, esi
mov ecx, eax
call fcn.0059cf00
test eax, eax
je 0x59d849
cmp eax, 0xffffffff
je 0x59d849
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x59d84b
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.005dc430
mov eax, esi
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.0041e1b5
mov esp, ebp
pop ebp
ret 8