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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffac4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0x64
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x93c]
push edx
push ebx
push 0x80000000
call sub.ADVAPI32.dll_RegQueryValueA
cmp byte [ebp - 0x93c], 0
je 0x420c9c
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov esi, ecx
lea edi, [ebp - 0x93c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0x800
push ebx
push 0x460a0c
lea eax, [ebp - 0xd8]
push eax
call fcn.00456f9c
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 1
push 0
lea ecx, [ebp - 0xd8]
push ecx
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x420d0e
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x8d8]
push edx
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x420e03
xor eax, eax
jmp 0x420e8d
push ebx
push 0x460a1b
lea edx, [ebp - 0xd8]
push edx
call fcn.00456f9c
add esp, 0xc
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0xd8]
push ecx
push 1
push 0
push eax
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x420dfc
mov dword [ebp - 4], 0x400
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0xd3c]
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x420d7b
xor eax, eax
jmp 0x420e8d
xor edx, edx
mov dl, byte [ebp - 0xd3c]
cmp edx, 0x22
jne 0x420d90
lea ecx, [ebp - 0xd3b]
jmp 0x420d96
lea ecx, [ebp - 0xd3c]
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x8d8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x8d8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x22
push eax
call fcn.00452e98
add esp, 8
test eax, eax
je 0x420dd3
mov byte [eax], 0
push 0x460a31
lea edx, [ebp - 0x8d8]
push edx
call fcn.00453150
add esp, 8
test eax, eax
je 0x420dee
mov byte [eax], 0
lea ecx, [ebp - 0x8d8]
push ecx
call fcn.00408208
jmp 0x420e03
xor eax, eax
jmp 0x420e8d
lea eax, [ebp - 0x8d8]
mov edx, 0x460a34
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x420e30
test cl, cl
je 0x420e2a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x420e30
add eax, 2
add edx, 2
test cl, cl
jne 0x420e0e
jne 0x420e30
xor eax, eax
jmp 0x420e8d
xor esi, esi
push 0x800
lea eax, [ebp - 0x153c]
push eax
lea edx, [ebp - 0x8d8]
push edx
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
push 0x2c
lea ecx, [ebp - 0x153c]
push ecx
call fcn.00453124
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x420e70
lea eax, [ebx + 1]
push eax
call fcn.0041833f
pop ecx
mov esi, eax
mov byte [ebx], 0
xor eax, eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push 1
push edx
push 0
push esi
lea ecx, [ebp - 0x153c]
push ecx
call sub.SHELL32.DLL_ExtractIconExA
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc