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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568313
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push esi
push edi
mov eax, dword [0x5d86f0]
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 0x5c057c
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.004e8990
lea eax, [esp + 0x80]
mov dword [esp + 0x4f0], 0
push eax
call fcn.004e34a0
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.004e1e90
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 0x4e3e97
push 0x206
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.005443d0
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 0x5c07b4
call fcn.004e8990
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 0x4e3ad7
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 0x4e3abd
xor ecx, ecx
jmp 0x4e3b5f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3ac7
jmp 0x4e3b5b
push 4
push str.TEMP
lea ecx, [esp + 0x3c]
call fcn.004e8990
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 0x4e3b71
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 0x4e3b46
xor ecx, ecx
jmp 0x4e3b5f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3b50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x58]
call fcn.004e8990
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4f0], 2
cmp dword [esp + 0x48], 8
jb 0x4e3b96
push dword [esp + 0x34]
call fcn.00541faa
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.005443d0
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.004e8990
lea ecx, [esp + 0x44]
call fcn.004e6120
add esp, 0x18
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 0x4e3c4e
xor ecx, ecx
jmp 0x4e3c6f
lea ecx, [esp + 0x2d4]
lea edx, [ecx + 2]
jmp 0x4e3c60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3c60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esp + 0xa0]
call fcn.004e8990
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.004e1740
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.004e8060
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.004e1740
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x4fc], 7
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004e29b0
add esp, 0x14
cmp dword [esp + 0x20], 0x10
jb 0x4e3d33
push dword [esp + 0xc]
call fcn.00541faa
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 0x4e3d63
push dword [esp + 0x34]
call fcn.00541faa
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.004e17d0
add esp, 4
mov byte [esp + 0x4f4], 8
mov edx, eax
lea ecx, [esp + 0x10]
call fcn.004ed0d0
mov edi, eax
add esp, 4
lea eax, [esp + 0x50]
cmp eax, edi
je 0x4e3ddc
cmp dword [esp + 0x64], 8
jb 0x4e3dbb
push dword [esp + 0x50]
call fcn.00541faa
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.004ea8f0
cmp dword [esp + 0x20], 8
jb 0x4e3def
push dword [esp + 0xc]
call fcn.00541faa
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 0x4e3e19
push dword [esp + 0x34]
call fcn.00541faa
add esp, 4
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.004e87d0
cmp dword [esp + 0xc8], 0x10
jb 0x4e3e3e
push dword [esp + 0xb4]
call fcn.00541faa
add esp, 4
cmp dword [esp + 0xac], 8
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
jb 0x4e3e75
push dword [esp + 0x98]
call fcn.00541faa
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
jmp 0x4e3eb7
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5c057c
mov word [esi], ax
call fcn.004e8990
cmp dword [esp + 0x7c], 8
jb 0x4e3eca
push dword [esp + 0x68]
call fcn.00541faa
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 0x4e3ef6
push dword [esp + 0x80]
call fcn.00541faa
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 0x4e3f25
push dword [esp + 0x50]
call fcn.00541faa
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.0054546b
mov esp, ebp
pop ebp
ret