Function at 0x52c990
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x808
call fcn.0052c760
push 0x104
lea eax, [esp + 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x52cbe0
lea ecx, [esp + 0x408]
push 0
push ecx
call fcn.005e427a
add esp, 8
test eax, eax
jne 0x52cbe0
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x10]
push edx
push 0x20019
push eax
push str.Software
mov edi, reloc.WSOCK32.dll_accept
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52ca03
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52ca08
mov edi, reloc.WSOCK32.dll_bind
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0x5ec5e8
push 0
push str.SoftwareClassesirc
push edi
call ebx
test eax, eax
jne 0x52cbdc
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push str.URL:IRC_Protocol
push eax
call ebp
lea eax, [esp + 0x20]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ca54
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
mov edx, dword [esp + 0x10]
inc eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push 0
push edx
call esi
test eax, eax
jne 0x52cbdc
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 3
push 0
push str.EditFlags
push ecx
mov dword [esp + 0x2c], 2
call esi
test eax, eax
jne 0x52cbdc
lea edx, [esp + 0x18]
push 0x5ec5e8
push edx
call ebp
lea eax, [esp + 0x20]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52cac0
mov ecx, dword [esp + 0x10]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.URL_Protocol
push ecx
call esi
test eax, eax
jne 0x52cbdc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x20006
push 0
push 0x5ec5e8
push 0
push str.SoftwareClassesircDefaultIcon
push edi
call ebx
test eax, eax
jne 0x52cbdc
lea edx, [esp + 0x418]
push edx
lea eax, [esp + 0x1c]
push 0x5e8084
push eax
call ebp
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x52cb40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52cb40
sub eax, edx
mov edx, dword [esp + 0x10]
inc eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push 0
push edx
call esi
test eax, eax
jne 0x52cbdc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0x5ec5e8
push 0
push str.SoftwareClassesircShellopencommand
push edi
call ebx
test eax, eax
jne 0x52cbdc
lea eax, [esp + 0x418]
push eax
lea ecx, [esp + 0x1c]
push str.__s____1
push ecx
call ebp
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52cbb0
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x52cbdc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret