Function at 0x44a0c2
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2f90
mov eax, dword fs:[0]
push eax
mov eax, 0x1494
call fcn.00469840
mov eax, dword [0x510554]
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.0044f841
push eax
lea ecx, [ebp - 0x1498]
call fcn.00402899
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x44a12b
push str.SYSTEM
lea ecx, [ebp - 0x1498]
call fcn.0040286d
jmp 0x44a15d
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.0040a128
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.0044a568
mov edi, dword [ebp - 0x1498]
test eax, eax
jne 0x44a21d
mov esi, dword [ebp - 0x149c]
cmp dword [esi - 0xc], eax
je 0x44a530
cmp dword [edi - 0xc], eax
je 0x44a530
call fcn.00448aea
mov ebx, eax
test ebx, ebx
je 0x44a515
push 0x1034
lea eax, [ebp - 0x1488]
push 0
push eax
call fcn.00481b00
pop ecx
pop ecx
push esi
push ecx
mov edx, 0x100
lea ecx, [ebp - 0x1488]
call fcn.0040e184
mov ebx, eax
test ebx, ebx
jns 0x44a251
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.004145c0
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.004690ba
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.004145c0
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.0040e184
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.004145c0
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.0040e184
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.004145c0
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.0040e184
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 0x44a46a
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.004889d9
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.004145c0
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 0x44a4a6
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.00414dc6
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.0040e396
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.004145c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1490]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x148c]
jmp 0x44a55b
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 0x44a549
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.00414cf1
pop ecx
mov ecx, dword [ebp - 0x1494]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x44a225