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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fac80
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.004f266a
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 0x43355a
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 0x433547
push edi
lea ecx, [ebp - 0x238]
push str.PROTOCOLSHandler_s
push ecx
call fcn.004f175f
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 0x43353d
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 esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x138]
shl ebx, 4
sub ebx, esi
push ecx
shl ebx, 4
sub ebx, esi
shl ebx, 2
call fcn.004fa6c0
push eax
lea edx, [ebx + 0xd0a174]
push str.HKCRCLSID_sInprocServer32
push edx
call fcn.004f175f
lea eax, [ebp - 0x138]
push eax
call fcn.004fa6c0
push eax
lea ecx, [ebx + 0xd0a0d0]
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x238]
push edx
push str.CLSID_sInprocServer32
push eax
call fcn.004f175f
add esp, 0x2c
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x238]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x338]
push eax
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x433509
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.004fa6c0
add esp, 4
push eax
mov eax, str.PROTOCOLSHandler
push eax
call fcn.004fa6c0
add esp, 4
lea edx, [ebx + 0xd0a218]
push eax
push str.HKLM
push str._s_s_s
push edx
call fcn.004f175f
lea eax, [ebp - 0x138]
lea ecx, [ebx + 0xd0a360]
push eax
push 0x51a1dc
push ecx
call fcn.004f175f
lea edx, [ebp - 0x138]
lea eax, [ebx + 0xd0a2bc]
push edx
push 0x50d39c
push eax
call fcn.004f175f
mov esi, dword [ebp - 0x14]
add esp, 0x2c
inc esi
cmp esi, 0x100
mov dword [ebp - 0x14], esi
jle 0x43352a
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 ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
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 0x433319
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [0xe56dfc], ebx
call fcn.004f265f
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