Function at 0x41a990
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x422ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x18]
call fcn.0041b270
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebp
call fcn.0041b310
test al, al
je 0x41ad0c
mov ecx, esi
call fcn.0041b0d0
mov eax, dword [esi + 4]
mov dword [esp + 0x34], ebp
cmp eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], ebp
jle 0x41a9ff
push eax
lea ecx, [esp + 0x34]
call fcn.0041b200
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, ebp
mov byte [esp + 0x6c], 1
jle 0x41aa73
cmp edi, ebp
jl 0x41aab3
cmp edi, eax
jge 0x41aab3
mov eax, dword [esi + 8]
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + edi*4]
call fcn.00407370
mov ecx, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [esp + 0x34]
inc eax
cmp eax, ecx
jle 0x41aa46
push eax
lea ecx, [esp + 0x34]
call fcn.0041b200
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx]
mov dword [edx + eax*8], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 4]
mov dword [eax + edx*8 + 4], ecx
mov ebx, dword [esp + 0x34]
mov eax, dword [esi + 4]
inc ebx
inc edi
mov dword [esp + 0x34], ebx
cmp edi, eax
jl 0x41aa0d
mov eax, dword [esi + 4]
lea ecx, [esi + 0x2c]
lea edx, [esi + 0x28]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0041b320
push eax
call sub.ADVAPI32.dll_LsaLookupNames
cmp eax, ebp
jge 0x41aaca
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x38]
mov byte [esp + 0x6c], 0
push edx
jmp 0x41ad04
mov cl, byte [esp + 0x13]
lea edx, [esp + 0x13]
push 0x4288d0
push edx
mov byte [esp + 0x1b], cl
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jle 0x41acc2
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x2c]
add eax, ecx
mov ecx, dword [eax]
cmp ecx, 7
je 0x41ac3b
cmp ecx, 8
je 0x41ac3b
mov eax, dword [eax + 8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov ebx, dword [ecx + edx*4 + 8]
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov dl, byte [eax]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x44]
test dl, dl
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
jbe 0x41ab56
mov ebx, dword [esp + 0x18]
xor edi, edi
lea ebp, [esp + 0x44]
and ebx, 0xff
mov edx, dword [esp + 0x20]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
inc edi
mov dword [ebp], eax
add ebp, 4
dec ebx
jne 0x41ab3a
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
mov ecx, dword [edx + ecx]
cmp ecx, 3
je 0x41ab83
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov al, byte [esp + 0x18]
and ecx, 0xff
inc al
mov dword [esp + ecx*4 + 0x44], edx
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41acfa
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov ebp, dword [esp + 0x28]
inc eax
cmp ecx, eax
jge 0x41ac27
jle 0x41abde
mov eax, ecx
mov edi, dword [esi + 0x20]
imul edi, eax
add edi, dword [esi + 0x24]
lea ecx, [edi*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 0x18]
mov ebx, eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x41ac15
mov edx, dword [esi + 0x1c]
inc eax
mov ecx, dword [edx + eax*4 - 4]
mov dword [ebx + eax*4 - 4], ecx
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jl 0x41ac02
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x14], edi
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [eax + edx*4], ebp
mov eax, dword [esi + 0x18]
inc eax
xor ebp, ebp
mov dword [esi + 0x18], eax
jmp 0x41aca3
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
inc eax
cmp ecx, eax
jge 0x41ac93
jle 0x41ac4a
mov eax, ecx
mov edi, dword [esi + 0x20]
imul edi, eax
add edi, dword [esi + 0x24]
lea ecx, [edi*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 0x18]
mov ebx, eax
add esp, 4
xor eax, eax
cmp ecx, ebp
jle 0x41ac81
mov edx, dword [esi + 0x1c]
inc eax
mov ecx, dword [edx + eax*4 - 4]
mov dword [ebx + eax*4 - 4], ecx
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jl 0x41ac6e
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x14], edi
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [eax + edx*4], ebp
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 4]
inc ecx
add eax, 0xc
cmp ecx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jl 0x41aadf
mov edx, dword [esp + 0x38]
mov byte [esp + 0x6c], 0
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041b2d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x6c], 0
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041b2d0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret