Function at 0x4e3fe0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598433
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x4d4], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x50]
xor eax, eax
mov dword [esp + 0x24], 0
push eax
push 0x5f6f5c
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.004e9ac0
lea eax, [esp + 0x80]
mov dword [esp + 0x4f0], 0
push eax
call fcn.004e3b70
mov byte [esp + 0x4f4], 1
lea eax, [esp + 0x84]
cmp dword [esp + 0x98], 8
cmovae eax, dword [esp + 0x84]
push eax
lea eax, [esp + 0x70]
push str._sEnvironment
push eax
call fcn.004e2580
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x4f0], 2
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
push ecx
cmovae eax, dword [esp + 0x6c]
push 0x2001f
push 0
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e4569
push 0x206
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.0055e3d0
add esp, 0xc
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esp + 0x48], 7
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
push 3
push 0x5f7194
call fcn.004e9ac0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4f0], 3
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmovae eax, dword [esp + 0x34]
push ecx
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x4e41a7
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push dword [esp + 0x3c]
call edi
cmp word [esp + 0xcc], 0
jne 0x4e418d
xor ecx, ecx
jmp 0x4e422f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4197
jmp 0x4e422b
push 4
push str.TEMP
lea ecx, [esp + 0x3c]
call fcn.004e9ac0
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x4c]
push ecx
push 0
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push dword [esp + 0x3c]
call edi
test eax, eax
jne 0x4e4241
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push dword [esp + 0x3c]
call edi
cmp word [esp + 0xcc], 0
jne 0x4e4216
xor ecx, ecx
jmp 0x4e422f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4220
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x58]
call fcn.004e9ac0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4f0], 2
cmp dword [esp + 0x48], 8
jb 0x4e4266
push dword [esp + 0x34]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 0
push 0x206
push eax
mov word [esp + 0x2dc], ax
lea eax, [esp + 0x2de]
push eax
call fcn.0055e3d0
sub esp, 0xc
mov dword [esp + 0xc8], 0x104
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov word [ecx], ax
call fcn.004e9ac0
lea eax, [esp + 0x44]
push eax
call fcn.004e6800
add esp, 0x1c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x2d8]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
cmp word [esp + 0x2d4], ax
jne 0x4e431f
xor ecx, ecx
jmp 0x4e433f
lea ecx, [esp + 0x2d4]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4330
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esp + 0xa0]
call fcn.004e9ac0
mov byte [esp + 0x4f0], 4
lea eax, [esp + 0x50]
cmp dword [esp + 0x64], 8
cmovae eax, dword [esp + 0x50]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.004e1d70
add esp, 8
mov byte [esp + 0x4f0], 5
lea ecx, [esp + 0x34]
push 0xd
push str._USERPROFILE_
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.004e91b0
mov byte [esp + 0x4f0], 6
lea eax, [esp + 0x98]
cmp dword [esp + 0xac], 8
cmovae eax, dword [esp + 0x98]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004e1d70
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x4fc], 7
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004e30a0
add esp, 0x14
cmp dword [esp + 0x20], 0x10
jb 0x4e4403
push dword [esp + 0xc]
call fcn.0055b689
add esp, 4
mov byte [esp + 0x4f0], 5
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x4e4433
push dword [esp + 0x34]
call fcn.0055b689
add esp, 4
cmp dword [esp + 0xc8], 0x10
lea eax, [esp + 0xb4]
cmovae eax, dword [esp + 0xb4]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004e1e00
push 0x5f6f78
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x500], 8
push eax
call fcn.004ee340
mov edi, eax
add esp, 0x14
lea eax, [esp + 0x50]
cmp eax, edi
je 0x4e44ae
cmp dword [esp + 0x64], 8
jb 0x4e448d
push dword [esp + 0x50]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call fcn.004ebad0
cmp dword [esp + 0x20], 8
jb 0x4e44c1
push dword [esp + 0xc]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
cmp dword [esp + 0x48], 8
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
jb 0x4e44eb
push dword [esp + 0x34]
call fcn.0055b689
add esp, 4
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.004e9920
cmp dword [esp + 0xc8], 0x10
jb 0x4e4510
push dword [esp + 0xb4]
call fcn.0055b689
add esp, 4
cmp dword [esp + 0xac], 8
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
jb 0x4e4547
push dword [esp + 0x98]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
jmp 0x4e4589
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5f6f5c
mov word [esi], ax
call fcn.004e9ac0
cmp dword [esp + 0x7c], 8
jb 0x4e459c
push dword [esp + 0x68]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
cmp dword [esp + 0x94], 8
mov word [esp + 0x68], ax
mov dword [esp + 0x78], eax
jb 0x4e45c8
push dword [esp + 0x80]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
cmp dword [esp + 0x64], 8
mov word [esp + 0x80], ax
mov dword [esp + 0x90], eax
jb 0x4e45f7
push dword [esp + 0x50]
call fcn.0055b689
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4d4]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret