Function at 0x438703
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469df3
mov eax, dword fs:[0]
push eax
mov eax, 0x129c
call fcn.00454390
mov eax, dword [0x4add60]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x12a8], eax
mov edi, ecx
mov dword [ebp - 0x1294], ebx
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00413a25
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov esi, 0x104
lea ecx, [ebp - 0x12a0]
cmp dword [eax], ebx
je 0x43877a
push str.SYSTEM
call fcn.00401356
jmp 0x4387a1
lea eax, [ebp - 0x129c]
push eax
push esi
mov dword [ebp - 0x129c], esi
call fcn.0040163a
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x12a0]
call fcn.00409da3
push dword [ebp - 0x12a8]
lea ecx, [ebp - 0x12a4]
call fcn.00401326
lea eax, [ebp - 0x12a0]
push eax
lea eax, [ebp - 0x12a4]
push eax
mov byte [ebp - 4], 1
call fcn.00438b83
pop ecx
pop ecx
cmp eax, ebx
je 0x438807
mov ecx, dword [ebp - 0x12a4]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x12a0]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
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.0044da13
leave
ret
mov eax, dword [ebp - 0x12a4]
cmp dword [eax - 0xc], ebx
je 0x438b44
mov eax, dword [ebp - 0x12a0]
cmp dword [eax - 0xc], ebx
je 0x438b44
call fcn.0043706b
mov dword [ebp - 0x1294], eax
cmp eax, ebx
je 0x438b24
xor eax, eax
push 0x206
mov word [ebp - 0x1290], ax
lea eax, [ebp - 0x128e]
push ebx
push eax
call fcn.0044e740
add esp, 0xc
push 0xc34
lea eax, [ebp - 0x1088]
push ebx
push eax
call fcn.0044e740
add esp, 0xc
push dword [ebp - 0x12a4]
mov eax, esi
lea edx, [ebp - 0x1290]
call fcn.00412171
cmp eax, ebx
mov dword [ebp - 0x129c], eax
jge 0x4388eb
push str.failed_to_copy_command_line_into_SM:
lea ecx, [ebp - 0x1294]
call fcn.004012e2
mov byte [ebp - 4], 2
push dword [ebp - 0x129c]
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x1294]
push eax
push 2
call fcn.00410886
mov ecx, dword [ebp - 0x1294]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x12a4]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x12a0]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, ebx
jmp 0x4387ed
lea eax, [ebp - 0x1290]
push eax
lea ecx, [ebp - 0x1298]
call fcn.004012e2
push str.___command_line:
lea ecx, [ebp - 0x1294]
mov byte [ebp - 4], 3
call fcn.004012e2
push ebx
lea eax, [ebp - 0x1298]
push eax
lea eax, [ebp - 0x1294]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.00410886
mov ecx, dword [ebp - 0x1294]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1298]
add ecx, 0xfffffff0
call fcn.004017ba
push dword [edi]
mov eax, esi
lea edx, [ebp - 0x1088]
call fcn.00412171
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x1294]
call fcn.004012e2
push str.___ARM_update_folder:
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 5
call fcn.004012e2
push ebx
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1298]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00410886
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1294]
add ecx, 0xfffffff0
call fcn.004017ba
push dword [ebp - 0x12a0]
mov eax, esi
lea edx, [ebp - 0xe7c]
call fcn.00412171
lea eax, [ebp - 0x12a8]
push eax
mov dword [ebp - 0x12a8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp eax, ebx
je 0x438a7a
mov edx, dword [ebp - 0x12a8]
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
mov dword [ebp - 0xe80], edx
call fcn.0044e6e7
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1294]
call fcn.004012e2
push str.___session_id:
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 7
call fcn.004012e2
push ebx
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1298]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.00410886
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1294]
jmp 0x438ab0
push str.___failed_to_get_session_id:
lea ecx, [ebp - 0x1298]
call fcn.004012e2
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1298]
push eax
push 1
call fcn.00410d56
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1298]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [ebp - 0x1290]
push eax
lea edi, [ebp - 0x450]
call fcn.0042dfc5
pop ecx
mov dword [ebp - 0x1294], eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x129c]
call fcn.004012e2
mov eax, edi
push eax
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 0xa
call fcn.004012e2
mov byte [ebp - 4], 0xb
push dword [ebp - 0x40]
lea eax, [ebp - 0x129c]
push eax
lea eax, [ebp - 0x1298]
push eax
push 1
call fcn.00410886
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
jmp 0x438b6a
push str.unable_to_create_SM
lea ecx, [ebp - 0x129c]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x129c]
push eax
mov byte [ebp - 4], 0xc
push 2
jmp 0x438b62
push str.Empty_Command_Line_or_User_Name
lea ecx, [ebp - 0x129c]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x129c]
push eax
mov byte [ebp - 4], 0xd
push 1
call fcn.00410d56
add esp, 0xc
mov ecx, dword [ebp - 0x129c]
add ecx, 0xfffffff0
call fcn.004017ba
mov ebx, dword [ebp - 0x1294]
jmp 0x4388c8