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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6016e3
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push esi
push edi
mov eax, dword [0x697bc0]
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 0x66dd94
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.004ef630
lea eax, [esp + 0x80]
mov dword [esp + 0x4f0], 0
push eax
call fcn.004e5510
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.004e37f0
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 0x4e5f09
push 0x206
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.005c63d0
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 0x66dfcc
call fcn.004ef630
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 0x4e5b47
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 0x4e5b2d
xor ecx, ecx
jmp 0x4e5bcf
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5b37
jmp 0x4e5bcb
push 4
push str.TEMP
lea ecx, [esp + 0x3c]
call fcn.004ef630
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 0x4e5be1
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 0x4e5bb6
xor ecx, ecx
jmp 0x4e5bcf
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5bc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x58]
call fcn.004ef630
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4f0], 2
cmp dword [esp + 0x48], 8
jb 0x4e5c06
push dword [esp + 0x34]
call fcn.005c4337
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.005c63d0
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.004ef630
lea eax, [esp + 0x44]
push eax
call fcn.004e8a10
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 0x4e5cbf
xor ecx, ecx
jmp 0x4e5cdf
lea ecx, [esp + 0x2d4]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5cd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esp + 0xa0]
call fcn.004ef630
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.004e2fe0
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.004eec50
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.004e2fe0
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x4fc], 7
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004e44f0
add esp, 0x14
cmp dword [esp + 0x20], 0x10
jb 0x4e5da3
push dword [esp + 0xc]
call fcn.005c4337
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 0x4e5dd3
push dword [esp + 0x34]
call fcn.005c4337
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.004e3070
push 0x66ddb0
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x500], 8
push eax
call fcn.004f4470
mov edi, eax
add esp, 0x14
lea eax, [esp + 0x50]
cmp eax, edi
je 0x4e5e4e
cmp dword [esp + 0x64], 8
jb 0x4e5e2d
push dword [esp + 0x50]
call fcn.005c4337
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.004f18b0
cmp dword [esp + 0x20], 8
jb 0x4e5e61
push dword [esp + 0xc]
call fcn.005c4337
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 0x4e5e8b
push dword [esp + 0x34]
call fcn.005c4337
add esp, 4
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.004ef3d0
cmp dword [esp + 0xc8], 0x10
jb 0x4e5eb0
push dword [esp + 0xb4]
call fcn.005c4337
add esp, 4
cmp dword [esp + 0xac], 8
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
jb 0x4e5ee7
push dword [esp + 0x98]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
jmp 0x4e5f29
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x66dd94
mov word [esi], ax
call fcn.004ef630
cmp dword [esp + 0x7c], 8
jb 0x4e5f3c
push dword [esp + 0x68]
call fcn.005c4337
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 0x4e5f68
push dword [esp + 0x80]
call fcn.005c4337
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 0x4e5f97
push dword [esp + 0x50]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret