Function at 0x417884
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 0x5670e4
call fcn.00528424
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], ecx
xor eax, eax
lea edx, [ebp - 0x5c]
mov dword [ebx], eax
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x60]
push ecx
push 0
push eax
push 0
push edi
push 0
call sub.ADVAPI32.DLL_LookupAccountNameA
test eax, eax
jne 0x417a00
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
je 0x417a00
mov word [ebp - 0x48], 8
xor edx, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push ecx
inc dword [ebp - 0x3c]
mov edx, edi
lea eax, [ebp - 8]
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x6c]
call fcn.00406a44
push 0
push 0
push 0x406aa0
mov ecx, 1
push 3
mov dword [ebp - 0xc], ecx
push ecx
push 8
push 0
call fcn.005265ac
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x6c]
add esp, 0x1c
mov dword [ebx], eax
mov dl, byte [ebp - 0x68]
mov byte [ebx + 4], dl
xor edx, edx
inc dword [ebp - 0x3c]
mov eax, dword [esi]
push eax
mov dword [ebp - 4], edx
inc dword [ebp - 0x3c]
lea edx, [ebp - 4]
mov eax, 0x1771
call fcn.0051100c
lea ecx, [ebp - 4]
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x74]
call fcn.00406a44
mov ecx, 1
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x18], 0
je 0x41798f
mov eax, dword [ebp - 0x18]
jmp 0x417994
mov eax, 0x566e5c
push eax
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
pop eax
call fcn.0044a7e0
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x3c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005378b8
xor eax, eax
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x417c26
mov ecx, dword [ebp - 0x60]
push ecx
push 0
call sub.KERNEL32.DLL_LocalAlloc
mov dword [ebx], eax
mov eax, dword [ebp - 0x64]
push eax
push 0
call sub.KERNEL32.DLL_LocalAlloc
mov esi, eax
cmp dword [ebx], 0
je 0x417a23
test esi, esi
jne 0x417a97
mov word [ebp - 0x48], 0x20
xor eax, eax
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, 0x1772
inc dword [ebp - 0x3c]
call fcn.0051100c
cmp dword [ebp - 0x1c], 0
je 0x417a49
mov edx, dword [ebp - 0x1c]
jmp 0x417a4e
mov edx, 0x566e5d
push edx
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
pop eax
call fcn.0044a7e0
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005378b8
mov eax, dword [ebx]
test eax, eax
je 0x417a78
push eax
call sub.KERNEL32.DLL_LocalFree
test esi, esi
je 0x417a82
push esi
call sub.KERNEL32.DLL_LocalFree
xor edx, edx
mov dword [ebx], edx
xor eax, eax
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x417c26
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x64]
push ecx
push eax
push esi
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebx]
push ecx
push edi
push 0
call sub.ADVAPI32.DLL_LookupAccountNameA
test eax, eax
jne 0x417c11
mov word [ebp - 0x48], 0x2c
xor eax, eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
push edx
inc dword [ebp - 0x3c]
mov edx, edi
lea eax, [ebp - 0x24]
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x84]
call fcn.00406a44
push 0
push 0
push 0x406aa0
mov ecx, 1
push 3
mov dword [ebp - 0x28], ecx
push ecx
push 8
push 0
call fcn.005265ac
mov dword [ebp - 0x2c], eax
add esp, 0x1c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
mov dword [edx], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x88]
mov cl, byte [ebp - 0x80]
mov byte [edx + 4], cl
inc dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
xor eax, eax
mov ecx, dword [edx]
lea edx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x3c]
mov eax, 0x1773
call fcn.0051100c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x30]
mov ecx, dword [edx]
mov edx, edi
push ecx
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x90]
call fcn.00406a44
mov ecx, 1
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x94]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x34], 0
je 0x417b91
mov eax, dword [ebp - 0x34]
jmp 0x417b96
mov eax, 0x566e5e
push eax
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
pop eax
call fcn.0044a7e0
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005378b8
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_LocalFree
push esi
call sub.KERNEL32.DLL_LocalFree
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x417c26
push esi
call sub.KERNEL32.DLL_LocalFree
mov eax, 1
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret