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

Disassembly:
push 0xffffffffffffffff
push 0x57d258
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x5ecfcc]
xor eax, esp
mov dword [esp + 0x54c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x564]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x580]
mov edi, dword [esp + 0x578]
mov ebx, dword [esp + 0x57c]
mov esi, dword [esp + 0x574]
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], eax
mov dword [eax], 0
call fcn.004029a0
mov ecx, ebx
call fcn.004029a0
mov eax, dword [str.Applications]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404370
push esi
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x574], ebx
call fcn.0043fd10
mov edx, dword [str.shell]
push edx
lea ecx, [esp + 0x24]
call fcn.00404370
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov byte [esp + 0x574], 1
call fcn.0043fd10
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [esp + 0x56c], bl
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44035c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x440398
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x56c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x4408f4
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [str.FriendlyCache]
lea edx, [esp + 0x154]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x44], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4403f9
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x56c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x4408f4
lea eax, [esp + 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440403
sub eax, edx
push eax
lea ecx, [esp + 0x154]
push ecx
mov ecx, edi
call fcn.00403070
push 0x104
mov eax, 0x103
lea edx, [esp + 0x50]
push ebx
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
call fcn.00559e10
push 0x104
lea eax, [esp + 0x368]
push ebx
push eax
call fcn.00559e10
add esp, 0x18
mov dword [esp + 0x28], ebx
call fcn.005322b0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44046d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x360]
push eax
mov eax, dword [esp + 0x30]
xor esi, esi
push esi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
push eax
mov byte [esp + 0x58c], 2
call edi
test eax, eax
jne 0x440590
lea ebx, [ebx]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4404c7
sub eax, edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x28]
call fcn.00403070
mov edx, dword [str.command]
push edx
lea ecx, [esp + 0x18]
call fcn.00404370
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov byte [esp + 0x574], 3
call fcn.0043fd10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x56c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440530
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x44058c
mov eax, 0x103
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x360]
push eax
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x60]
push edx
inc esi
push esi
push eax
call edi
test eax, eax
je 0x4404c0
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], 0
test eax, eax
jne 0x4405ca
lea eax, [ebx - 0x10]
mov byte [esp + 0x56c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4408cd
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x258]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push eax
mov dword [esp + 0x44], 3
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4405ad
lea eax, [esp + 0x254]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440605
mov esi, dword [esp + 0x1c]
sub eax, edx
push eax
lea ecx, [esp + 0x258]
push ecx
mov ecx, esi
call fcn.00403070
mov eax, dword [esi]
push 0x104
lea edx, [esp + 0x460]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x44065f
lea eax, [esp + 0x45c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440646
sub eax, edx
push eax
lea eax, [esp + 0x460]
push eax
mov ecx, esi
call fcn.00403070
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402a50
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x56c], 4
call fcn.00403390
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x4406a8
push str..exe
push esi
call fcn.0055a37b
add esp, 8
test eax, eax
je 0x4406a8
sub eax, esi
cmp eax, 0xffffffff
jne 0x4406d4
lea eax, [esi - 0x10]
mov byte [esp + 0x56c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4406cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
jmp 0x4408b8
add eax, 4
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406df0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x570], 5
call fcn.00403590
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x56c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440720
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406df0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x440751
test ecx, ecx
jge 0x440748
push 0x80070057
call fcn.00401090
cmp byte [eax], 0x22
jne 0x440751
mov bl, 1
jmp 0x440753
xor bl, bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4407c8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406d70
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x570], 6
call fcn.00403590
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x56c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4407c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406d70
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4407f9
test ecx, ecx
jge 0x4407f0
push 0x80070057
call fcn.00401090
cmp byte [eax], 0x22
jne 0x4407f9
mov bl, 1
jmp 0x4407fb
xor bl, bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44081b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x440870
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406df0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x570], 7
call fcn.00403590
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x56c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
push 1
push ecx
push 0
push 0
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
mov edx, dword [esp + 0x28]
push edx
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0x56c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4408b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x56c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4408d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x56c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x564]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54c]
xor ecx, esp
call fcn.0055953b
add esp, 0x55c
ret 0x10