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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ebab
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], 0
test eax, eax
je 0x423846
push 0x207
lea eax, [ebp - 0x21b]
mov byte [ebp - 0x21c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [ebp - 0x240], 0
add esp, 0xc
mov dword [ebp - 0x238], 0
mov ebx, 0x206
mov dword [ebp - 0x220], 7
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x238]
push eax
push 0x20219
push 0
push dword [ebp - 0x244]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4237bc
mov edi, edi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
push eax
push esi
lea eax, [ebp - 0x240]
push eax
push 0
push 0x48d4cc
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x423733
cmp eax, 0xea
jne 0x4237bc
lea eax, [ebp - 0x21c]
add ebx, ebx
cmp esi, eax
je 0x4236fd
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [ebx + 2]
push eax
call fcn.00452ca0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x238]
push eax
push 0x20219
push 0
push dword [ebp - 0x244]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4236b0
jmp 0x4237bc
mov eax, dword [ebp - 0x23c]
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x23c]
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x240]
cmp eax, 1
jne 0x42376f
cmp word [esi], 0
jne 0x42375d
xor ecx, ecx
jmp 0x4237af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423762
jmp 0x4237ab
cmp eax, 2
jne 0x4237bc
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push ebx
cmovae eax, dword [ebp - 0x234]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [esi], 0
jne 0x42379b
xor ecx, ecx
jmp 0x4237af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4237a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.0040235a
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4237cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
cmp esi, eax
je 0x4237e1
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov edx, dword [ebp - 0x220]
cmp edx, 8
jae 0x423830
mov eax, dword [ebp - 0x224]
inc eax
je 0x423838
add eax, eax
push eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.MSVCR120.dll_memmove]
mov edx, dword [ebp - 0x220]
add esp, 0xc
mov ecx, dword [ebp - 0x224]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
jmp 0x423864
mov ecx, dword [ebp - 0x234]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x224]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
jmp 0x423864
xor eax, eax
mov dword [edi + 0x14], 7
push eax
mov dword [edi + 0x10], 0
push 0x48b33c
mov word [edi], ax
call fcn.0040235a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret