Function at 0x1002cf0b
Capabilities:
Get user security identifier

Disassembly:
push 0x20
mov eax, 0x1006d844
call fcn.1006c23a
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 0x1002cf5b
push str.Empty_user_name_specified.
push dword [0x100d2fb4]
mov ecx, 0x100d2fac
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.1006c312
ret 8
lea ecx, [ebp - 0x10]
call dword [0x10085f84]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x1002cf96
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x18]
call fcn.1002d375
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [0x10085f74]
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 0x1002cfb6
push esi
lea ecx, [ebp - 0x24]
call dword [0x10085f70]
mov dword [ebp - 0x14], ebx
jmp 0x1002cfb9
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 0x1002cfea
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 0x1002d15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1002d02f
push eax
call fcn.1002d3e4
mov edi, eax
cmp edi, esi
je 0x1002d021
push edi
push dword [0x100d2fb4]
mov ecx, 0x100d2fac
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 0x1002cf3f
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 0x1002d063
push str.Failed_to_allocate_memory_for_SID_buffer.
push dword [0x100d2fb4]
mov ecx, 0x100d2fac
call sub.mfc90u.dll_CStringArray::SetAtGrow
jmp 0x1002d021
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 0x1002d09d
push str.Failed_to_allocate_memory_for_domain_name_buffer.
push dword [0x100d2fb4]
mov ecx, 0x100d2fac
call sub.mfc90u.dll_CStringArray::SetAtGrow
push dword [ebp - 0x18]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1002d021
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x1002d0b7
push 0
lea ecx, [ebp - 0x24]
call dword [0x10085f70]
or dword [ebp - 0x14], 2
jmp 0x1002d0ba
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 0x1002d0e3
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 0x1002d14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1002d3e4
mov edi, eax
test edi, edi
je 0x1002d111
push edi
push dword [0x100d2fb4]
mov ecx, 0x100d2fac
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 0x1002cf53
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x18]
jmp 0x1002d12d