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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2520
call fcn.0040ba90
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov esi, 0x431580
mov ecx, 0x100
lea edi, [ebp - 0x2520]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x2420], 0x80
lea edi, [ebp - 0x241c]
mov esi, 0x431680
mov ecx, 0xc00
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x181c], 0xc00
lea edi, [ebp - 0x1814]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1818], 0
mov dword [ebp - 4], eax
mov esi, 0x432280
mov ecx, 0x1800
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x14]
push eax
xor edx, edx
mov dword [ebp - 0x14], edx
push 0x20019
push edx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406595
mov esi, dword [ebp - 4]
lea edi, [ebp - 0x2420]
lea ecx, [ebp - 0x1818]
lea edx, [ebp - 0x241c]
lea eax, [ebp - 0x181c]
push eax
push edx
push ecx
push 0
push edi
lea eax, [ebp - 0x2520]
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40658c
test ebx, ebx
jne 0x406460
mov eax, dword [0x44c3a8]
mov ebx, 1
test eax, eax
je 0x40641f
push str.Operating_System_Parameters
call fcn.00402db0
pop ecx
mov eax, dword [0x44e880]
test eax, eax
je 0x40642f
mov eax, 0x4434c0
jmp 0x406434
mov eax, str.SUBCOMPONENT
push eax
call fcn.00402e10
pop ecx
mov eax, dword [0x44e880]
test eax, eax
je 0x406465
je 0x40644d
mov eax, str.ROWSET_TABLE_MGMT_ECM_OS_PROPERTY__CONFIG_TRUE_
jmp 0x406452
mov eax, str.OS_PROPERTY
push eax
call fcn.00402e10
pop ecx
mov eax, dword [0x44e880]
jmp 0x406465
mov eax, dword [0x44e880]
test eax, eax
jne 0x406483
je 0x406472
mov eax, str.ROWSET_TABLE_MGMT_ECM_OS_PROPERTY__CONFIG_TRUE_
jmp 0x406477
mov eax, str.OS_PROPERTY
push eax
call fcn.00402e10
pop ecx
mov eax, dword [0x44e880]
test eax, eax
je 0x40648e
mov eax, 0x444940
jmp 0x406493
mov eax, 0x4434c0
push eax
call fcn.00402e10
pop ecx
mov eax, dword [0x44e880]
test eax, eax
je 0x4064aa
mov eax, str.SOURCE
jmp 0x4064af
mov eax, str.TYPE
push 0x80
push str.System_Environment
push eax
call fcn.00402e68
lea eax, [ebp - 0x2520]
push eax
call fcn.00401a9c
push 0x80
push eax
push str.NAME
call fcn.00402e68
add esp, 0x1c
mov eax, dword [ebp - 0x1818]
cmp eax, 2
jne 0x40651d
lea edx, [ebp - 0x241c]
lea eax, [ebp - 0x1814]
push 0xc00
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1814]
push 0x7d0
push eax
push str.VALUE
call fcn.00402e68
add esp, 0xc
jmp 0x406536
lea eax, [ebp - 0x241c]
push 0x7d0
push eax
push str.VALUE
call fcn.00402e68
add esp, 0xc
mov eax, dword [0x44e880]
test eax, eax
je 0x406546
mov eax, 0x444940
jmp 0x40654b
mov eax, 0x4434c0
push eax
call fcn.0040322c
pop ecx
mov eax, dword [0x44e880]
test eax, eax
jne 0x406570
je 0x406564
mov eax, str.ROWSET_TABLE_MGMT_ECM_OS_PROPERTY__CONFIG_TRUE_
jmp 0x406569
mov eax, str.OS_PROPERTY
push eax
call fcn.0040322c
pop ecx
mov dword [ebp - 0x2420], 0x80
add esi, 1
mov dword [ebp - 0x181c], 0xc00
jmp 0x4063cb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004065e8
test ebx, ebx
je 0x4065d8
mov eax, dword [0x44e880]
test eax, eax
je 0x4065c1
je 0x4065b0
mov eax, str.ROWSET_TABLE_MGMT_ECM_OS_PROPERTY__CONFIG_TRUE_
jmp 0x4065b5
mov eax, str.OS_PROPERTY
push eax
call fcn.0040322c
pop ecx
mov eax, dword [0x44e880]
test eax, eax
je 0x4065cc
mov eax, 0x4434c0
jmp 0x4065d1
mov eax, str.SUBCOMPONENT
push eax
call fcn.0040322c
pop ecx
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret