Function at 0x42b5a0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cd4d
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x56d370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1a4], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
mov byte [ebp - 0x180], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], 0
call fcn.0042a6c0
mov dword [ebp - 4], 1
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x160], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 2
call fcn.0042a6c0
push 0x40
mov byte [ebp - 4], 3
mov dword [ebp - 0x17c], 0x40
mov dword [ebp - 0x16c], 0x20
mov byte [ebp - 0x159], 1
call fcn.0047ffab
push dword [ebx]
mov esi, eax
call fcn.0047f552
mov eax, dword [ebp - 0x16c]
add esp, 8
mov dword [ebx], esi
mov edx, 2
test eax, eax
je 0x42b6b8
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ffab
add esp, 4
mov esi, eax
jmp 0x42b6ba
xor esi, esi
push 0
call fcn.0047f552
add esp, 4
mov dword [ebp - 0x198], esi
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x16c]
push eax
push esi
lea eax, [ebp - 0x17c]
push eax
push dword [ebx]
push dword [ebp - 0x184]
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x42b93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x159], 0
mov edi, eax
je 0x42b79e
cmp edi, 0x7a
jne 0x42b79e
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x42b735
push eax
call fcn.0047ffab
add esp, 4
mov edi, eax
jmp 0x42b737
xor edi, edi
push dword [ebx]
call fcn.0047f552
mov eax, dword [ebp - 0x16c]
add esp, 4
mov dword [ebx], edi
test eax, eax
je 0x42b782
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ffab
add esp, 4
mov edi, eax
push esi
call fcn.0047f552
mov esi, edi
mov byte [ebp - 0x159], 0
mov dword [ebp - 0x198], esi
jmp 0x42b902
push esi
xor edi, edi
call fcn.0047f552
mov esi, edi
mov byte [ebp - 0x159], 0
mov dword [ebp - 0x198], esi
jmp 0x42b902
cmp edi, 0x534
jne 0x42ba06
cmp dword [ebp - 0x164], 0
jne 0x42ba06
push 0xffffffffffffffff
push dword [ebp - 0x19c]
call fcn.00407040
add esp, 8
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
push 0
push 0x5c
lea ecx, [ebp - 0x194]
call fcn.00418ca0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 0x170], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 8
call fcn.0042a6c0
cmp byte [ebp - 0x160], 0
mov eax, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x164]
mov byte [ebp - 4], 9
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x178], 0
je 0x42b86b
test ecx, ecx
je 0x42b86b
mov eax, dword [ebp - 0x168]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x164]
add esp, 8
push ecx
call fcn.0047f552
xor eax, eax
add esp, 4
test ebx, ebx
cmovg eax, ebx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x164], eax
mov al, byte [ebp - 0x170]
mov byte [ebp - 0x160], al
mov ecx, dword [ebp - 0x174]
mov byte [ebp - 4], 0xa
test al, al
je 0x42b8c3
test ecx, ecx
je 0x42b8c3
mov eax, dword [ebp - 0x178]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x174]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov dword [ebp - 0x178], 0
cmp dword [ebp - 0x194], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 4
je 0x42b9fb
push dword [ebp - 0x190]
call fcn.0047f552
mov ebx, dword [ebp - 0x1a4]
add esp, 4
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x16c]
push eax
push esi
lea eax, [ebp - 0x17c]
push eax
push dword [ebx]
push dword [ebp - 0x184]
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x42b700
mov edi, dword [ebp - 0x1a8]
test edi, edi
je 0x42b94d
cmp dword [ebp - 0x18c], 1
setne al
mov byte [edi], al
push esi
call fcn.0047f552
add esp, 4
cmp byte [ebp - 0x160], 0
mov ecx, dword [ebp - 0x164]
mov byte [ebp - 4], 5
je 0x42b985
test ecx, ecx
je 0x42b985
mov eax, dword [ebp - 0x168]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x164]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
cmp byte [ebp - 0x180], 0
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 4], 6
je 0x42b9d4
test ecx, ecx
je 0x42b9d4
mov eax, dword [ebp - 0x188]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x184]
add esp, 8
push ecx
call fcn.0047f552
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047fc61
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x194]
call fcn.00402bd0
push edi
push str.LookupAccountName
lea ecx, [ebp - 0x158]
call fcn.00402910
push 0x5582d8
lea eax, [ebp - 0x158]
push eax
call fcn.00481150
int3