Function at 0x4020b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x120], 0
test edi, edi
je 0x40245d
mov eax, dword [esi]
cmp eax, dword [0x496470]
jne 0x40210b
mov ecx, dword [esi + 4]
cmp ecx, dword [0x496474]
jne 0x40210b
mov edx, dword [esi + 8]
cmp edx, dword [0x496478]
jne 0x40210b
mov eax, dword [esi + 0xc]
cmp eax, dword [0x49647c]
je 0x40245d
lea ecx, [ebp - 0x120]
push ecx
push 0x49907c
push 1
push 0
push 0x496460
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402145
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40245d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40245d
cmp dword [edi], 0
mov ebx, edi
je 0x4021d8
cmp dword [ebp + 8], 0
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x11c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x114], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x110], edx
mov ecx, dword [eax]
lea edx, [ebp - 0x11c]
push edx
push 1
push esi
push eax
je 0x4021bd
cmp dword [ebx], 1
jne 0x402199
mov eax, dword [ecx + 0x14]
jmp 0x40219c
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jge 0x4021cc
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4021b6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40245f
cmp dword [ebx], 1
jne 0x4021c7
mov eax, dword [ecx + 0x18]
jmp 0x4021ca
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], 0
jne 0x402150
cmp dword [ebp + 8], 0
jne 0x40244b
push 0x40
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x10c]
push ecx
mov dword [ebp - 0x130], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
lea edx, [ebp - 0x124]
push edx
mov dword [ebp - 0x124], eax
call fcn.004041b0
add esp, 0xc
test eax, eax
jl 0x402440
mov esi, dword [ebp - 0x124]
cmp esi, 0x400
jg 0x402250
push esi
call fcn.00404220
add esp, 4
test al, al
je 0x402250
mov eax, esi
call fcn.004572e0
mov eax, esp
jmp 0x40225c
push esi
lea ecx, [ebp - 0x130]
call fcn.00404310
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
push eax
call fcn.00403b00
mov ebx, eax
test ebx, ebx
je 0x402440
push str.CLSID_
lea edx, [ebp - 0x8c]
push 0x80
push edx
call fcn.00450826
add esp, 0xc
push eax
call fcn.00404890
add esp, 4
push ebx
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.0045088e
add esp, 0xc
push eax
call fcn.00404890
add esp, 4
push str.Required_Categories
lea ecx, [ebp - 0x8c]
push 0x80
push ecx
call fcn.0045088e
add esp, 0xc
push eax
call fcn.00404890
xor edi, edi
mov edx, closesocket
add esp, 4
mov eax, 0x20019
lea ecx, [ebp - 0x8c]
lea esi, [ebp - 0x12c]
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
call fcn.00404a00
test eax, eax
jne 0x402361
mov eax, dword [ebp - 0x12c]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x124]
push edx
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00404be0
cmp esi, edi
jne 0x402361
cmp dword [ebp - 0x124], edi
jne 0x402361
lea edi, [ebp - 0x8c]
lea esi, [ebp - 0x138]
call fcn.00404c30
xor edi, edi
push str.CLSID_
lea ecx, [ebp - 0x8c]
push 0x80
push ecx
call fcn.00450826
add esp, 0xc
push eax
call fcn.00404890
add esp, 4
push ebx
lea edx, [ebp - 0x8c]
push 0x80
push edx
call fcn.0045088e
add esp, 0xc
push eax
call fcn.00404890
add esp, 4
push str.Implemented_Categories
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.0045088e
add esp, 0xc
push eax
call fcn.00404890
add esp, 4
mov eax, 0x20019
lea ecx, [ebp - 0x8c]
mov edx, closesocket
lea esi, [ebp - 0x12c]
call fcn.00404a00
test eax, eax
jne 0x40242a
mov edx, dword [ebp - 0x12c]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x124]
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00404be0
cmp esi, edi
jne 0x40242a
cmp dword [ebp - 0x124], edi
jne 0x40242a
lea edi, [ebp - 0x8c]
lea esi, [ebp - 0x138]
call fcn.00404c30
lea ecx, [ebp - 0x12c]
call fcn.00404c10
lea ecx, [ebp - 0x138]
call fcn.00404c10
lea ecx, [ebp - 0x130]
call fcn.00404190
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40245d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0x144]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044ffb2
mov esp, ebp
pop ebp
ret 4