Function at 0x1002753c
Capabilities:
Get user security identifier

Disassembly:
push 0x20
mov eax, 0x1005b357
call fcn.100596da
xor esi, esi
mov dword [ebp - 0x14], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], esi
jne 0x1002758c
push str.Empty_user_name_specified.
push dword [0x100ab5b4]
mov ecx, 0x100ab5ac
call sub.mfc90u.dll_CStringArray::SetAtGrow
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
call fcn.100597b2
ret 8
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x100275c7
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x18]
call fcn.100279a6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov ecx, edi
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
cmp dword [eax - 0xc], esi
jne 0x100275e7
push esi
lea ecx, [ebp - 0x24]
call dword [0x1006ce70]
mov dword [ebp - 0x14], ebx
jmp 0x100275ea
lea eax, [ebp - 0x10]
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push esi
push dword [ebp + 8]
push eax
call ebx
test byte [ebp - 0x14], 1
mov edi, eax
je 0x1002761b
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp edi, esi
jne 0x1002778c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10027660
push eax
call fcn.10027a15
mov edi, eax
cmp edi, esi
je 0x10027652
push edi
push dword [0x100ab5b4]
mov ecx, 0x100ab5ac
call sub.mfc90u.dll_CStringArray::SetAtGrow
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x10027570
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10027694
push str.Failed_to_allocate_memory_for_SID_buffer.
push dword [0x100ab5b4]
mov ecx, 0x100ab5ac
call sub.mfc90u.dll_CStringArray::SetAtGrow
jmp 0x10027652
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push 8
call esi
push eax
call edi
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x100276ce
push str.Failed_to_allocate_memory_for_domain_name_buffer.
push dword [0x100ab5b4]
mov ecx, 0x100ab5ac
call sub.mfc90u.dll_CStringArray::SetAtGrow
push dword [ebp - 0x18]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10027652
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x100276e8
push 0
lea ecx, [ebp - 0x24]
call dword [0x1006ce70]
or dword [ebp - 0x14], 2
jmp 0x100276eb
lea eax, [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x18]
push dword [ebp + 8]
push eax
call ebx
test byte [ebp - 0x14], 2
mov ebx, eax
je 0x10027714
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test ebx, ebx
jne 0x10027780
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10027a15
mov edi, eax
test edi, edi
je 0x10027742
push edi
push dword [0x100ab5b4]
mov ecx, 0x100ab5ac
call sub.mfc90u.dll_CStringArray::SetAtGrow
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push dword [ebp - 0x2c]
push 0
call esi
push eax
call edi
xor esi, esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
jmp 0x10027584
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x18]
jmp 0x1002775e