Function at 0x44965c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b23b0
mov eax, dword fs:[0]
push eax
mov eax, 0x1494
call fcn.00468dc0
mov eax, dword [0x50e554]
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 dword [ebp - 0x14a0], edx
mov esi, ecx
xor ebx, ebx
call fcn.0044edd1
push eax
lea ecx, [ebp - 0x1498]
call fcn.00402899
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x4496c5
push str.SYSTEM
lea ecx, [ebp - 0x1498]
call fcn.0040286d
jmp 0x4496f7
lea eax, [ebp - 0x1494]
mov ecx, 0x104
push eax
mov dword [ebp - 0x1494], ecx
push ecx
lea ecx, [ebp - 0x1498]
call fcn.00402bd2
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1498]
call fcn.0040a0f8
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x149c], eax
lea ecx, [ebp - 0x149c]
mov byte [ebp - 4], 1
call fcn.00449b02
mov edi, dword [ebp - 0x1498]
test eax, eax
jne 0x4497b7
mov esi, dword [ebp - 0x149c]
cmp dword [esi - 0xc], eax
je 0x449aca
cmp dword [edi - 0xc], eax
je 0x449aca
call fcn.00448084
mov ebx, eax
test ebx, ebx
je 0x449aaf
push 0x1034
lea eax, [ebp - 0x1488]
push 0
push eax
call fcn.00481070
pop ecx
pop ecx
push esi
push ecx
mov edx, 0x100
lea ecx, [ebp - 0x1488]
call fcn.0040e134
mov ebx, eax
test ebx, ebx
jns 0x4497eb
push str.failed_to_copy_command_line_into_SM:
lea ecx, [ebp - 0x148c]
call fcn.00402829
push ebx
lea eax, [ebp - 0x149c]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x148c]
pop ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x148c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x149c]
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
mov eax, ebx
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.0046863a
leave
ret
lea eax, [ebp - 0x1488]
push eax
lea ecx, [ebp - 0x1490]
call fcn.00402829
push str.SM_command_line:
lea ecx, [ebp - 0x148c]
mov byte [ebp - 4], 3
call fcn.00402829
push 0
lea eax, [ebp - 0x1490]
mov byte [ebp - 4], 4
push eax
push 2
lea edx, [ebp - 0x148c]
pop ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x148c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1490]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, dword [ebp - 0x14a0]
mov ebx, 0x82
push ecx
mov edx, ebx
push dword [eax]
push ecx
lea ecx, [ebp - 0x1088]
call fcn.0040e134
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x148c]
call fcn.00402829
push str.SM_ARM_update_folder:
lea ecx, [ebp - 0x1490]
mov byte [ebp - 4], 5
call fcn.00402829
push 0
lea eax, [ebp - 0x148c]
mov byte [ebp - 4], 6
push eax
push 2
lea edx, [ebp - 0x1490]
pop ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148c]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, dword [ebp + 8]
mov edx, ebx
push ecx
push dword [eax]
push ecx
lea ecx, [ebp - 0xc74]
call fcn.0040e134
lea eax, [ebp - 0xc74]
push eax
lea ecx, [ebp - 0x148c]
call fcn.00402829
push str.SM_manifest_path:
lea ecx, [ebp - 0x1490]
mov byte [ebp - 4], 7
call fcn.00402829
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0x148c]
push eax
push 2
lea edx, [ebp - 0x1490]
pop ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148c]
add ecx, 0xfffffff0
call fcn.00402e64
push ecx
push edi
push ecx
mov edx, ebx
lea ecx, [ebp - 0xe7c]
call fcn.0040e134
and dword [ebp - 0x1494], 0
lea eax, [ebp - 0x1494]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x449a04
mov edx, dword [ebp - 0x1494]
lea edi, [ebp - 0x38]
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0xe80], edx
rep stosd dword es:[edi], eax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
call fcn.00487f49
add esp, 0xc
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x148c]
push eax
call fcn.00402829
push str.SM_session_id:
lea ecx, [ebp - 0x1490]
mov byte [ebp - 4], 9
call fcn.00402829
push 0
lea eax, [ebp - 0x148c]
mov byte [ebp - 4], 0xa
push eax
push 2
lea edx, [ebp - 0x1490]
pop ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x1498]
jmp 0x449a40
push str.SM_failed_to_get_session_id:
lea ecx, [ebp - 0x1490]
call fcn.00402829
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
lea edx, [ebp - 0x1490]
push eax
inc ecx
call fcn.00414d76
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x1488]
call fcn.0040e346
mov ebx, eax
lea ecx, [ebp - 0x148c]
lea eax, [ebp - 0x248]
push eax
call fcn.00402829
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x1490]
call fcn.00402829
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x148c]
push dword [ebp - 0x40]
xor ecx, ecx
lea edx, [ebp - 0x1490]
push eax
inc ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x148c]
jmp 0x449af5
push str.Unable_to_create_SM
lea ecx, [ebp - 0x1494]
call fcn.00402829
push 0
push 2
mov byte [ebp - 4], 0xe
pop ecx
jmp 0x449ae3
push str.Empty_Command_Line_or_User_Name
lea ecx, [ebp - 0x1494]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 0xf
push 0
inc ecx
lea edx, [ebp - 0x1494]
call fcn.00414ca1
pop ecx
mov ecx, dword [ebp - 0x1494]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4497bf