Function at 0x506ba0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5658e8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x54]
push edi
push 0x5a9108
push eax
call fcn.0052825f
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x506d21
push ebp
call fcn.0053a842
push eax
call fcn.00529147
mov esi, eax
add esp, 8
test esi, esi
jg 0x506c0c
push ebp
call fcn.00528078
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp esi, 0x7d0
jle 0x506c19
mov esi, 0x7d0
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x10], ecx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.00542665
push ebp
mov edi, eax
push esi
push 1
push edi
call fcn.00529030
push ebp
call fcn.00528078
push 7
push edi
push str.http:__
call fcn.00536650
add esp, 0x20
test eax, eax
je 0x506c97
push 6
push edi
push str.ftp:__
call fcn.00536650
add esp, 0xc
test eax, eax
je 0x506c97
push 6
push edi
push str.mms:__
call fcn.00536650
add esp, 0xc
test eax, eax
je 0x506c97
push 8
push edi
push str.https:__
call fcn.00536650
add esp, 0xc
test eax, eax
jne 0x506d10
push 0xa
lea ecx, [esp + 0x14]
call fcn.00542685
mov ebp, eax
cmp ebp, 0xffffffff
je 0x506d76
cmp esi, 0x7d0
jge 0x506cbe
dec esi
cmp ebp, esi
je 0x506d76
mov edx, dword [0x5c2a74]
mov dword [esp + 0x18], edx
mov eax, dword [ebx + 0x28]
mov ecx, dword [0x5c80dc]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x30], 2
call fcn.0053afda
mov eax, dword [0x5c80d8]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0x50004
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x506d36
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x18]
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x506d50
push 0
push 0x138a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x18]
push edx
push 0x13bd
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x18]
jmp 0x506e5d
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 0x28]
mov eax, dword [0x5c80e0]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.0053afda
mov edx, dword [0x5c80d8]
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0x50004
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x506dc8
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
jmp 0x506d0b
push 0xd
lea ecx, [esp + 0x14]
call fcn.00542685
cmp eax, 0xffffffff
je 0x506ddc
mov byte [eax + edi], 0
cmp ebp, 0xffffffff
je 0x506de5
mov byte [edi + ebp], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [0x5c74b0]
push eax
push 1
push 0
push str.LastUrl
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x506e29
push 1
push str.RegSetValueEx_err_in_SM::NdDlMP3OOM3U___n
lea ecx, [ebx + 0x7b4]
call fcn.0045eb80
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
jmp 0x506d0b
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x506e45
push 0
push 0x138a
push 0x111
push eax
call esi
mov edx, dword [ebx + 0x18]
push 0
push 0
push 0x2711
push edx
call esi
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret