Function at 0x47aca0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4b9c
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14c], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x134], esi
mov word [ebx], ax
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x214], 0x4ae248
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14c], 3
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x214]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x218], eax
lea ecx, [ebp - 0x210]
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 4
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
lea eax, [ebp - 0x13c]
push eax
push 0
push esi
mov dword [ebp - 4], 4
push 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x47ae8b
lea eax, [ebp - 0x214]
push str.LookupAccountName_did_not_return_the_SID_size__0x
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
push 0x442c30
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4b23cc
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x47ae57
mov eax, dword [eax]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x17c]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c4e90
lea eax, [ebp - 0x17c]
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
push eax
call sub.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
mov dword [ebp - 0x150], esi
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 7
neg ecx
or ecx, eax
push ecx
call sub.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
mov dword [ebp - 0x160], edi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x140]
push eax
push edi
lea eax, [ebp - 0x13c]
push eax
push esi
push dword [ebp - 0x134]
mov byte [ebp - 4], 8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x47af87
lea eax, [ebp - 0x214]
push str.LookupAccountName_failed__0x
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
push 0x442c30
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4b23cc
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x47af53
mov eax, dword [eax]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c4e90
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
lea eax, [ebp - 0x138]
push eax
push esi
mov dword [ebp - 0x138], 0
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x47b035
lea eax, [ebp - 0x214]
push str.ConvertSidToStringSid_failed__0x
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
push 0x442c30
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4b23cc
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x47b001
mov eax, dword [eax]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x15c]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c4e90
lea eax, [ebp - 0x15c]
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x47b07e
push eax
lea ecx, [ebp - 0x130]
call fcn.0046e780
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00451bb0
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x47b072
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 8
jmp 0x47b140
lea ecx, [ebp - 0x214]
call fcn.00432780
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret