Function at 0x464210
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586228
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x18], 0
call fcn.00414c10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
push ecx
push 0xf01ff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x464280
jmp 0x4644e6
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x464293
jmp 0x4644e6
mov dword [ebp - 0x144], 0x104
lea ecx, [ebp - 0x144]
push ecx
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4642ba
jmp 0x4644e6
push 0x5e4358
lea ecx, [ebp - 0x198]
call fcn.00405ef0
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 4], 0
push str.Win32_Account_WHERE_Name
lea ecx, [ebp - 0x1b4]
call fcn.00405ef0
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.00407b50
add esp, 0xc
mov dword [ebp - 0x1f4], eax
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [ebp - 0x1f8]
push ecx
lea edx, [ebp - 0x17c]
push edx
call fcn.0041e300
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d0]
call fcn.00405f70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b4]
call fcn.00405f70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x198]
call fcn.00405f70
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push 0x5e4378
call fcn.00405ef0
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x17c]
call fcn.00406030
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push eax
call fcn.00405ef0
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x208], ecx
mov byte [ebp - 4], 8
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push 0x5e437c
call fcn.00405ef0
mov dword [ebp - 0x20c], eax
lea edx, [ebp - 0x140]
push edx
mov byte [ebp - 4], 6
call fcn.004172e0
add esp, 0x58
mov dword [ebp - 0x210], eax
mov byte [ebp - 4], 9
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x46444b
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x17c]
call fcn.00405f70
jmp 0x4644e6
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.00407b50
add esp, 0xc
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1e0]
call fcn.00464510
cmp dword [ebp - 0x18], 0
je 0x464497
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x4644ae
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x160]
call fcn.00405f70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x17c]
call fcn.00405f70
xor eax, eax
jne 0x464241
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 4