Function at 0x40c5f0
Capabilities:
Get common file path
Get startup folder
List user accounts

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [ebp - 0x34]
mov eax, 0xe1
mov byte [ebp - 1], bl
call fcn.00408c1d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40c6b8
lea edi, [ebp - 0x54]
mov eax, 0xe2
call fcn.00408be7
mov eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40c6ac
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
mov dword [ebp - 8], 0x104
call eax
cmp eax, 1
jne 0x40c6ac
lea eax, [ebp - 0x464]
push eax
push 1
push 0xffffffffffffffff
push 7
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c6ac
lea ecx, [ebp - 0x25c]
call fcn.00417a54
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x464]
push eax
mov eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40c6ac
mov ecx, dword [ebp - 8]
lea ecx, [ebp + ecx*2 - 0x464]
or eax, 0xffffffff
lea edx, [ebp - 0x464]
call fcn.004172a6
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 1], bl
jne 0x40c6bf
xor al, al
jmp 0x40c82a
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
mov edi, 0x404460
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push 2
push ebx
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40c6fb
cmp eax, 0xea
jne 0x40c7db
cmp dword [ebp - 8], ebx
je 0x40c7ce
xor esi, esi
cmp dword [ebp - 0x10], ebx
jbe 0x40c7c5
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push 0x17
push dword [eax + esi*4]
push ebx
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x40c7bb
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40c7bb
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax + 0x10]
call fcn.0040d8ec
test al, al
je 0x40c7b2
lea eax, [ebp - 0x25c]
push eax
push eax
lea eax, [ebp - 0x464]
call fcn.0041c78e
test al, al
je 0x40c7b2
lea eax, [ebp - 0x25c]
push eax
call fcn.0041c510
test al, al
je 0x40c7b2
push 6
push edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call fcn.0041b3b9
test al, al
je 0x40c7b2
push ebx
lea eax, [ebp - 0x66c]
push eax
push ebx
call fcn.0040bcef
test al, al
je 0x40c7b2
lea eax, [ebp - 0x66c]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
mov byte [ebp - 1], 1
call fcn.0040be1c
push dword [ebp - 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40c70f
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x14], 0xea
je 0x40c6ca
lea eax, [ebp - 0x464]
push eax
push 1
push 0xffffffffffffffff
push 0x8007
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c827
push 6
push edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x464]
push eax
push ebx
call fcn.0041b3b9
test al, al
je 0x40c827
push ebx
lea eax, [ebp - 0x66c]
push eax
push ebx
call fcn.0040bcef
test al, al
je 0x40c827
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret