Function at 0x5178a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7afc23
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp - 0xc0]
cmp dword [eax + 4], 0
je 0x5178f0
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00403b90
movzx ecx, al
test ecx, ecx
je 0x5178f7
xor eax, eax
jmp 0x517d37
push 0x7f0aa4
mov edx, dword [ebp + 8]
add edx, 8
push edx
call fcn.0040cb00
add esp, 8
movzx eax, al
test eax, eax
je 0x51796e
mov ecx, dword [ebp + 8]
call fcn.00545980
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00406460
shl eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00406470
push eax
mov edx, dword [ebp - 0x18]
push edx
push str.Played
push 0x7f0ac0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00405e80
push eax
call fcn.004098a0
add esp, 4
push 8
call fcn.00608600
add esp, 4
test eax, eax
jne 0x5179bb
mov ecx, dword [ebp + 8]
add ecx, 0x40
call fcn.00406470
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00406470
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00406470
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00406470
push eax
push 0x7f0af0
call fcn.00609060
add esp, 0x14
jmp 0x5179f8
mov ecx, dword [ebp + 8]
add ecx, 0x40
call fcn.00406470
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00406470
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00406470
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00406470
push eax
push str.CMainUIController::OpenTabEx__title_s__server_s__url_s__json_s
call fcn.00609080
add esp, 0x14
push 0
push str.yeyou
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00403920
test eax, eax
jle 0x517adf
lea ecx, [ebp - 0x24]
call fcn.00405e90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.00618b90
add esp, 4
push 0x7f0c0c
lea ecx, [ebp - 0x44]
call fcn.00403bf0
mov byte [ebp - 4], 1
push 0x7f0c3c
lea ecx, [ebp - 0x44]
call fcn.0041edc0
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.00403b90
movzx ecx, al
test ecx, ecx
je 0x517a74
call fcn.0043cd80
mov ecx, eax
call fcn.0043ad40
push eax
lea ecx, [ebp - 0x44]
call fcn.00405350
jmp 0x517a88
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.00405e80
push eax
lea ecx, [ebp - 0x44]
call fcn.0041edc0
lea ecx, [ebp - 0x24]
call fcn.00406460
shl eax, 1
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x24]
call fcn.00406470
push eax
push 1
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00405e80
push eax
lea ecx, [ebp - 0x44]
call fcn.00403c80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00403c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405ef0
push 1
call fcn.0043ce50
mov ecx, eax
call fcn.0046fe80
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x38]
test ecx, ecx
jne 0x517b1a
push 0x7f0c40
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
call fcn.0040cb00
add esp, 8
movzx eax, al
test eax, eax
je 0x517bbf
mov ecx, dword [ebp - 0x14]
call fcn.004662c0
test eax, eax
jne 0x517bbf
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x40
call fcn.00405e80
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x68], esp
push eax
mov ecx, dword [ebp + 8]
call fcn.00405e80
push eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.00517d60
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0x64]
call fcn.00523550
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
push 0x7f0c44
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
call fcn.005038e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0043b460
push 1
call fcn.0043ce50
mov ecx, eax
call fcn.0046fe80
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call fcn.004662c0
test eax, eax
jne 0x517bbf
xor eax, eax
jmp 0x517d37
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
call fcn.005020a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x517be1
xor eax, eax
jmp 0x517d37
push 0x7f0c48
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.0040cb00
add esp, 8
movzx edx, al
test edx, edx
je 0x517d34
mov ecx, dword [ebp + 8]
add ecx, 0x2c
call fcn.00403b90
movzx eax, al
test eax, eax
jne 0x517c1a
mov eax, dword [ebp - 0x10]
jmp 0x517d37
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
call fcn.00504b10
push 0x7f0c54
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
call fcn.0040cb00
add esp, 8
movzx eax, al
test eax, eax
je 0x517c6e
mov ecx, dword [ebp + 8]
add ecx, 0x40
call fcn.00405e80
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00405e80
push eax
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
call fcn.005055c0
jmp 0x517d34
push 0x7f0c58
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
call fcn.0040cb00
add esp, 8
movzx eax, al
test eax, eax
je 0x517d34
mov ecx, dword [ebp + 8]
add ecx, 0x40
call fcn.00406470
push eax
lea ecx, [ebp - 0x84]
call fcn.00403bf0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00406470
push eax
lea ecx, [ebp - 0xa0]
call fcn.00403bf0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00406470
push eax
lea ecx, [ebp - 0xbc]
call fcn.00403bf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
call fcn.00507990
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.00403c30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.00403c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00403c30
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 4