Function at 0x4d91c0
Capabilities:
Get user security identifier

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57696f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
xor eax, eax
mov dword [ebp - 0x5c], 0x10000000
cmp dword [edi + 0x2c], 1
mov dword [ebp - 0x50], 0
sete al
mov dword [ebp - 0x4c], 0
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x1c], 5
lea eax, [eax*2 + 2]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x54], eax
je 0x4d944b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x30], 0x59a564
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x4d9290
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], 0x59a564
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x24], eax
xor al, al
jmp 0x4d96e7
push str.ConvertStringSidToSidW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4d92cc
mov dword [ebp - 4], 0xffffffff
push esi
mov dword [ebp - 0x30], 0x59a564
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x24], eax
xor al, al
jmp 0x4d96e7
lea ecx, [ebp - 0x20]
push ecx
push dword [ebx + 8]
call eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0x59a564
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x2c], 0
test esi, esi
jne 0x4d9309
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x24], eax
xor al, al
jmp 0x4d96e7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x104
call fcn.004a8b90
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x104
call fcn.004a8b90
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x104
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x34]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x4d9419
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d93e1
push edi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.004a8b90
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push dword [ebp - 0x28]
call fcn.004a8b90
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x34]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x4d9419
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x24], eax
mov byte [ebp - 4], 1
push edi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x4d96e7
mov byte [ebp - 4], 1
push edi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
mov ecx, dword [ebp - 0x20]
add esp, 4
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
jmp 0x4d9555
push 0x104
call fcn.0052e817
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x18]
push 0x104
call fcn.004a8b90
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
push dword [ebx + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4d953f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d953a
push dword [ebp - 0x14]
call fcn.0052e812
add esp, 4
push dword [ebp - 0x28]
call fcn.0052e817
add esp, 4
mov dword [ebp - 0x14], eax
push esi
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push dword [ebp - 0x2c]
call fcn.004a8b90
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
push dword [ebx + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4d953f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x14]
mov dword [edi + 0x24], eax
call fcn.0052e812
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x4d9552
mov dword [edi + 0x24], eax
jmp 0x4d9523
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x4d9302
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 8
ja case.0x4d956d.8
jmp dword [eax*4 + 0x4d9714]
mov dword [ebp - 0x44], 1
jmp 0x4d95c3
mov dword [ebp - 0x44], 2
jmp 0x4d95c3
mov dword [ebp - 0x44], 3
jmp 0x4d95c3
mov dword [ebp - 0x44], 4
jmp 0x4d95c3
mov dword [ebp - 0x44], 5
jmp 0x4d95c3
mov dword [ebp - 0x44], 6
jmp 0x4d95c3
mov dword [ebp - 0x44], 7
jmp 0x4d95c3
mov dword [ebp - 0x44], 8
jmp 0x4d95c3
mov dword [ebp - 0x44], 0
mov esi, dword [edi + 8]
xor al, al
cmp byte [ebx + 0x10], 0
mov edx, 1
movzx eax, al
cmovne eax, edx
mov dword [ebp - 0x40], ecx
mov edx, dword [edi + 4]
mov byte [ebp - 0x38], al
mov dword [ebp - 0x34], edi
cmp edx, esi
jne 0x4d9636
mov ecx, dword [edi]
lea eax, [ebp - 0x3c]
cmp eax, ecx
jb 0x4d9601
lea edi, [ebp - 0x3c]
lea eax, [ecx + esi*8]
cmp edi, eax
mov edi, dword [ebp - 0x24]
jb 0x4d96fd
test esi, esi
jne 0x4d960c
mov esi, 1
jmp 0x4d961b
lea esi, [edx + edx]
test esi, esi
js 0x4d965e
cmp esi, 0xfffffff
ja 0x4d965e
push 8
push esi
push ecx
call fcn.00535885
add esp, 0xc
test eax, eax
je 0x4d965e
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], esi
mov dword [edi], eax
mov dword [ebp - 0x24], edx
mov eax, dword [edi]
lea edx, [eax + edx*8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 4
test edx, edx
je 0x4d9654
mov eax, dword [ebp - 0x38]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [ebp - 4], 0xffffffff
inc dword [edi + 4]
mov ecx, dword [edi + 0x10]
add edi, 0xc
mov dword [ebp - 0x34], edi
mov edx, dword [edi + 8]
cmp ecx, edx
jne 0x4d96b8
mov eax, dword [edi]
lea esi, [ebp - 0x5c]
cmp esi, eax
jb 0x4d9688
mov eax, edx
shl eax, 5
add eax, dword [edi]
cmp esi, eax
jb 0x4d9707
mov eax, dword [edi]
test edx, edx
jne 0x4d9691
lea esi, [edx + 1]
jmp 0x4d96a0
lea esi, [ecx + ecx]
test esi, esi
js 0x4d96e5
cmp esi, 0x3ffffff
ja 0x4d96e5
push 0x20
push esi
push eax
call fcn.00535885
add esp, 0xc
test eax, eax
je 0x4d96e5
or al, 0x85
sal byte [ebp + esi - 0x75], 0x4f
add al, 0x89
ja 0x4d96be
mov ecx, dword [edi + 4]
mov dword [edi + 8], esi
mov dword [edi], eax
mov dword [ebp - 0x2c], ecx
shl ecx, 5
add ecx, dword [edi]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 5
je 0x4d96db
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ecx + 0x10], xmm0
mov dword [ebp - 4], 0xffffffff
inc dword [edi + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 0x80004005
call fcn.00409a00
push 0x80004005
call fcn.00409a00
nop dword [eax]
je 0x4d96ab
dec ebp
add byte [ebp - 0x6b], bh
dec ebp
add byte [esi - 0x70ffb26b], al
xchg ebp, eax
dec ebp
add byte [eax - 0x5effb26b], bl
xchg ebp, eax
dec ebp
add byte [edx - 0x43ffb26b], ch
xchg ebp, eax
dec ebp
add byte [ebx - 0x33ffb26b], dh
int3