Function at 0x403c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f021
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x414084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x274], ebx
xor eax, eax
mov word [ebp - 0x26c], ax
push 0x16
mov eax, str.SOFTWARETencentQTalk
lea esi, [ebp - 0x26c]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], 0x104
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
call fcn.004031c0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x403d04
mov eax, esi
lea ecx, [ebp - 0x270]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403ed5
xor edx, edx
push 0x13
mov eax, str.SOFTWARETencentQT
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
call fcn.004031c0
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x234], ax
push 0x17
mov eax, str.SOFTWARETencentQQTalk
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
call fcn.004031c0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x403d98
lea eax, [ebp - 0x250]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x270]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call esi
test eax, eax
je 0x403e86
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x403dd0
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x270]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call esi
test eax, eax
je 0x403e86
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
push ebx
mov eax, 0x412240
mov esi, edi
call fcn.004031c0
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x403e25
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00404547
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], esi
jb 0x403e55
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404547
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x258], esi
jb 0x403f95
mov edx, dword [ebp - 0x26c]
push edx
jmp 0x403f8d
cmp dword [ebp - 0x220], 8
jb 0x403e9e
mov eax, dword [ebp - 0x234]
push eax
call fcn.00404547
add esp, 4
xor ecx, ecx
mov esi, 7
mov byte [ebp - 4], bl
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
jb 0x403eda
mov edx, dword [ebp - 0x250]
push edx
call fcn.00404547
add esp, 4
jmp 0x403eda
mov esi, 7
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.00408ee0
mov ecx, dword [ebp - 0x270]
add esp, 0xc
lea edx, [ebp - 0x274]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x270]
push edx
test eax, eax
je 0x403f3e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], ax
push ebx
mov eax, 0x412240
jmp 0x403f76
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x403f60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403f60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov esi, edi
call fcn.004031c0
cmp dword [ebp - 0x258], 8
jb 0x403f95
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.00404547
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404552
mov esp, ebp
pop ebp
ret