Function at 0x407949
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.0040e24a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x407a11
lea edi, [ebp - 0x54]
mov eax, 0xe2
call fcn.0040e214
mov eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x407a05
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
mov dword [ebp - 8], 0x104
call eax
cmp eax, 1
jne 0x407a05
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 0x407a05
lea ecx, [ebp - 0x25c]
call fcn.004115df
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 0x407a05
mov ecx, dword [ebp - 8]
lea ecx, [ebp + ecx*2 - 0x464]
or eax, 0xffffffff
lea edx, [ebp - 0x464]
call fcn.00410e31
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 1], bl
jne 0x407a18
xor al, al
jmp 0x407b83
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
mov edi, 0x401624
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 0x407a54
cmp eax, 0xea
jne 0x407b34
cmp dword [ebp - 8], ebx
je 0x407b27
xor esi, esi
cmp dword [ebp - 0x10], ebx
jbe 0x407b1e
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 0x407b14
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x407b14
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax + 0x10]
call fcn.0040e8b0
test al, al
je 0x407b0b
lea eax, [ebp - 0x25c]
push eax
push eax
lea eax, [ebp - 0x464]
call fcn.00416325
test al, al
je 0x407b0b
lea eax, [ebp - 0x25c]
push eax
call fcn.004160a7
test al, al
je 0x407b0b
push 6
push edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call fcn.00414f44
test al, al
je 0x407b0b
push ebx
lea eax, [ebp - 0x66c]
push eax
push ebx
call fcn.00407090
test al, al
je 0x407b0b
lea eax, [ebp - 0x66c]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
mov byte [ebp - 1], 1
call fcn.004071bd
push dword [ebp - 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x407a68
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x14], 0xea
je 0x407a23
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 0x407b80
push 6
push edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x464]
push eax
push ebx
call fcn.00414f44
test al, al
je 0x407b80
push ebx
lea eax, [ebp - 0x66c]
push eax
push ebx
call fcn.00407090
test al, al
je 0x407b80
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret