Function at 0x42b690
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cb0d
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x56c36c]
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.0042a7b0
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.0042a7b0
push 0x40
mov byte [ebp - 4], 3
mov dword [ebp - 0x17c], 0x40
mov dword [ebp - 0x16c], 0x20
mov byte [ebp - 0x159], 1
call fcn.0047fc8b
push dword [ebx]
mov esi, eax
call fcn.0047f232
mov eax, dword [ebp - 0x16c]
add esp, 8
mov dword [ebx], esi
mov edx, 2
test eax, eax
je 0x42b7a8
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047fc8b
add esp, 4
mov esi, eax
jmp 0x42b7aa
xor esi, esi
push 0
call fcn.0047f232
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 0x42ba2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x159], 0
mov edi, eax
je 0x42b88e
cmp edi, 0x7a
jne 0x42b88e
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x42b825
push eax
call fcn.0047fc8b
add esp, 4
mov edi, eax
jmp 0x42b827
xor edi, edi
push dword [ebx]
call fcn.0047f232
mov eax, dword [ebp - 0x16c]
add esp, 4
mov dword [ebx], edi
test eax, eax
je 0x42b872
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047fc8b
add esp, 4
mov edi, eax
push esi
call fcn.0047f232
mov esi, edi
mov byte [ebp - 0x159], 0
mov dword [ebp - 0x198], esi
jmp 0x42b9f2
push esi
xor edi, edi
call fcn.0047f232
mov esi, edi
mov byte [ebp - 0x159], 0
mov dword [ebp - 0x198], esi
jmp 0x42b9f2
cmp edi, 0x534
jne 0x42baf6
cmp dword [ebp - 0x164], 0
jne 0x42baf6
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.0042a7b0
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 0x42b95b
test ecx, ecx
je 0x42b95b
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.0047f232
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 0x42b9b3
test ecx, ecx
je 0x42b9b3
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.0047f232
add esp, 4
mov dword [ebp - 0x178], 0
cmp dword [ebp - 0x194], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 4
je 0x42baeb
push dword [ebp - 0x190]
call fcn.0047f232
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 0x42b7f0
mov edi, dword [ebp - 0x1a8]
test edi, edi
je 0x42ba3d
cmp dword [ebp - 0x18c], 1
setne al
mov byte [edi], al
push esi
call fcn.0047f232
add esp, 4
cmp byte [ebp - 0x160], 0
mov ecx, dword [ebp - 0x164]
mov byte [ebp - 4], 5
je 0x42ba75
test ecx, ecx
je 0x42ba75
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.0047f232
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 0x42bac4
test ecx, ecx
je 0x42bac4
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.0047f232
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.0047f941
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 0x558100
lea eax, [ebp - 0x158]
push eax
call fcn.00480e30
int3