Function at 0x4458d4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ddd0
mov eax, dword fs:[0]
push eax
mov eax, 0x1494
call fcn.00464ff0
mov eax, dword [0x4dd554]
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.0044afe1
push eax
lea ecx, [ebp - 0x1498]
call fcn.00402824
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x44593d
push str.SYSTEM
lea ecx, [ebp - 0x1498]
call fcn.004027df
jmp 0x44596f
lea eax, [ebp - 0x1494]
mov ecx, 0x104
push eax
mov dword [ebp - 0x1494], ecx
push ecx
lea ecx, [ebp - 0x1498]
call fcn.00402b5d
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1498]
call fcn.004097d8
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402d2a
add eax, 0x10
pop ecx
mov dword [ebp - 0x149c], eax
lea ecx, [ebp - 0x149c]
mov byte [ebp - 4], 1
call fcn.00445d7a
mov edi, dword [ebp - 0x1498]
test eax, eax
jne 0x445a2f
mov esi, dword [ebp - 0x149c]
cmp dword [esi - 0xc], eax
je 0x445d42
cmp dword [edi - 0xc], eax
je 0x445d42
call fcn.00444344
mov ebx, eax
test ebx, ebx
je 0x445d27
push 0x1034
lea eax, [ebp - 0x1488]
push 0
push eax
call fcn.00466990
pop ecx
pop ecx
push esi
push ecx
mov edx, 0x100
lea ecx, [ebp - 0x1488]
call fcn.0040d4e4
mov ebx, eax
test ebx, ebx
jns 0x445a63
push str.failed_to_copy_command_line_into_SM:
lea ecx, [ebp - 0x148c]
call fcn.0040279b
push ebx
lea eax, [ebp - 0x149c]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x148c]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x148c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov esi, dword [ebp - 0x149c]
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00402def
lea ecx, [edi - 0x10]
call fcn.00402def
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.0046486a
leave
ret
lea eax, [ebp - 0x1488]
push eax
lea ecx, [ebp - 0x1490]
call fcn.0040279b
push str.SM_command_line:
lea ecx, [ebp - 0x148c]
mov byte [ebp - 4], 3
call fcn.0040279b
push 0
lea eax, [ebp - 0x1490]
mov byte [ebp - 4], 4
push eax
push 2
lea edx, [ebp - 0x148c]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x148c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1490]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, dword [ebp - 0x14a0]
mov ebx, 0x82
push ecx
mov edx, ebx
push dword [eax]
push ecx
lea ecx, [ebp - 0x1088]
call fcn.0040d4e4
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x148c]
call fcn.0040279b
push str.SM_ARM_update_folder:
lea ecx, [ebp - 0x1490]
mov byte [ebp - 4], 5
call fcn.0040279b
push 0
lea eax, [ebp - 0x148c]
mov byte [ebp - 4], 6
push eax
push 2
lea edx, [ebp - 0x1490]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148c]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, dword [ebp + 8]
mov edx, ebx
push ecx
push dword [eax]
push ecx
lea ecx, [ebp - 0xc74]
call fcn.0040d4e4
lea eax, [ebp - 0xc74]
push eax
lea ecx, [ebp - 0x148c]
call fcn.0040279b
push str.SM_manifest_path:
lea ecx, [ebp - 0x1490]
mov byte [ebp - 4], 7
call fcn.0040279b
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0x148c]
push eax
push 2
lea edx, [ebp - 0x1490]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148c]
add ecx, 0xfffffff0
call fcn.00402def
push ecx
push edi
push ecx
mov edx, ebx
lea ecx, [ebp - 0xe7c]
call fcn.0040d4e4
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 0x445c7c
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.0046c6cf
add esp, 0xc
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x148c]
push eax
call fcn.0040279b
push str.SM_session_id:
lea ecx, [ebp - 0x1490]
mov byte [ebp - 4], 9
call fcn.0040279b
push 0
lea eax, [ebp - 0x148c]
mov byte [ebp - 4], 0xa
push eax
push 2
lea edx, [ebp - 0x1490]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov edi, dword [ebp - 0x1498]
jmp 0x445cb8
push str.SM_failed_to_get_session_id:
lea ecx, [ebp - 0x1490]
call fcn.0040279b
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.00413f25
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x1488]
call fcn.0040d6f6
mov ebx, eax
lea ecx, [ebp - 0x148c]
lea eax, [ebp - 0x248]
push eax
call fcn.0040279b
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x1490]
call fcn.0040279b
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.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x148c]
jmp 0x445d6d
push str.Unable_to_create_SM
lea ecx, [ebp - 0x1494]
call fcn.0040279b
push 0
push 2
mov byte [ebp - 4], 0xe
pop ecx
jmp 0x445d5b
push str.Empty_Command_Line_or_User_Name
lea ecx, [ebp - 0x1494]
call fcn.0040279b
xor ecx, ecx
mov byte [ebp - 4], 0xf
push 0
inc ecx
lea edx, [ebp - 0x1494]
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x1494]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x445a37