Function at 0x40eee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4633bb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1834
call fcn.0044ced0
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x1830], eax
push ebx
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x1848]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov ecx, 0x12
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
lea edi, [esp + 0x103c]
rep movsd dword es:[edi], dword [esi]
push 0x3b6
xor ebx, ebx
lea eax, [esp + 0x108a]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.0044cf00
mov ecx, 0x11
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
lea edi, [esp + 0x1448]
rep movsd dword es:[edi], dword [esi]
push 0x3bb
lea ecx, [esp + 0x1491]
push ebx
push ecx
movsb byte es:[edi], byte [esi]
call fcn.0044cf00
push 0x3ff
lea edx, [esp + 0x859]
push ebx
push edx
mov byte [esp + 0x860], bl
call fcn.0044cf00
push 0x3ff
lea eax, [esp + 0xc65]
push ebx
push eax
mov byte [esp + 0xc6c], bl
call fcn.0044cf00
add esp, 0x30
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call fcn.0040c8e0
lea eax, [esp + 0x103c]
mov dword [esp + 0x1850], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40efd7
sub eax, edx
push eax
lea ecx, [esp + 0x1040]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040c9a0
test eax, eax
je 0x40f1da
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1440]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f1da
push 0x400
lea ecx, [esp + 0x840]
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0x400
call fcn.0044cf00
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x850]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40f1da
lea edi, [eax + 1]
jmp 0x40f070
mov esi, dword [esp + 0x24]
cmp dword [esi + 4], 5
jge 0x40f1da
lea eax, [esp + 0x83c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f088
sub eax, edx
cmp eax, 3
mov dword [esp + 0x1c], eax
jle 0x40f1b1
cmp byte [esp + 0x83c], 0x7b
jne 0x40f1b1
cmp byte [esp + eax + 0x83b], 0x7d
jne 0x40f1b1
push 0x400
lea edx, [esp + 0xc40]
push ebx
push edx
mov dword [esp + 0x28], 0x400
call fcn.0044cf00
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc4c]
push ecx
lea edx, [esp + 0x850]
push edx
call fcn.0041b7f0
add esp, 0x18
test eax, eax
je 0x40f18f
cmp dword [esp + 0x1c], ebx
jle 0x40f1b1
lea eax, [esp + 0xc3c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f110
sub eax, edx
je 0x40f1b1
lea eax, [esp + 0xc3c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040c950
test eax, eax
je 0x40f18f
lea ecx, [esp + 0x2c]
call fcn.0040cb80
test eax, eax
je 0x40f18f
mov eax, dword [esi + 4]
cmp eax, 5
jge 0x40f18f
shl eax, 0xa
lea ecx, [esp + 0xc3c]
lea edx, [eax + esi + 0x140c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, edi
add edx, edi
cmp al, bl
jne 0x40f160
mov edx, dword [esi + 4]
shl edx, 0xa
lea ecx, [esp + 0x83c]
lea edx, [edx + esi + 0xc]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, edi
add edx, edi
cmp al, bl
jne 0x40f180
add dword [esi + 4], edi
push 0x400
lea eax, [esp + 0x840]
push ebx
push eax
mov dword [esp + 0x24], 0x400
call fcn.0044cf00
add esp, 0xc
add dword [esp + 0x20], edi
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x850]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40f070
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f1ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1850], 0xffffffff
call fcn.0040c920
mov ecx, dword [esp + 0x1848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1830]
xor ecx, esp
call fcn.0044ce74
mov esp, ebp
pop ebp
ret