Function at 0x401150
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x406b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
lea eax, [esp + 0x14]
push edi
xor ebx, ebx
push eax
push 4
push ebx
push ebx
mov edi, ecx
push 0x80000000
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4014c3
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x14]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.QQGameProtocol
push eax
call esi
mov ecx, edi
call fcn.004014e0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
mov ebp, eax
call fcn.00402050
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x48]
call fcn.00402160
mov edi, str.QQGwp.exe
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x98], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.QQGwp.exe
lea ecx, [esp + 0x48]
call fcn.004020a0
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x401220
mov eax, 0x4070e0
mov edx, dword [esp + 0x48]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 1
push ebx
push str.URL_Protocol
push eax
call ebp
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.DefaultIcon
push eax
mov dword [esp + 0x44], ebx
call esi
mov cl, byte [esp + 0x40]
push ebx
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call fcn.00402050
mov edx, dword [0x4070dc]
lea eax, [esp + 0x40]
push edx
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00401cb0
mov edi, 0x408084
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x98], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x408084
lea ecx, [esp + 0x38]
call fcn.004020a0
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4012b9
mov eax, 0x4070e0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push ecx
push eax
push 1
push ebx
push ebx
push edx
call ebp
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.shell
push edx
mov dword [esp + 0x48], ebx
call esi
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.open
push edx
mov dword [esp + 0x4c], ebx
call esi
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push edx
mov dword [esp + 0x50], ebx
call esi
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0x64], al
call fcn.00402050
mov edi, str.____1_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.____1_
lea ecx, [esp + 0x68]
call fcn.00402160
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x54], cl
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 2
call fcn.00402050
mov edi, 0x408068
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x408068
lea ecx, [esp + 0x58]
call fcn.00402160
lea edx, [esp + 0x40]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
mov byte [esp + 0xa4], 3
call fcn.00402530
lea edx, [esp + 0x6c]
mov byte [esp + 0xa4], 4
push edx
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00402530
add esp, 0x18
mov ecx, dword [0x4070dc]
mov byte [esp + 0x98], 5
push ecx
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00401cb0
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 4
call fcn.00402050
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.00402050
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 2
call fcn.00402050
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 1
call fcn.00402050
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40144e
mov eax, 0x4070e0
mov edx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x34]
push 1
push ebx
push ebx
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
pop ebp
cmp ecx, ebx
je 0x401491
mov al, byte [ecx - 1]
cmp al, bl
je 0x401487
cmp al, 0xff
je 0x401487
dec al
mov byte [ecx - 1], al
jmp 0x401491
dec ecx
push ecx
call fcn.00402830
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x4014c1
mov al, byte [ecx - 1]
cmp al, bl
je 0x4014b7
cmp al, 0xff
je 0x4014b7
dec al
mov byte [ecx - 1], al
jmp 0x4014c1
dec ecx
push ecx
call fcn.00402830
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret