Function at 0x467fa0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c89d
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x613384]
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.00481da0
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.00481da0
push 0x40
mov byte [ebp - 4], 3
mov dword [ebp - 0x17c], 0x40
mov dword [ebp - 0x16c], 0x20
mov byte [ebp - 0x159], 1
call fcn.00544c6b
push dword [ebx]
mov esi, eax
call fcn.0054454b
mov eax, dword [ebp - 0x16c]
add esp, 8
mov dword [ebx], esi
mov edx, 2
test eax, eax
je 0x4680b8
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00544c6b
add esp, 4
mov esi, eax
jmp 0x4680ba
xor esi, esi
push 0
call fcn.0054454b
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 0x46833d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x159], 0
mov edi, eax
je 0x46819e
cmp edi, 0x7a
jne 0x46819e
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x468135
push eax
call fcn.00544c6b
add esp, 4
mov edi, eax
jmp 0x468137
xor edi, edi
push dword [ebx]
call fcn.0054454b
mov eax, dword [ebp - 0x16c]
add esp, 4
mov dword [ebx], edi
test eax, eax
je 0x468182
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00544c6b
add esp, 4
mov edi, eax
push esi
call fcn.0054454b
mov esi, edi
mov byte [ebp - 0x159], 0
mov dword [ebp - 0x198], esi
jmp 0x468302
push esi
xor edi, edi
call fcn.0054454b
mov esi, edi
mov byte [ebp - 0x159], 0
mov dword [ebp - 0x198], esi
jmp 0x468302
cmp edi, 0x534
jne 0x468406
cmp dword [ebp - 0x164], 0
jne 0x468406
push 0xffffffffffffffff
push dword [ebp - 0x19c]
call fcn.00448d00
add esp, 8
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
push 0
push 0x5c
lea ecx, [ebp - 0x194]
call fcn.00468cb0
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.00481da0
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 0x46826b
test ecx, ecx
je 0x46826b
mov eax, dword [ebp - 0x168]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x164]
add esp, 8
push ecx
call fcn.0054454b
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 0x4682c3
test ecx, ecx
je 0x4682c3
mov eax, dword [ebp - 0x178]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x174]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x178], 0
cmp dword [ebp - 0x194], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 4
je 0x4683fb
push dword [ebp - 0x190]
call fcn.0054454b
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 0x468100
mov edi, dword [ebp - 0x1a8]
test edi, edi
je 0x46834d
cmp dword [ebp - 0x18c], 1
setne al
mov byte [edi], al
push esi
call fcn.0054454b
add esp, 4
cmp byte [ebp - 0x160], 0
mov ecx, dword [ebp - 0x164]
mov byte [ebp - 4], 5
je 0x468385
test ecx, ecx
je 0x468385
mov eax, dword [ebp - 0x168]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x164]
add esp, 8
push ecx
call fcn.0054454b
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 0x4683d4
test ecx, ecx
je 0x4683d4
mov eax, dword [ebp - 0x188]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x184]
add esp, 8
push ecx
call fcn.0054454b
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.00544c5a
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x194]
call fcn.004078d0
push edi
push str.LookupAccountName
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3