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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [ebp - 0x34]
mov eax, 0xcc
mov byte [ebp - 1], bl
call fcn.00413de7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x412718
lea edi, [ebp - 0x54]
mov eax, 0xcd
call fcn.00413db1
mov eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41270a
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x260]
push ecx
mov dword [ebp - 8], 0x104
call eax
cmp eax, 1
jne 0x41270a
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 0x41270a
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41270a
mov eax, dword [ebp - 8]
lea eax, [ebp + eax*2 - 0x468]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x468]
call fcn.0041b36c
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 1], bl
jne 0x41271f
xor al, al
jmp 0x412891
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
mov edi, 0x4077f0
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 0x41275b
cmp eax, 0xea
jne 0x41283f
cmp dword [ebp - 8], ebx
je 0x412832
xor esi, esi
cmp dword [ebp - 0x10], ebx
jbe 0x412829
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 0x41281f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x41281f
lea ecx, [ebp - 0x260]
push ecx
push dword [eax + 0x10]
call fcn.00413843
test al, al
je 0x412816
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x260]
push eax
push eax
call fcn.00422ccf
test eax, eax
je 0x412816
lea eax, [ebp - 0x260]
push eax
call fcn.0040bd31
test al, al
je 0x412816
lea eax, [ebp - 0x670]
push eax
push 0x4000080
push edi
lea eax, [ebp - 0x260]
push eax
push ebx
call fcn.00421e4e
test eax, eax
je 0x412816
push ebx
lea eax, [ebp - 0x670]
push eax
push ebx
call fcn.0042bb87
test al, al
je 0x412816
lea eax, [ebp - 0x670]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x10]
mov byte [ebp - 1], 1
call fcn.0041230d
push dword [ebp - 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x41276f
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x14], 0xea
je 0x41272a
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 0x41288e
lea eax, [ebp - 0x670]
push eax
push 0x4000080
push edi
lea eax, [ebp - 0x468]
push eax
push ebx
call fcn.00421e4e
test eax, eax
je 0x41288e
push ebx
lea eax, [ebp - 0x670]
push eax
push ebx
call fcn.0042bb87
test al, al
je 0x41288e
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret