Function at 0x40aa90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x42c], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
movzx eax, byte [ebp + 0xc]
lea edx, [ebp - 0x428]
mov dword [ebp - 0x434], eax
inc eax
push edx
shl eax, 8
or eax, 0xf003f
mov dword [ebp - 4], 0
push eax
push 0
push str.SOFTWAREClassesCLSID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40adbe
mov eax, dword [ebx + 0x20c]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x210], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x430], 0
push eax
push 0
push dword [ebp - 0x428]
mov dword [ebp - 0x424], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40ada5
test eax, eax
jne 0x40ad60
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ab90
mov ebx, dword [ebp - 0x434]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 0x104
push eax
lea ebx, [ebx + 1]
mov ecx, 8
push 0
shl ebx, 0x10
lea eax, [ebp - 0x218]
or ebx, 2
mov esi, str.InprocServer32
push ebx
push str.Assembly
push eax
push dword [ebp - 0x428]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00550cf7
xor ecx, ecx
mov dword [ebp - 0x438], eax
add esp, 8
mov word [eax], cx
test esi, esi
jne 0x40ac30
cmp dword [ebp - 0x424], ecx
jbe 0x40ac30
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea eax, [ebp - 0x420]
push str.ZEWSProxy_
push eax
call esi
test eax, eax
jne 0x40ad44
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ac40
mov ecx, 7
mov dword [ebp - 0x424], 0x104
mov esi, str.LocalServer32
lea eax, [ebp - 0x424]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push ebx
push 0
lea eax, [ebp - 0x218]
movsw word es:[edi], word [esi]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, dword [ebp - 0x438]
xor ecx, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov word [edi], cx
test eax, eax
jne 0x40acbd
cmp dword [ebp - 0x424], ecx
jbe 0x40acbd
push str.zewsproxy.dll
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
jne 0x40ad44
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40acc6
mov eax, dword [str.ProgId]
mov dword [ecx], eax
mov eax, dword [0x5c3e34]
mov dword [ecx + 4], eax
mov eax, dword [0x5c3e38]
mov dword [ecx + 8], eax
mov eax, dword [0x5c3e3c]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 0x104
push eax
push 0
push ebx
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
mov word [edi], cx
test eax, eax
jne 0x40ad5a
cmp dword [ebp - 0x424], ecx
jbe 0x40ad5a
push str.zewsproxy.
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x40ad5a
mov ebx, dword [ebp - 0x42c]
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.0040ade0
jmp 0x40ad60
mov ebx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x424], 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x40ab78
push dword [ebp - 0x428]
mov ecx, ebx
call fcn.0040ae60
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret 8