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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], ebx
call fcn.0047afc7
add esp, 4
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push eax
push 0x20019
push ebx
push str.PROTOCOLSHandler
push closesocket
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x138], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x434b38
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp - 0x18]
push 0
push 0
mov eax, 0x80
push 0
lea ecx, [ebp - 0x30]
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
push ecx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
mov dword [ebp - 0x38], esi
je 0x434b1b
push edi
lea ecx, [ebp - 0x238]
push str.PROTOCOLSHandler_s
push ecx
call fcn.0047a8f8
add esp, 0xc
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x238]
push edx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x338]
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push edx
push eax
push 0
push str.CLSID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x434b1b
lea edi, [ebp - 0x338]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + ebx*4]
lea eax, [ebx + ecx*2]
lea edx, [eax + eax*4]
lea eax, [ebp - 0x138]
push eax
lea ebx, [ebx + edx*4]
shl ebx, 2
call fcn.00483565
push eax
lea ecx, [ebx + 0x5f2ed0]
push str.HKCRCLSID_sInprocServer32
push ecx
call fcn.0047a8f8
lea edx, [ebp - 0x138]
push edx
call fcn.00483565
push eax
lea eax, [ebx + 0x5f2e50]
push 0x48b2f4
push eax
call fcn.0047a8f8
lea ecx, [ebp - 0x138]
lea edx, [ebp - 0x238]
push ecx
push str.CLSID_sInprocServer32
push edx
call fcn.0047a8f8
add esp, 0x2c
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x238]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x338]
push edx
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x434ae5
lea edi, [ebp - 0x338]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00483565
add esp, 4
push eax
mov eax, str.PROTOCOLSHandler
push eax
call fcn.00483565
add esp, 4
lea edx, [ebx + 0x5f2f50]
push eax
push str.HKLM
push str._s_s_s
push edx
call fcn.0047a8f8
lea eax, [ebp - 0x138]
lea ecx, [ebx + 0x5f3098]
push eax
push 0x49338c
push ecx
call fcn.0047a8f8
lea edx, [ebp - 0x138]
lea eax, [ebx + 0x5f2ff4]
push edx
push 0x48b2f4
push eax
call fcn.0047a8f8
add esp, 0x2c
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x14], eax
jle 0x434b08
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ecx
cmp esi, 0x103
mov dword [ebp - 0x18], ecx
jne 0x4348f9
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [0x65cd44], ebx
call fcn.0047afbc
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret