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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575a63
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push esi
push edi
mov eax, dword [0x5ea6f0]
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 0x5d0864
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.004e9a70
lea eax, [esp + 0x80]
mov dword [esp + 0x4f0], 0
push eax
call fcn.004e38a0
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.004e20d0
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 0x4e4299
push 0x206
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.00550c40
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 0x5d0a9c
call fcn.004e9a70
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 0x4e3ed7
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 0x4e3ebd
xor ecx, ecx
jmp 0x4e3f5f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3ec7
jmp 0x4e3f5b
push 4
push str.TEMP
lea ecx, [esp + 0x3c]
call fcn.004e9a70
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 0x4e3f71
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 0x4e3f46
xor ecx, ecx
jmp 0x4e3f5f
lea ecx, [esp + 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3f50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x58]
call fcn.004e9a70
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4f0], 2
cmp dword [esp + 0x48], 8
jb 0x4e3f96
push dword [esp + 0x34]
call fcn.0054e059
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.00550c40
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.004e9a70
lea ecx, [esp + 0x44]
call fcn.004e6770
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 0x4e404e
xor ecx, ecx
jmp 0x4e406f
lea ecx, [esp + 0x2d4]
lea edx, [ecx + 2]
jmp 0x4e4060
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4060
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x2d8]
push eax
lea ecx, [esp + 0xa0]
call fcn.004e9a70
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.004e1980
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.004e9140
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.004e1980
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x4fc], 7
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004e2dd0
add esp, 0x14
cmp dword [esp + 0x20], 0x10
jb 0x4e4133
push dword [esp + 0xc]
call fcn.0054e059
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 0x4e4163
push dword [esp + 0x34]
call fcn.0054e059
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.004e1a10
push 0x5d0880
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x500], 8
push eax
call fcn.004ee290
mov edi, eax
add esp, 0x14
lea eax, [esp + 0x50]
cmp eax, edi
je 0x4e41de
cmp dword [esp + 0x64], 8
jb 0x4e41bd
push dword [esp + 0x50]
call fcn.0054e059
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.004ebaa0
cmp dword [esp + 0x20], 8
jb 0x4e41f1
push dword [esp + 0xc]
call fcn.0054e059
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 0x4e421b
push dword [esp + 0x34]
call fcn.0054e059
add esp, 4
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.004e98b0
cmp dword [esp + 0xc8], 0x10
jb 0x4e4240
push dword [esp + 0xb4]
call fcn.0054e059
add esp, 4
cmp dword [esp + 0xac], 8
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
jb 0x4e4277
push dword [esp + 0x98]
call fcn.0054e059
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
jmp 0x4e42b9
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5d0864
mov word [esi], ax
call fcn.004e9a70
cmp dword [esp + 0x7c], 8
jb 0x4e42cc
push dword [esp + 0x68]
call fcn.0054e059
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 0x4e42f8
push dword [esp + 0x80]
call fcn.0054e059
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 0x4e4327
push dword [esp + 0x50]
call fcn.0054e059
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.005507d9
mov esp, ebp
pop ebp
ret