Function at 0x41052c
Capabilities:
Query environment variable
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x2204]
mov eax, 0x2204
call fcn.0043a7e0
push 0xffffffffffffffff
push 0x45c87f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x2200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2210]
mov edi, dword [ebp + 0x220c]
mov esi, 0x47bc90
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], eax
call fcn.00402172
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.00402172
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402172
push str.SoftwareClasses_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004062be
mov esi, 0x460a50
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004062be
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00404c49
push edi
lea ecx, [ebp - 0x18]
call fcn.00404c49
and dword [ebp - 0x38], 0
push str._shell_
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea04
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00404bfc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014f1
push esi
push dword [ebp - 0x10]
lea edi, [ebp - 0x14]
mov ebx, SysReAllocString
call fcn.00410311
pop ecx
pop ecx
test eax, eax
je 0x41062e
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x410693
push str._shell_
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea04
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00404bfc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014f1
push esi
push dword [ebp - 0x10]
lea edi, [ebp - 0x14]
mov ebx, SysReAllocString
call fcn.00410311
pop ecx
pop ecx
test eax, eax
je 0x41067f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x410693
push 0x461b54
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], 1
call fcn.00404c6e
push str._shell_
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040ea04
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.0041004d
push str.command_
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.0040ea04
add esp, 0x24
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.00404bfc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014f1
push esi
push dword [ebp - 0x10]
lea edi, [ebp - 0x20]
mov ebx, SysReAllocString
call fcn.00410311
pop ecx
pop ecx
test eax, eax
je 0x410723
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
jne 0x4108d9
push str._shell_
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea04
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0041004d
push str.command_
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040ea04
add esp, 0x24
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00404bfc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014f1
push esi
push dword [ebp - 0x10]
lea edi, [ebp - 0x20]
mov ebx, SysReAllocString
call fcn.00410311
pop ecx
xor edi, edi
pop ecx
test eax, eax
je 0x4107b4
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
jne 0x4108d9
cmp dword [ebp - 0x38], edi
je 0x4108d9
push str._shell_
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040ea04
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.00404bfc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014f1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
mov ebx, SysReAllocString
push ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4108d9
push 0x1fe
mov word [ebp + 0x2000], ax
lea eax, [ebp + 0x2002]
push edi
push eax
call fcn.0043a190
add esp, 0xc
push 0x100
lea eax, [ebp + 0x2000]
push eax
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4108d9
lea eax, [ebp + 0x2000]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ea04
push str.command_
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040ea04
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.00404bfc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014f1
push esi
mov esi, dword [ebp - 0x10]
push esi
lea edi, [ebp - 0x20]
call fcn.00410311
pop ecx
pop ecx
test eax, eax
je 0x4108d9
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x4108d9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014f1
lea ecx, [esi - 0x10]
jmp 0x410900
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004014f1
mov edi, dword [ebp - 0x20]
cmp dword [edi - 0xc], 0
jne 0x41091e
lea ecx, [edi - 0x10]
call fcn.004014f1
xor eax, eax
jmp 0x410955
push 0x1000
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41093e
mov ecx, dword [ebp - 0x34]
lea eax, [ebp]
push eax
call fcn.00404c6e
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
lea ecx, [edi - 0x10]
call fcn.004014f1
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2200]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x2204
leave
ret