Function at 0x111668a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e8c96
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push str.CalcUserOrgUnit..._n
mov dword [ebp - 0x440], edi
call fcn.111bd7b0
add esp, 4
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 1
mov dword [ebp - 0x444], 0x200
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x11166aea
lea edx, [ebp - 0x410]
push edx
push str.Processing__s_n
call fcn.111bd7b0
xor esi, esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
mov ebx, dword [sym.imp.MSVCR100.dll_wcsstr]
lea eax, [ebp - 0x410]
push str._OU
push eax
mov dword [ebp - 4], esi
call ebx
add esp, 0x10
cmp eax, esi
je 0x11166a35
lea edi, [eax + 8]
push str._OU
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x1116697b
push str._DC
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x11166a2f
movzx ecx, word [esi]
xor edx, edx
xor eax, eax
mov word [ebp - 0x42c], ax
mov eax, edi
mov word [esi], dx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x418], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x111669a7
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x42c]
call fcn.11004e40
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.11071f00
cmp dword [ebp - 0x418], 8
mov byte [ebp - 4], 0
jb 0x111669f5
mov edx, dword [ebp - 0x42c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov cx, word [ebp - 0x448]
xor eax, eax
push str._OU
push esi
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
mov word [esi], cx
call ebx
add esp, 8
test eax, eax
jne 0x11166952
mov edi, dword [ebp - 0x440]
mov esi, dword [ebp - 0x438]
mov eax, dword [ebp - 0x43c]
cmp esi, eax
je 0x11166a80
add esi, 0xffffffe4
jmp 0x11166a50
push 0x1121bb44
mov ecx, edi
call fcn.1113dca0
cmp dword [esi + 0x14], 8
jb 0x11166a66
mov eax, dword [esi]
jmp 0x11166a68
mov eax, esi
push eax
mov ecx, edi
call fcn.1113dca0
mov eax, dword [ebp - 0x43c]
sub esi, 0x1c
lea edx, [esi + 0x1c]
cmp edx, eax
jne 0x11166a50
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x11166ad8
lea ecx, [ebp - 0x43c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x43c]
cmp esi, ebx
je 0x11166acd
lea esp, [esp]
lea eax, [ebp - 0x430]
push esi
push eax
call fcn.110a6710
add esi, 0x1c
add esp, 8
cmp esi, ebx
jne 0x11166ab0
mov esi, dword [ebp - 0x43c]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], ecx
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
jne 0x11166b0d
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [edi + 0xc]
push ecx
push str.CalcUserOrgUnit_ret__s_n
call fcn.111bd7b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret