Function at 0x4e1c40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x798
push esi
push edi
lea edi, [ebp - 0x798]
mov ecx, 0x1e6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5a2184]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5a51dc], 0x1e
jl 0x4e1cf4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.004e2370
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e1ca0
mov eax, dword [ebp - 8]
jmp 0x4e202a
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
lea ecx, [ebp - 0x214]
push ecx
call fcn.00526a50
add esp, 8
lea edx, [ebp - 0x214]
push edx
call fcn.00523ac0
add esp, 4
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x248]
push eax
mov ecx, 0x208
sub ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x224]
lea eax, [ebp + edx - 0x214]
push eax
call fcn.004e1b00
add esp, 0xc
jmp 0x4e1d40
push str.SOFTWAREMicrosoftWindowsCurrentVersionProfileList_
lea ecx, [ebp - 0x214]
push ecx
call fcn.00526a50
add esp, 8
lea edx, [ebp - 0x214]
push edx
call fcn.00523ac0
add esp, 4
mov dword [ebp - 0x224], eax
mov eax, 0x208
sub eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x224]
lea eax, [ebp + edx - 0x214]
push eax
call fcn.004b47d0
mov esi, esp
lea ecx, [ebp - 0x23c]
push ecx
push 1
push 0
lea edx, [ebp - 0x214]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e1d9a
cmp dword [ebp - 8], 0
jne 0x4e1d81
mov dword [ebp - 0x790], 0
jmp 0x4e1d8f
mov eax, dword [ebp - 8]
add eax, 0xafc80
mov dword [ebp - 0x790], eax
mov eax, dword [ebp - 0x790]
jmp 0x4e202a
cmp dword [0x5a51dc], 0x14
jl 0x4e1ef6
mov dword [ebp - 0x224], 0x208
mov esi, esp
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x230]
push eax
push 0
push 0x5a0924
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 8], eax
mov esi, esp
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0052354c
cmp dword [ebp - 8], 0
je 0x4e1e2d
cmp dword [ebp - 8], 0
jne 0x4e1e14
mov dword [ebp - 0x794], 0
jmp 0x4e1e22
mov eax, dword [ebp - 8]
add eax, 0xafc80
mov dword [ebp - 0x794], eax
mov eax, dword [ebp - 0x794]
jmp 0x4e202a
cmp dword [ebp - 0x230], 1
jne 0x4e1e79
lea ecx, [ebp - 0x214]
push ecx
push 0x104
lea edx, [ebp - 0x360]
push edx
call fcn.0045bcf0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e1e62
mov eax, dword [ebp - 8]
jmp 0x4e202a
lea eax, [ebp - 0x360]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004991e0
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4e1ef1
cmp dword [ebp - 0x230], 2
jne 0x4e1ee7
mov esi, esp
push 0x208
lea eax, [ebp - 0x570]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, esp
call fcn.0052354c
lea edx, [ebp - 0x570]
push edx
push 0x104
lea eax, [ebp - 0x67c]
push eax
call fcn.0045bcf0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e1ed0
mov eax, dword [ebp - 8]
jmp 0x4e202a
lea ecx, [ebp - 0x67c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004991e0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4e1ef1
mov eax, 2
jmp 0x4e202a
jmp 0x4e1fe6
mov dword [ebp - 0x224], 0x208
mov esi, esp
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
push str.ProfileImagePath
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 8], eax
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0052354c
cmp dword [ebp - 8], 0
je 0x4e1f7d
cmp dword [ebp - 8], 0
jne 0x4e1f63
mov dword [ebp - 0x798], 0
jmp 0x4e1f72
mov ecx, dword [ebp - 8]
add ecx, 0xafc80
mov dword [ebp - 0x798], ecx
mov eax, dword [ebp - 0x798]
jmp 0x4e202a
cmp dword [ebp - 0x230], 1
jne 0x4e1f9d
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004991e0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4e1fe6
cmp dword [ebp - 0x230], 2
jne 0x4e1fdf
mov esi, esp
push 0x104
lea edx, [ebp - 0x788]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp esi, esp
call fcn.0052354c
lea ecx, [ebp - 0x788]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004991e0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4e1fe6
mov eax, 2
jmp 0x4e202a
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x21c], eax
jmp 0x4e2002
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx]
test eax, eax
je 0x4e2028
mov ecx, dword [ebp - 0x21c]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x4e2026
mov eax, dword [ebp - 0x21c]
mov byte [eax], 0x2f
jmp 0x4e1ff3
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4e205c]
call fcn.0052356f
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00522672
add esp, 0x798
cmp ebp, esp
call fcn.0052354c
mov esp, ebp
pop ebp
ret 0xc