Function at 0x4af301
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c35a9
call fcn.004c2540
sub esp, 0x440
mov eax, dword [0x4e7384]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4af32d
xor eax, eax
jmp 0x4af5d3
mov dword [ebp - 0x434], ebx
push 0x20019
push str.SOFTWAREASIO
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x434]
mov dword [ebp - 4], ebx
call fcn.00401247
test eax, eax
je 0x4af372
cmp dword [ebp - 0x434], ebx
je 0x4af368
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x4af5d3
push esi
mov dword [ebp - 0x438], ebx
push edi
push 0x7f
pop ecx
xor eax, eax
mov word [ebp - 0x220], bx
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp - 0x434]
lea eax, [ebp - 0x44c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x438]
mov esi, 0x100
push edi
mov dword [ebp - 0x43c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4af5ae
mov dword [ebp - 0x42c], ebx
push 0x20019
lea eax, [ebp - 0x220]
push eax
push edi
lea eax, [ebp - 0x42c]
call fcn.00401247
test eax, eax
je 0x4af3ff
mov byte [ebp - 4], 0
cmp dword [ebp - 0x42c], ebx
jmp 0x4af593
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x430]
call fcn.00402e10
mov ebx, str.CLSID
push ebx
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x43c], esi
push eax
lea esi, [ebp - 0x43c]
lea edi, [ebp - 0x220]
call fcn.0040127a
test eax, eax
jne 0x4af571
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004ae29c
test eax, eax
jne 0x4af571
cmp dword [ebp - 0x42c], eax
je 0x4af471
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x42c], 0
mov eax, dword [0x4e9150]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x444]
push str.CLSID_sInprocServer32
push eax
mov byte [ebp - 4], 3
call fcn.00405c38
mov ebx, dword [ebp - 0x444]
add esp, 0xc
push 0x2001f
push ebx
push SysReAllocString
lea eax, [ebp - 0x42c]
call fcn.00401247
test eax, eax
jne 0x4af4fc
and word [ebp - 0x428], ax
mov ecx, 0x81
lea edi, [ebp - 0x426]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4cc340
lea eax, [ebp - 0x42c]
push eax
lea esi, [ebp - 0x440]
lea edi, [ebp - 0x428]
mov dword [ebp - 0x440], 0x104
call fcn.0040127a
test eax, eax
je 0x4af50a
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e9154]
je 0x4af571
push eax
jmp 0x4af56c
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x4af51f
call fcn.004ae916
mov esi, eax
jmp 0x4af521
xor esi, esi
test esi, esi
mov dword [ebp - 0x440], esi
je 0x4af560
lea edi, [ebp - 0x430]
mov eax, esi
call fcn.00402e80
lea eax, [ebp - 0x428]
push eax
lea eax, [esi + 4]
call fcn.00402ec3
lea edi, [esi + 8]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call fcn.0043386f
add ebx, 0xfffffff4
cmp ebx, dword [0x4e9154]
je 0x4af571
push ebx
call fcn.004013aa
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4af588
push eax
call fcn.004013aa
mov byte [ebp - 4], 0
cmp dword [ebp - 0x42c], 0
je 0x4af5a1
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x438]
xor ebx, ebx
jmp 0x4af37a
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
neg esi
sbb esi, esi
and esi, 0x7fffbffe
add esi, 0x80004002
cmp edi, ebx
je 0x4af5cf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret 4