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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x450a5a
mov edx, dword [ebp - 4]
push ebx
push str.URL:GameRanger_Protocol
push eax
push edx
call fcn.004506a0
mov ecx, dword [ebp - 4]
add esp, 0xc
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.EditFlags
push ecx
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push 0x5f708c
push str.URL_Protocol
push edx
call fcn.004506a0
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x40c]
mov eax, esi
sub ebx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x450790
lea eax, [ebp - 0x40c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4507a1
mov edx, dword [str._shellopencommand]
mov ecx, dword [0x60585c]
mov dword [eax], edx
mov edx, dword [0x605860]
mov dword [eax + 4], ecx
mov ecx, dword [0x605864]
mov dword [eax + 8], edx
mov edx, dword [0x605868]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [ebp - 0x40c]
push edx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x45081b
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x810]
push eax
push 0
push ecx
call fcn.004506a0
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x450820
lea eax, [ebp - 0x40c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x450831
mov ecx, dword [str._shellopenddeexec]
mov edx, dword [0x606b18]
mov dword [eax], ecx
mov ecx, dword [0x606b1c]
mov dword [eax + 4], edx
mov edx, dword [0x606b20]
mov dword [eax + 8], ecx
mov ecx, dword [0x606b24]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x4509a7
mov edx, dword [ebp - 4]
push str.url:_1
push eax
push edx
call fcn.004506a0
mov eax, dword [ebp - 4]
push 0x5f708c
push str.NoActivateHandler
push eax
call fcn.004506a0
mov ecx, dword [ebp - 4]
add esp, 0x18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x4508c1
lea edi, [ebp - 0x40c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4508d2
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
mov ecx, 8
mov esi, str._shellopenddeexecApplication
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x40c]
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45092d
mov edx, dword [ebp - 4]
push 0x604348
push eax
push edx
call fcn.004506a0
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x450930
lea edi, [ebp - 0x40c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x450941
mov ecx, 6
mov esi, str._shellopenddeexecTopic
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
push reloc.WS2_32.dll_accept
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45099e
mov ecx, dword [ebp - 4]
push str.WWW_OpenURL
push eax
push ecx
call fcn.004506a0
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x4509b0
lea eax, [ebp - 0x40c]
dec eax
pop ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4509c2
mov ecx, dword [str.DefaultIcon]
mov edx, dword [0x606aa4]
mov dword [eax], ecx
mov ecx, dword [0x606aa8]
mov dword [eax + 4], edx
mov dl, byte [0x606aac]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [ebp - 0x40c]
push edx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x450a5a
lea eax, [ebp - 0x810]
dec eax
jmp 0x450a20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x450a20
mov cx, word [0x606a9c]
mov dl, byte [0x606a9e]
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov byte [eax + 2], dl
lea eax, [ebp - 0x810]
push eax
push 0
push ecx
call fcn.004506a0
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret