Function at 0x434527
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4616cf
mov eax, dword fs:[0]
push eax
mov eax, 0x129c
call fcn.0044d9e0
mov eax, dword [0x4a1d50]
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.004366fe
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00411d53
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov esi, 0x104
lea ecx, [ebp - 0x12a0]
cmp dword [eax], ebx
je 0x43459e
push str.SYSTEM
call fcn.0040137f
jmp 0x4345c5
lea eax, [ebp - 0x129c]
push eax
push esi
mov dword [ebp - 0x129c], esi
call fcn.0040166e
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x12a0]
call fcn.0040946d
push dword [ebp - 0x12a8]
lea ecx, [ebp - 0x12a4]
call fcn.0040134f
lea eax, [ebp - 0x12a0]
push eax
lea eax, [ebp - 0x12a4]
push eax
mov byte [ebp - 4], 1
call fcn.004349a7
pop ecx
pop ecx
cmp eax, ebx
je 0x43462b
mov ecx, dword [ebp - 0x12a4]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x12a0]
add ecx, 0xfffffff0
call fcn.004017c4
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.004472d5
leave
ret
mov eax, dword [ebp - 0x12a4]
cmp dword [eax - 0xc], ebx
je 0x434968
mov eax, dword [ebp - 0x12a0]
cmp dword [eax - 0xc], ebx
je 0x434968
call fcn.00432f7e
mov dword [ebp - 0x1294], eax
cmp eax, ebx
je 0x434948
xor eax, eax
push 0x206
mov word [ebp - 0x1290], ax
lea eax, [ebp - 0x128e]
push ebx
push eax
call fcn.00448000
add esp, 0xc
push 0xc34
lea eax, [ebp - 0x1088]
push ebx
push eax
call fcn.00448000
add esp, 0xc
push dword [ebp - 0x12a4]
mov eax, esi
lea edx, [ebp - 0x1290]
call fcn.0041040c
cmp eax, ebx
mov dword [ebp - 0x129c], eax
jge 0x43470f
push str.failed_to_copy_command_line_into_SM:
lea ecx, [ebp - 0x1294]
call fcn.0040130b
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.0040f821
mov ecx, dword [ebp - 0x1294]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x12a4]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x12a0]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, ebx
jmp 0x434611
lea eax, [ebp - 0x1290]
push eax
lea ecx, [ebp - 0x1298]
call fcn.0040130b
push str.___command_line:
lea ecx, [ebp - 0x1294]
mov byte [ebp - 4], 3
call fcn.0040130b
push ebx
lea eax, [ebp - 0x1298]
push eax
lea eax, [ebp - 0x1294]
push eax
push 2
mov byte [ebp - 4], 4
call fcn.0040f821
mov ecx, dword [ebp - 0x1294]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1298]
add ecx, 0xfffffff0
call fcn.004017c4
push dword [edi]
mov eax, esi
lea edx, [ebp - 0x1088]
call fcn.0041040c
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x1294]
call fcn.0040130b
push str.___ARM_update_folder:
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 5
call fcn.0040130b
push ebx
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1298]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.0040f821
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1294]
add ecx, 0xfffffff0
call fcn.004017c4
push dword [ebp - 0x12a0]
mov eax, esi
lea edx, [ebp - 0xe7c]
call fcn.0041040c
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 0x43489e
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.00447fa7
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1294]
call fcn.0040130b
push str.___session_id:
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 7
call fcn.0040130b
push ebx
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1298]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.0040f821
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1294]
jmp 0x4348d4
push str.___failed_to_get_session_id:
lea ecx, [ebp - 0x1298]
call fcn.0040130b
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1298]
push eax
push 1
call fcn.0040fcf3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1298]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [ebp - 0x1290]
push eax
lea edi, [ebp - 0x450]
call fcn.0042a70b
pop ecx
mov dword [ebp - 0x1294], eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x129c]
call fcn.0040130b
mov eax, edi
push eax
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 0xa
call fcn.0040130b
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.0040f821
mov ecx, dword [ebp - 0x1298]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x43498e
push str.unable_to_create_SM
lea ecx, [ebp - 0x129c]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x129c]
push eax
mov byte [ebp - 4], 0xc
push 2
jmp 0x434986
push str.Empty_Command_Line_or_User_Name
lea ecx, [ebp - 0x129c]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x129c]
push eax
mov byte [ebp - 4], 0xd
push 1
call fcn.0040fcf3
add esp, 0xc
mov ecx, dword [ebp - 0x129c]
add ecx, 0xfffffff0
call fcn.004017c4
mov ebx, dword [ebp - 0x1294]
jmp 0x4346ec