Function at 0x49f0c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x59dda0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 4]
mov ebp, dword [eax]
mov edi, ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edi
lea ebx, [ebx]
mov esi, dword [ecx + 4]
xor ebx, ebx
cmp edi, ebx
je 0x49f10d
cmp edi, ecx
je 0x49f112
call fcn.00578ff3
cmp ebp, esi
je 0x49f3ad
cmp edi, ebx
jne 0x49f123
call fcn.00578ff3
cmp ebp, dword [edi + 4]
jne 0x49f12d
call fcn.00578ff3
mov eax, dword [ebp + 0xc]
sub eax, 0x10
call fcn.00403ce0
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], ebx
cmp dword [esi - 0xc], ebx
jl 0x49f365
push 0x5c77f0
push esi
call fcn.0057880c
add esp, 8
cmp eax, ebx
je 0x49f365
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x49f365
push str.SoftwareTencentQQPinyin
push 0x5c77f0
lea eax, [esp + 0x20]
push eax
call fcn.00428840
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x2001f
push ebx
push ebx
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x30]
push ebx
push eax
push closesocket
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x49f354
cmp ebp, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ebx
jne 0x49f1c9
call fcn.00578ff3
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
lea edi, [ebp + 0x10]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
lea esp, [esp]
mov ecx, dword [esp + 0x30]
cmp ebp, dword [ecx + 4]
jne 0x49f1ee
call fcn.00578ff3
test edi, edi
lea eax, [ebp + 0x10]
mov ebp, dword [eax + 4]
je 0x49f203
mov eax, dword [esp + 0x34]
add eax, 0x10
cmp edi, eax
je 0x49f208
call fcn.00578ff3
cmp esi, ebp
je 0x49f349
test edi, edi
mov dword [esp + 0x20], 0
jne 0x49f221
call fcn.00578ff3
cmp esi, dword [edi + 4]
jne 0x49f22b
call fcn.00578ff3
mov eax, dword [esi + 0xc]
push 0
push 0
lea edx, [esp + 0x28]
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49f28c
cmp dword [esp + 0x20], 1
je 0x49f2f2
cmp esi, dword [edi + 4]
jne 0x49f25a
call fcn.00578ff3
mov eax, dword [esi + 0x10]
push 0xa
push 0
push eax
call fcn.00578c22
add esp, 0xc
mov dword [esp + 0x24], eax
cmp esi, dword [edi + 4]
jne 0x49f278
call fcn.00578ff3
mov ecx, dword [esi + 0xc]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push ecx
jmp 0x49f328
cmp esi, dword [edi + 4]
jne 0x49f296
call fcn.00578ff3
mov ecx, dword [esi + 0x10]
movzx eax, word [ecx]
test ax, ax
je 0x49f2b9
cmp ax, 0x30
jb 0x49f2f2
cmp ax, 0x39
ja 0x49f2f2
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x49f2a1
cmp esi, dword [edi + 4]
jne 0x49f2c3
call fcn.00578ff3
mov eax, dword [esi + 0x10]
push 0xa
push 0
push eax
call fcn.00578c22
add esp, 0xc
mov dword [esp + 0x28], eax
cmp esi, dword [edi + 4]
jne 0x49f2e1
call fcn.00578ff3
mov ecx, dword [esi + 0xc]
push 4
lea eax, [esp + 0x2c]
push eax
push 4
push 0
push ecx
jmp 0x49f328
cmp esi, dword [edi + 4]
jne 0x49f2ff
call fcn.00578ff3
cmp esi, dword [edi + 4]
mov ebp, dword [esi + 0xc]
jne 0x49f309
call fcn.00578ff3
mov esi, dword [esi + 0x10]
test esi, esi
je 0x49f3a3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
lea edx, [eax + eax]
push edx
push esi
push 1
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [esp + 0x38]
call fcn.0046ca60
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
jmp 0x49f1e0
test ebx, ebx
je 0x49f354
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x49f370
mov dword [esp + 0x4c], 0xffffffff
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49f389
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x30]
call fcn.00464b40
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
jmp 0x49f100
push 0x80004005
call fcn.00404550
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4