Function at 0x4059e0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f2d2
mov eax, dword fs:[0]
push eax
sub esp, 0x8e8
mov eax, dword [0x482524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x487a78]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x405ad7
push edi
call fcn.00404ac0
test al, al
jne 0x405ab9
push edi
mov edx, str.GetRegRoot:
lea ecx, [ebp - 0x84c]
call fcn.00406990
mov esi, eax
add esp, 4
cmp edi, esi
je 0x405a72
mov ecx, edi
call fcn.004043b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x838]
cmp edx, 8
jb 0x405ab2
mov ecx, dword [ebp - 0x84c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405aa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f65
push edx
push ecx
call fcn.00438535
add esp, 8
xor al, al
jmp 0x405f48
mov eax, dword [0x487a78]
test eax, eax
jne 0x405ad7
push 0x1e
push str.Service_start_account_is_empty
mov ecx, edi
call fcn.00404010
xor al, al
jmp 0x405f48
cmp dword [0x487a7c], 8
mov ecx, 0x487a68
cmovae ecx, dword [0x487a68]
cmp eax, 0xb
jne 0x405b14
push eax
mov edx, str.LocalSystem
call fcn.00402450
add esp, 4
test eax, eax
jne 0x405b14
push 8
push str.S_1_5_18
mov ecx, esi
call fcn.00404010
jmp 0x405f46
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0043c350
add esp, 0xc
mov dword [ebp - 0x82c], 0x44
cmp dword [0x487a7c], 8
lea ecx, [ebp - 0x830]
mov eax, 0x487a68
mov dword [ebp - 0x828], 0x3e8
cmovae eax, dword [0x487a68]
push ecx
lea ecx, [ebp - 0x828]
push ecx
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x405d3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x8dc]
call fcn.00404170
mov esi, eax
push 0x487a68
mov edx, str.LookupAccountName_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x84c]
call fcn.00406990
push str.__failed_with_error
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x87c]
call fcn.00402310
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x864]
call fcn.00402290
add esp, 0xc
mov ecx, edi
push eax
call fcn.00402970
mov edx, dword [ebp - 0x850]
cmp edx, 8
jb 0x405c20
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405c16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f6a
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x868]
xor eax, eax
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 7
mov word [ebp - 0x864], ax
cmp edx, 8
jb 0x405c7d
mov ecx, dword [ebp - 0x87c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405c73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f6f
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x838]
xor eax, eax
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 7
mov word [ebp - 0x87c], ax
cmp edx, 8
jb 0x405cda
mov ecx, dword [ebp - 0x84c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405cd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f74
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x8c8]
xor eax, eax
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 7
mov word [ebp - 0x84c], ax
cmp edx, 8
jb 0x405ab2
mov ecx, dword [ebp - 0x8dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405aa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f79
jmp 0x405aa8
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x405f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x8f4]
call fcn.00404170
mov esi, eax
push 0x487a68
mov edx, str.ConvertSidToStringSid_
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x8c4]
call fcn.00406990
push str.__failed_with_error
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8ac]
call fcn.00402310
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x894]
call fcn.00402290
add esp, 0xc
mov ecx, edi
push eax
call fcn.00402970
mov edx, dword [ebp - 0x880]
cmp edx, 8
jb 0x405e01
mov ecx, dword [ebp - 0x894]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405df7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f7e
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x898]
xor eax, eax
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x880], 7
mov word [ebp - 0x894], ax
cmp edx, 8
jb 0x405e5e
mov ecx, dword [ebp - 0x8ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405e54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f83
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x8b0]
xor eax, eax
mov dword [ebp - 0x89c], 0
mov dword [ebp - 0x898], 7
mov word [ebp - 0x8ac], ax
cmp edx, 8
jb 0x405ebb
mov ecx, dword [ebp - 0x8c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405eb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f88
push edx
push ecx
call fcn.00438535
add esp, 8
mov edx, dword [ebp - 0x8e0]
xor eax, eax
mov dword [ebp - 0x8b4], 0
mov dword [ebp - 0x8b0], 7
mov word [ebp - 0x8c4], ax
cmp edx, 8
jb 0x405ab2
mov ecx, dword [ebp - 0x8f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405aa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f8d
jmp 0x405aa8
mov edx, dword [ebp - 0x834]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f22
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00404010
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438524
mov esp, ebp
pop ebp
ret 8
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
call fcn.004447fc
int3