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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [ebp - 0x38]
mov eax, 0xe1
mov byte [ebp - 1], bl
call fcn.004106a9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x40f182
lea edi, [ebp - 0x58]
mov eax, 0xe2
call fcn.00410673
mov eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40f157
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x260]
push ecx
mov dword [ebp - 8], 0x104
call eax
cmp eax, 1
jne 0x40f149
lea eax, [ebp - 0x468]
push eax
push 1
push 0xffffffffffffffff
push 7
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40f13b
lea ecx, [ebp - 0x260]
call fcn.0041f350
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push eax
mov eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40f12d
mov ecx, dword [ebp - 8]
lea ecx, [ebp + ecx*2 - 0x468]
or eax, 0xffffffff
lea edx, [ebp - 0x468]
call fcn.0041eba2
mov eax, edx
push eax
push 0x404c84
push ebx
push 0x25e
mov edi, 0x4044e0
push edi
mov esi, 0x404ca8
push esi
call fcn.00420542
add esp, 0x18
mov byte [ebp - 1], 1
jmp 0x40f177
push 0x404cc8
push 2
push 0x262
jmp 0x40f163
push 0x404d14
push 2
push 0x266
jmp 0x40f163
push 0x404d48
push 2
push 0x26a
jmp 0x40f163
push 0x404d98
push 2
push 0x26e
mov edi, 0x4044e0
push edi
mov esi, 0x404ca8
push esi
call fcn.00420542
add esp, 0x14
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40f1a2
push 0x404df4
push 2
push 0x273
mov edi, 0x4044e0
push edi
mov esi, 0x404ca8
push esi
call fcn.00420542
add esp, 0x14
cmp byte [ebp - 1], bl
jne 0x40f1ae
xor al, al
jmp 0x40f38b
mov byte [ebp - 1], bl
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
cmp eax, ebx
je 0x40f1e5
cmp eax, 0xea
jne 0x40f338
cmp dword [ebp - 8], ebx
je 0x40f32b
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x40f322
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push 0x17
push dword [eax + ecx*4]
push ebx
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x40f313
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40f313
lea ecx, [ebp - 0x670]
push ecx
push dword [eax + 0x10]
call fcn.0041b4fd
test al, al
je 0x40f30a
lea eax, [ebp - 0x670]
push eax
push eax
lea eax, [ebp - 0x468]
call fcn.00424512
test al, al
je 0x40f30a
lea eax, [ebp - 0x670]
push eax
call fcn.00424294
test al, al
je 0x40f30a
lea eax, [ebp - 0x670]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0x404e28
push ebx
push 0x294
push edi
push esi
call fcn.00420542
add esp, 0x1c
push 6
push 0x401600
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x670]
push eax
push ebx
call fcn.004230ef
test al, al
je 0x40f2ef
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call fcn.0040e382
test al, al
je 0x40f2ef
lea eax, [ebp - 0x260]
push eax
push 0x404e7c
push ebx
push 0x29a
push edi
push esi
call fcn.00420542
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
mov byte [ebp - 1], 1
call fcn.0040e557
jmp 0x40f30a
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0x404ea0
push 2
push 0x2a1
push edi
push esi
call fcn.00420542
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x40f1fa
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x18], 0xea
je 0x40f1b4
lea eax, [ebp - 0x468]
push eax
push 1
push 0xffffffffffffffff
push 0x8007
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40f388
push 6
push 0x401600
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
call fcn.004230ef
test al, al
je 0x40f388
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call fcn.0040e382
test al, al
je 0x40f388
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret