Function at 0x4ea690
Capabilities:
Get session user name
Impersonate user
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x601e11
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push esi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc], eax
xor esi, esi
push 0x4d
xor eax, eax
mov byte [esp + 0xf], 1
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [esp + 0x38], 0
mov dword [esp + 0x80], 0x104
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], esi
mov word [esp + 0x64], ax
call fcn.004ef630
sub esp, 0x18
mov dword [esp + 0x4e8], esi
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push str.explorer.exe
mov word [ecx], ax
call fcn.004ef630
lea eax, [esp + 0x48]
push eax
call fcn.004e8a10
add esp, 0x1c
test al, al
jne 0x4ea753
mov byte [esp + 0xb], al
jmp 0x4eaa28
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov ecx, 1
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x2b8]
cmovne esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x2b4]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x34], xmm0
movdqa xmmword [esp + 0x44], xmm0
mov dword [esp + 0x34], 0x20
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 1
test esi, esi
je 0x4ea7ae
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0
push eax
push dword [esp + 0x34]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x28]
push ecx
push 1
test eax, eax
lea eax, [esp + 0x64]
push 0
je 0x4ea7ed
cmp dword [esp + 0x7c], 8
cmovae eax, dword [esp + 0x68]
push eax
push dword [esp + 0x60]
jmp 0x4ea7fd
cmp dword [esp + 0x7c], 8
cmovae eax, dword [esp + 0x68]
push eax
push reloc.WS2_32.dll_accept
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0xb4], ax
lea eax, [esp + 0xb6]
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [esp + 0x58], 0x104
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0xb0]
push eax
push 0
push 0
push str.Progid
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
cmp word [esp + 0xac], ax
jne 0x4ea872
xor ecx, ecx
jmp 0x4ea88f
lea ecx, [esp + 0xac]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ea880
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x84]
call fcn.004ef630
push 0x13
push str._shellopencommand
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d8], 1
call fcn.004f2b50
push 0x104
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x90], 8
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x7c]
mov dword [esp + 0x58], 0x104
cmovae eax, dword [esp + 0x7c]
push ecx
push 1
push 0
push eax
push connect
call esi
test eax, eax
jne 0x4ea9f6
lea eax, [esp + 0x58]
mov dword [esp + 0x74], 1
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push 0x66dd94
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ea9f6
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x98]
call fcn.004ef370
push 1
push 0
lea eax, [esp + 0x5c]
mov byte [esp + 0x4d8], 2
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 0x22
call fcn.004f1b00
cmp eax, 0xffffffff
je 0x4ea9d5
lea esi, [eax + 1]
mov dword [esp + 0x54], 0x22
push 1
push esi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa0]
call fcn.004f1b00
cmp eax, 0xffffffff
je 0x4ea9ce
dec eax
lea ecx, [esp + 0x94]
push eax
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004ef8d0
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ef440
lea ecx, [esp + 0x10]
call fcn.004ef480
jmp 0x4ea9db
mov byte [esp + 0xb], 0
jmp 0x4ea9db
xor al, al
mov byte [esp + 0xb], al
cmp dword [esp + 0xa8], 8
jb 0x4ea9fc
push dword [esp + 0x94]
call fcn.005c4337
add esp, 4
jmp 0x4ea9fc
xor al, al
mov byte [esp + 0xb], al
push dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x2c]
call esi
cmp dword [esp + 0x90], 8
jb 0x4eaa24
push dword [esp + 0x7c]
call fcn.005c4337
add esp, 4
mov al, byte [esp + 0xb]
cmp dword [esp + 0x70], 8
jb 0x4eaa3f
push dword [esp + 0x5c]
call fcn.005c4337
mov al, byte [esp + 0xf]
add esp, 4
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret