Function at 0x40c874
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.0040f34a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40c93c
lea edi, [ebp - 0x54]
mov eax, 0xe2
call fcn.0040f314
mov eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40c930
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
mov dword [ebp - 8], 0x104
call eax
cmp eax, 1
jne 0x40c930
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 0x40c930
lea ecx, [ebp - 0x25c]
call fcn.00405d35
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 0x40c930
mov ecx, dword [ebp - 8]
lea ecx, [ebp + ecx*2 - 0x464]
or eax, 0xffffffff
lea edx, [ebp - 0x464]
call fcn.00405587
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 1], bl
jne 0x40c943
xor al, al
jmp 0x40caae
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
mov edi, 0x403474
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 0x40c97f
cmp eax, 0xea
jne 0x40ca5f
cmp dword [ebp - 8], ebx
je 0x40ca52
xor esi, esi
cmp dword [ebp - 0x10], ebx
jbe 0x40ca49
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 0x40ca3f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40ca3f
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax + 0x10]
call fcn.0041c086
test al, al
je 0x40ca36
lea eax, [ebp - 0x25c]
push eax
push eax
lea eax, [ebp - 0x464]
call fcn.0040aa77
test al, al
je 0x40ca36
lea eax, [ebp - 0x25c]
push eax
call fcn.0040a7f9
test al, al
je 0x40ca36
push 6
push edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call fcn.00409696
test al, al
je 0x40ca36
push ebx
lea eax, [ebp - 0x66c]
push eax
push ebx
call fcn.0040bfbb
test al, al
je 0x40ca36
lea eax, [ebp - 0x66c]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
mov byte [ebp - 1], 1
call fcn.0040c0e8
push dword [ebp - 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40c993
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x14], 0xea
je 0x40c94e
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 0x40caab
push 6
push edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x464]
push eax
push ebx
call fcn.00409696
test al, al
je 0x40caab
push ebx
lea eax, [ebp - 0x66c]
push eax
push ebx
call fcn.0040bfbb
test al, al
je 0x40caab
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret