Function at 0x40b170
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
mov edx, 0x200
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push esi
push edi
mov edi, ecx
movzx esi, al
xor ecx, ecx
add esi, 0x80000001
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], esi
nop dword [eax]
test ecx, ecx
mov eax, 0x100
lea ecx, [ebp - 0x42c]
push ecx
cmove eax, edx
or eax, 0xf003f
push eax
push 0
push str.SOFTWAREClasses
push esi
mov dword [ebp - 0x438], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b2b3
mov eax, dword [edi + 0x20c]
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [edi + 0x210], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x428], 0x104
push eax
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40b294
test eax, eax
jne 0x40b25f
cmp dword [ebp - 0x428], eax
jbe 0x40b25f
push str.ZEWSProxy.
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x40b251
push str.ZEWS.
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
je 0x40b25f
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
call fcn.0040ade0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x214]
inc esi
push eax
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x40b221
push dword [ebp - 0x42c]
mov ecx, edi
call fcn.0040ae60
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x434]
cmp dword [ebp - 0x430], 0
mov ecx, edi
sete al
push eax
push esi
mov dword [ebp - 0x43c], eax
call fcn.0040af20
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x438]
push 0
push str.SOFTWAREClassesInterface
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b3fd
mov eax, dword [edi + 0x20c]
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [edi + 0x210], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x420], 0x104
push eax
push esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40b3de
test eax, eax
jne 0x40b3a5
cmp dword [ebp - 0x430], 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 0x104
push eax
push 0
mov ecx, 0x20002
mov eax, 0x10002
cmove eax, ecx
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40b3a5
cmp dword [ebp - 0x420], eax
jbe 0x40b3a5
push str.zewsproxy
lea eax, [ebp - 0x41c]
push eax
call ebx
test eax, eax
je 0x40b3a5
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
call fcn.0040ade0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x104
push eax
lea eax, [ebp - 0x214]
inc esi
push eax
push esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x40b331
push dword [ebp - 0x424]
mov ecx, edi
call fcn.0040ae60
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x434]
push str.SOFTWAREClassesTypeLibF397453F_2DC1_4C0E_8093_A3DE4CBA2B40
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 0x43c]
mov ecx, edi
push esi
call fcn.0040aa90
mov ecx, dword [ebp - 0x430]
mov edx, 0x200
inc ecx
mov dword [ebp - 0x430], ecx
cmp ecx, 2
jl 0x40b1b0
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret 4