Function at 0x72a62630
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test byte [0x72a765e8], 8
jne 0x72a627c0
mov dword [esp], 0x60
call sym._DllAllocSplMem_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x72a62800
lea esi, [esi]
nop
mov dword [esp + 8], 0
mov dword [esp + 4], 0x72a7c0b8
mov dword [esp], 0x72a7c020
add dword [0x72a7c0b8], 1
call sym._LookupElementSkiplist
test eax, eax
jne 0x72a62680
mov eax, dword [0x72a7c0b8]
lea edx, [eax - 1]
cmp edx, 0x1869e
ja 0x72a627a0
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x14], 1
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x54], 8
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym._AllocSplStr_4
sub esp, 4
mov dword [ebx + 0x34], eax
mov dword [esp], str.Local_Downlevel_Document
call sym._AllocSplStr_4
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x14]
sub esp, 4
mov dword [esp], eax
call sym._DuplicateDevMode
mov dword [ebx + 0x5c], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call sym._GetSystemTime_4
mov dword [ebp - 0x20], 0x101
sub esp, 4
mov dword [esp], 0x202
call sym._DllAllocSplMem_4
lea edx, [ebp - 0x20]
sub esp, 4
mov dword [ebx + 0x28], eax
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetUserNameW_8
sub esp, 8
test eax, eax
je 0x72a628e4
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sym._AllocSplStr_4
mov dword [ebx + 0x2c], eax
sub esp, 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._RpcBindingServerFromClient_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x72a62860
test byte [0x72a765e8], 2
je 0x72a627b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RpcBindingServerFromClient_failed_with_status__lu__n
mov dword [esp + 0x10], 0x13b
jmp 0x72a6290c
test byte [0x72a765e8], 2
jne 0x72a628a2
mov edi, 8
mov dword [esp], ebx
call sym._DllFreeSplMem_4
sub esp, 4
jmp 0x72a62812
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.CreateJob__p__n
mov dword [esp + 0x10], 0x10e
mov dword [esp + 0xc], str.CreateJob
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x72a6265e
mov edi, 8
test byte [0x72a765e8], 2
jne 0x72a62935
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x72a62827
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sym._RpcStringFreeW_4
sub esp, 4
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x72a6283c
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._RpcStringFreeW_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x72a62851
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._RpcBindingFree_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RpcBindingToStringBindingW_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x72a62970
test byte [0x72a765e8], 2
je 0x72a627b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RpcBindingToStringBindingW_failed_with_status__lu__n
mov dword [esp + 0x10], 0x142
jmp 0x72a6290c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.Job_ID__lu_isnt_valid__n
mov dword [esp + 0x10], 0x55
mov dword [esp + 0xc], str._GetNextJobID
mov dword [esp + 8], 0x72a77301
mov edi, 8
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a627b2
call sym._GetLastError_0
mov edi, eax
test byte [0x72a765e8], 2
je 0x72a627b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.GetUserNameW_failed_with_error__lu__n
mov dword [esp + 0x10], 0x130
mov dword [esp + 0xc], str.CreateJob
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a627b2
mov dword [esp + 0x14], 0x72a77455
mov dword [esp + 0x10], 0x115
mov dword [esp + 0xc], str.CreateJob
mov dword [esp + 8], 0x72a77301
mov dword [esp + 4], 0x72a765e8
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a62812
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._RpcStringBindingParseW_24
sub esp, 0x18
mov edi, eax
test eax, eax
je 0x72a629d1
test byte [0x72a765e8], 2
je 0x72a627b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RpcStringBindingParseW_failed_with_status__lu__n
mov dword [esp + 0x10], 0x149
jmp 0x72a6290c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea edx, [eax + eax + 4]
mov dword [esp], edx
mov dword [ebp - 0x24], edx
call sym._DllAllocSplMem_4
mov edx, 0x5c
mov dword [ebx + 0x58], eax
sub esp, 4
mov word [eax], dx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub edx, 2
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x58]
add eax, 2
mov dword [esp], eax
call sym._memmove
mov dword [esp + 4], ebx
mov dword [esp], 0x72a7c020
call sym._InsertElementSkiplist
test eax, eax
jne 0x72a62a60
test byte [0x72a765e8], 2
je 0x72a627ad
mov eax, dword [ebx]
mov dword [esp + 0x14], str.InsertElementSkiplist_failed_for_job__lu_for_the_GlobalJobList__n
mov dword [esp + 0x10], 0x156
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.CreateJob
jmp 0x72a628be
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0xc]
add eax, 0x28
mov dword [esp], eax
call sym._InsertTailElementSkiplist
test eax, eax
je 0x72a62a81
or byte [esi], 1
mov dword [esi + 0xc], ebx
jmp 0x72a62812
test byte [0x72a765e8], 2
je 0x72a627ad
mov eax, dword [ebx]
mov dword [esp + 0x14], str.InsertTailElementSkiplist_failed_for_job__lu_for_the_Printers_Job_List__n
mov dword [esp + 0x10], 0x15f
mov dword [esp + 0x18], eax
jmp 0x72a62a50