Function at 0x10038be0
Capabilities:
Get user security identifier

Disassembly:
push 0x20
mov eax, 0x100928a8
call fcn.1008f84a
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 0x10038c30
push str.Empty_user_name_specified.
push dword [0x101175c0]
mov ecx, 0x101175b8
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.1008f922
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 0x10038c6b
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x18]
call fcn.1003904a
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_3]
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 0x10038c8b
push esi
lea ecx, [ebp - 0x24]
call dword [0x100b6094]
mov dword [ebp - 0x14], ebx
jmp 0x10038c8e
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 0x10038cbf
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 0x10038e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10038d04
push eax
call fcn.100390b9
mov edi, eax
cmp edi, esi
je 0x10038cf6
push edi
push dword [0x101175c0]
mov ecx, 0x101175b8
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 0x10038c14
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 0x10038d38
push str.Failed_to_allocate_memory_for_SID_buffer.
push dword [0x101175c0]
mov ecx, 0x101175b8
call sub.mfc90u.dll_CStringArray::SetAtGrow
jmp 0x10038cf6
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 0x10038d72
push str.Failed_to_allocate_memory_for_domain_name_buffer.
push dword [0x101175c0]
mov ecx, 0x101175b8
call sub.mfc90u.dll_CStringArray::SetAtGrow
push dword [ebp - 0x18]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10038cf6
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x10038d8c
push 0
lea ecx, [ebp - 0x24]
call dword [0x100b6094]
or dword [ebp - 0x14], 2
jmp 0x10038d8f
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 0x10038db8
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 0x10038e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100390b9
mov edi, eax
test edi, edi
je 0x10038de6
push edi
push dword [0x101175c0]
mov ecx, 0x101175b8
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 0x10038c28
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x18]
jmp 0x10038e02