Function at 0x464080
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2210
call fcn.004929f0
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.ApplyCoreStartType
call fcn.004261a0
add esp, 4
lea eax, [ebp - 0x2210]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov dword [ebp - 0x2210], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7fe
lea edx, [ebp - 0x2208]
push edx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46412b
lea eax, [ebp - 0x2208]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4640f0
sub eax, edx
sar eax, 1
dec eax
test eax, eax
jle 0x46412b
mov ecx, 0x5c
lea esp, [esp]
cmp word [ebp + eax*2 - 0x2208], cx
je 0x464121
dec eax
test eax, eax
jg 0x464110
jmp 0x46412b
xor ecx, ecx
mov word [ebp + eax*2 - 0x2208], cx
push 0xffffffffffffffff
push 0x4b2220
lea edx, [ebp - 0x2208]
push 0x800
push edx
call fcn.00474660
push 0xffffffffffffffff
lea eax, [ebp - 0x2208]
push eax
lea ecx, [ebp - 0x1208]
push 0x800
push ecx
call fcn.004740e7
lea edx, [ebp - 0x1208]
push edx
push str.ApplyCoreStartType____s
call fcn.004261a0
add esp, 0x28
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 0x220c], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4641a8
lea eax, [ebp - 0x220c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4641cb
cmp dword [ebp - 0x220c], 0
setne al
test al, al
je 0x4641cb
push 0xffffffffffffffff
push str.iologovernor64.exe
push 0x800
lea ecx, [ebp - 0x1208]
push ecx
jmp 0x4641de
push 0xffffffffffffffff
push 0x4ab2fc
push 0x800
lea edx, [ebp - 0x1208]
push edx
call fcn.00474660
add esp, 0x10
pop esi
test edi, edi
jne 0x464215
push 0x4b7e30
call fcn.0046cb00
push 1
xor edx, edx
mov ecx, str.ioloGovernor
call fcn.0042ad70
push edi
xor edx, edx
mov ecx, str.ioloGovernor
call fcn.0042ad70
add esp, 8
jmp 0x46421e
cmp edi, 0xffffffff
je 0x464314
push 0x4b7e30
call fcn.0046cb00
push 1
xor edx, edx
mov ecx, str.ioloGovernor
call fcn.0042ad70
push 0
xor edx, edx
mov ecx, str.ioloGovernor
call fcn.0042ad70
mov eax, edi
add esp, 8
dec eax
je 0x4642df
dec eax
je 0x464277
sub eax, 2
jne 0x464314
lea ecx, [ebp - 0x1208]
call fcn.004635f0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret
cmp byte [0x4c7dca], 0
jne 0x464285
call fcn.0042de30
cmp byte [0x4c7dcb], 0
je 0x4642d4
xor edx, edx
lea ecx, [ebp - 0x1208]
push ebx
push 0x4b7e30
call fcn.0046ba60
test al, al
je 0x464314
push 1
xor edx, edx
mov ecx, str.ioloGovernor
call fcn.0042ad70
push 0
xor edx, edx
mov ecx, str.ioloGovernor
call fcn.0042ad70
add esp, 8
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x1208]
push eax
jmp 0x464307
cmp byte [0x4c7dca], 0
jne 0x4642ed
call fcn.0042de30
cmp byte [0x4c7dcb], 0
lea ecx, [ebp - 0x1208]
je 0x464304
lea edx, [ebp - 0x208]
jmp 0x464296
push 0
push ecx
mov ecx, str.ioloGovernor
call fcn.0042ab70
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00474985
mov esp, ebp
pop ebp
ret