Function at 0x1007f360
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b76df
push eax
mov eax, 0x11f0
mov dword fs:[0], esp
call fcn.100af040
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x1007f42b
cmp dword [esi + 0x1690], ebx
je 0x1007f42b
lea ecx, [esp + 0x1d8]
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXParamBuilderEx::constructor_void_]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1200], ebx
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x68c]
mov edx, dword [eax + 0x688]
push ecx
push edx
push ebx
push ebx
lea ecx, [esp + 0x1e8]
call dword [sym.imp.OOLAPLib.dll_public:_int___thiscall_CMDXParamBuilder::Create_struct___MIDL___MIDL_itf_OpenMD_0000_0075___long_int__struct___MIDL___MIDL_itf_OpenMD_0000_0074___long_int_]
test eax, eax
je 0x1007f414
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x16a8]
lea ecx, [esp + 0x14]
push ebx
push ecx
push eax
lea ecx, [esp + 0x11f0]
mov byte [esp + 0x120c], 1
call dword [sym.imp.OOLAPLib.dll_public:_long_int___thiscall_CMDXParseString::ParseStringForVar_char_const___class_CString___long_int_]
test eax, eax
jge 0x1007f449
lea ecx, [esp + 0x14]
mov byte [esp + 0x1200], bl
call fcn.100ae920
lea ecx, [esp + 0x11e4]
mov dword [esp + 0x1200], 0xffffffff
call fcn.100ae920
mov eax, 0x80004005
mov ecx, dword [esp + 0x11f8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11fc
ret 0xc
lea edx, [esp + 0x24]
mov ecx, esi
push edx
mov dword [esp + 0x28], ebx
call fcn.1007be80
cmp eax, ebx
mov dword [esp + 8], eax
jge 0x1007f48e
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x1200], bl
call fcn.100ae920
lea ecx, [esp + 0x11e4]
mov dword [esp + 0x1200], 0xffffffff
call fcn.100ae920
mov eax, esi
jmp 0x1007f430
lea eax, [esp + 0x48]
lea ecx, [esp + 0xd8]
push eax
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1007f4c2
lea edx, [esp + 0xd8]
push edx
call fcn.100af44e
mov dword [esp + 0x30], eax
push ebp
push edi
push 0xa
lea ecx, [esp + 0x8c]
call fcn.100aea28
push str.oxAttachment
lea ecx, [esp + 0x8c]
mov byte [esp + 0x120c], 2
call sub.MFC42.DLL_CStringList::AddTail_1
push str.oxSignature
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CStringList::AddTail_1
mov ebp, dword [esp + 0x1218]
test ebp, 0x2000
je 0x1007f51c
push 0x100e0368
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CStringList::AddTail_1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ecx
or edi, 0xffffffff
push edx
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.OOLAPLib.dll_long_int___cdecl_SimHelp::GetVersionFromTableStruct_struct_IDbConnect___char_const___long_int___long_int__]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x1007f87f
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x20], ebx
call fcn.1002cae0
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x1007f87f
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x1208], 3
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esp + 0x70]
mov byte [esp + 0x120c], 4
call fcn.100aea28
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
mov ecx, dword [esi + 0x1694]
lea edx, [esp + 0x1c]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x120c], 5
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0x34]
cmp edi, ebx
mov ecx, dword [eax + 0x25d8]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edx
je 0x1007f611
mov eax, edi
mov edi, dword [edi]
add eax, 8
lea ecx, [esp + 0x6c]
push eax
call sub.MFC42.DLL_CStringList::AddTail
cmp edi, ebx
jne 0x1007f5fc
mov eax, dword [esp + 0x1214]
mov ecx, dword [esp + 0x1210]
push ebx
push ebx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
push 2
push ebx
push ebx
lea eax, [esp + 0x74]
push ebx
push eax
call dword [sym.imp.OOLAPLib.dll_long_int___cdecl_SimHelp::BuildSimTableQuery_struct_SimHelp::_StoreTableParamTag_const___struct___MIDL___MIDL_itf_OpenMD_0000_0054___long_int__long_int___long_int__class_CString___unsigned_short_int___long_int__unsigned_short_int___char_const__]
add esp, 0x28
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x1007f837
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push 0x100e09d0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0xa8]
push 1
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xb4], 0x272b
mov word [esp + 0xb8], 3
mov dword [esp + 0xc0], 0x800
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x30]
mov word [esp + 0xd0], bx
call sub.MFC42.DLL_CString::AllocSysString
lea ecx, [esp + 0x10]
mov edi, eax
push ecx
lea ecx, [esp + 0xc4]
push ebx
push ecx
mov eax, dword [esp + 0x20]
mov ecx, ebp
not ecx
mov edx, dword [eax]
and ecx, 0x2000
or ecx, 0x859
push ecx
mov ecx, dword [esp + 0x28]
push 2
push edi
push ecx
push eax
call dword [edx + 0x10]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esp + 0x10], ebx
jl 0x1007f837
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
cmp dword [esp + 0x24], ebx
je 0x1007f820
cmp dword [esp + 0x20], ebx
jle 0x1007f820
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xb0]
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x50]
push 1
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push eax
call dword [edx + 0x48]
cmp dword [esp + 0x10], ebx
jl 0x1007f808
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x1007f808
cmp dword [esp + 0x28], ebx
je 0x1007f808
cmp dword [esp + 0x40], ebx
jle 0x1007f808
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push edx
push ebp
push ecx
lea edx, [esp + 0x94]
lea ecx, [esi + 0x1174]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x1694]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.1007e790
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call dword [ecx + 0x4c]
mov eax, dword [esp + 0x28]
push eax
call edi
mov ecx, dword [esp + 0x48]
push ecx
call edi
cmp dword [esp + 0x10], ebx
jl 0x1007f80c
inc dword [esp + 0x3c]
jmp 0x1007f73d
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.1008b170
add esp, 8
jmp 0x1007f828
mov dword [esp + 0x10], 0x80004005
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 8]
call fcn.1002cb60
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1208], 6
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0x58]
mov byte [esp + 0x1208], 3
call fcn.100ae920
lea ecx, [esp + 0x30]
mov byte [esp + 0x1208], 2
call fcn.100ae920
or edi, 0xffffffff
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
push eax
call fcn.1002cac0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x88]
mov byte [esp + 0x1208], 1
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1208], bl
call fcn.100ae920
lea ecx, [esp + 0x11ec]
mov dword [esp + 0x1208], edi
call fcn.100ae920
pop edi
mov eax, esi
pop ebp
jmp 0x1007f430