Function at 0x405780
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48b8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x60], ebp
call fcn.004048d0
test eax, eax
jne 0x405859
call fcn.00404970
test eax, eax
jne 0x405859
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebp
push str.SOFTWARETencentQQPinyin
push SysReAllocStringLen
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x405801
mov esi, dword [esp + 0x14]
jmp 0x405820
push SysReAllocStringLen
mov edx, str.SOFTWARETencentQQPinyin
lea esi, [esp + 0x1c]
call fcn.00416a50
test eax, eax
jne 0x405944
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebp
push edi
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x40584b
push esi
call ebx
xor esi, esi
xor eax, eax
cmp edi, ebp
sete al
mov edi, eax
jmp 0x4059b4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
lea ebx, [esp + 0x1c]
mov byte [esp + 0x60], 1
call fcn.004049f0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.0040c2f0
mov ebx, 8
mov byte [esp + 0x60], 1
cmp dword [esp + 0x34], ebx
jb 0x4058a6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00469050
add esp, 4
push 1
push 0x492c00
lea ecx, [esp + 0x40]
call fcn.0040dd80
mov eax, str.SOFTWARETencentQQPinyin
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4058c0
sub eax, edx
sar eax, 1
push eax
push str.SOFTWARETencentQQPinyin
lea ecx, [esp + 0x40]
call fcn.0040dd80
cmp dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
jae 0x4058ec
lea eax, [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebp
push eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x405911
mov esi, dword [esp + 0x14]
jmp 0x40595b
cmp dword [esp + 0x50], ebx
mov edx, dword [esp + 0x3c]
jae 0x40591f
lea edx, [esp + 0x3c]
push reloc.WS2_32.dll_closesocket
lea esi, [esp + 0x1c]
call fcn.00416a50
test eax, eax
je 0x405957
cmp dword [esp + 0x50], ebx
jb 0x405944
mov eax, dword [esp + 0x3c]
push eax
call fcn.00469050
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405953
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4059bd
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebp
push edi
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x405986
push esi
call ebx
xor esi, esi
xor eax, eax
cmp edi, ebp
sete al
cmp dword [esp + 0x50], 8
mov edi, eax
jb 0x4059a3
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00469050
add esp, 4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
cmp esi, ebp
je 0x4059bb
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469efd
add esp, 0x50
ret