Function at 0x408754
Capabilities:
Get session user name
Get user security identifier
List groups for user account
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
xor ebx, ebx
mov eax, 0x443100
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x228], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x21c], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x218], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x214], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x210], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x20c], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x208], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x204], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x200], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x1fc], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x1f8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x1f4], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x1f0], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x1ec], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x1e8], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0x1e4], edx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0x1e0], edx
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0x1dc], edx
mov edx, dword [eax + 0x50]
mov dword [ebp - 0x1d8], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x1d4], edx
mov edx, dword [eax + 0x58]
mov dword [ebp - 0x1d0], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x1cc], edx
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x1c8], edx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0x1c4], edx
mov edx, dword [eax + 0x68]
mov dword [ebp - 0x1c0], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x1bc], edx
mov edx, dword [eax + 0x70]
mov dword [ebp - 0x1b8], edx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x1b4], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], 0x40
mov eax, 0x443180
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x1a4], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x194], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x190], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x18c], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x188], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x184], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x180], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x17c], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x178], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x174], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x170], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x16c], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x168], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x164], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0x160], edx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0x15c], edx
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0x158], edx
mov edx, dword [eax + 0x50]
mov dword [ebp - 0x154], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x150], edx
mov edx, dword [eax + 0x58]
mov dword [ebp - 0x14c], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x148], edx
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x144], edx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0x140], edx
mov edx, dword [eax + 0x68]
mov dword [ebp - 0x13c], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x138], edx
mov edx, dword [eax + 0x70]
mov dword [ebp - 0x134], edx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x130], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 0x40
mov eax, 0x443200
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x120], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x10c], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x108], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x104], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x100], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0xfc], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0xf8], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0xf4], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0xf0], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0xec], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0xe8], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0xe4], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0xe0], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0xdc], edx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0xd8], edx
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0xd4], edx
mov edx, dword [eax + 0x50]
mov dword [ebp - 0xd0], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0xcc], edx
mov edx, dword [eax + 0x58]
mov dword [ebp - 0xc8], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0xc4], edx
mov edx, dword [eax + 0x60]
mov dword [ebp - 0xc0], edx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0xbc], edx
mov edx, dword [eax + 0x68]
mov dword [ebp - 0xb8], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0xb4], edx
mov edx, dword [eax + 0x70]
mov dword [ebp - 0xb0], edx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0xac], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], eax
mov eax, 0x443280
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0xa0], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x8c], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x88], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x84], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x80], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x7c], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x78], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x74], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x70], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x6c], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x44]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0x54], edx
mov edx, dword [eax + 0x50]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x58]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 0x68]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x34], edx
mov edx, dword [eax + 0x70]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x80
lea ecx, [ebp - 0x228]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1a8]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edi, [ebp - 0xa0]
lea esi, [ebp - 0x20]
lea ecx, [ebp - 0x1a4]
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x10]
push eax
push edx
push ecx
push esi
push edi
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x120]
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 0x228]
push eax
push edx
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea esi, [ebp - 0x120]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
xor edi, edi
push eax
push edx
push 0xffffffffffffffff
push ecx
push 1
push edi
push esi
push edi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x408cff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x408d02
mov eax, dword [ebp - 0x1c]
xor edi, edi
test eax, eax
jbe 0x408d02
test esi, esi
je 0x408d1b
push str.Administrators
push dword [esi]
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x408cf5
push str.Administrateurs
push dword [esi]
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x408cf5
push str.Verwalter
push dword [esi]
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x408cf5
push str.Coordinatori
push dword [esi]
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x408cf5
push str.Administradores
push dword [esi]
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
je 0x408cf5
add esi, 4
add edi, 1
cmp edi, dword [ebp - 0x1c]
jb 0x408c79
mov esi, dword [ebp - 0x14]
jmp 0x408d02
mov esi, dword [ebp - 0x14]
mov ebx, 1
jmp 0x408d02
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x408d0c
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, ebx
mov ebx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
jmp 0x408d02