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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571d73
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push esi
push edi
mov eax, dword [0x5e56f0]
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 0x5cc174
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.004e9ab0
lea eax, [esp + 0x80]
mov dword [esp + 0x4f0], 0
push eax
call fcn.004e38e0
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.004e2110
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 0x4e42d9
push 0x206
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.0054cf60
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 0x5cc3ac
call fcn.004e9ab0
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 0x4e3f17
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 0x4e3efd
xor ecx, ecx
jmp 0x4e3f9f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3f07
jmp 0x4e3f9b
push 4
push str.TEMP
lea ecx, [esp + 0x3c]
call fcn.004e9ab0
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 0x4e3fb1
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 0x4e3f86
xor ecx, ecx
jmp 0x4e3f9f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3f90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x58]
call fcn.004e9ab0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4f0], 2
cmp dword [esp + 0x48], 8
jb 0x4e3fd6
push dword [esp + 0x34]
call fcn.0054a379
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.0054cf60
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.004e9ab0
lea ecx, [esp + 0x44]
call fcn.004e67b0
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 0x4e408e
xor ecx, ecx
jmp 0x4e40af
lea ecx, [esp + 0x2d4]
lea edx, [ecx + 2]
jmp 0x4e40a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e40a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esp + 0xa0]
call fcn.004e9ab0
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.004e19c0
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.004e9180
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.004e19c0
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x4fc], 7
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004e2e10
add esp, 0x14
cmp dword [esp + 0x20], 0x10
jb 0x4e4173
push dword [esp + 0xc]
call fcn.0054a379
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 0x4e41a3
push dword [esp + 0x34]
call fcn.0054a379
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.004e1a50
push 0x5cc190
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x500], 8
push eax
call fcn.004ee2c0
mov edi, eax
add esp, 0x14
lea eax, [esp + 0x50]
cmp eax, edi
je 0x4e421e
cmp dword [esp + 0x64], 8
jb 0x4e41fd
push dword [esp + 0x50]
call fcn.0054a379
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.004ebae0
cmp dword [esp + 0x20], 8
jb 0x4e4231
push dword [esp + 0xc]
call fcn.0054a379
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 0x4e425b
push dword [esp + 0x34]
call fcn.0054a379
add esp, 4
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.004e98f0
cmp dword [esp + 0xc8], 0x10
jb 0x4e4280
push dword [esp + 0xb4]
call fcn.0054a379
add esp, 4
cmp dword [esp + 0xac], 8
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
jb 0x4e42b7
push dword [esp + 0x98]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
jmp 0x4e42f9
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5cc174
mov word [esi], ax
call fcn.004e9ab0
cmp dword [esp + 0x7c], 8
jb 0x4e430c
push dword [esp + 0x68]
call fcn.0054a379
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 0x4e4338
push dword [esp + 0x80]
call fcn.0054a379
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 0x4e4367
push dword [esp + 0x50]
call fcn.0054a379
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.0054caf9
mov esp, ebp
pop ebp
ret