Function at 0x49ce02
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x63fa02
call fcn.0062f2c8
sub esp, 0x68
cmp dword [0x71514c], 0
jne 0x49ce22
mov dword [0x71514c], str.SOFTWAREKasperskyLabBinaries
push esi
mov esi, dword [0x715f8c]
mov ecx, esi
push edi
call dword [0x65dbac]
call esi
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x49ce44
xor al, al
jmp 0x49d11b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push ebx
push eax
mov eax, dword [0x715150]
xor ebx, ebx
shl eax, 7
mov ecx, esi
not eax
mov dword [ebp - 0x14], ebx
and eax, 0x200
or eax, 9
push eax
push ebx
push dword [0x71514c]
push 0x80000002
call dword [0x65dbac]
call esi
test eax, eax
je 0x49ce88
xor al, al
jmp 0x49d11a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x74]
call fcn.0049d5b3
add esp, 4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call dword [0x65dbac]
call esi
test eax, eax
jne 0x49d110
mov eax, dword [ebp - 0x1c]
mov esi, dword [0x715fc0]
mov ecx, esi
lea eax, [eax*2 + 2]
push eax
push 8
push edi
call dword [0x65dbac]
call esi
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x49d110
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x34], esi
call fcn.0049d5d6
xor ebx, ebx
xor eax, eax
inc ebx
mov ecx, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x2c], eax
jbe 0x49d106
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x65dbac]
call esi
test eax, eax
jne 0x49d104
mov eax, dword [0x715150]
lea ecx, [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
shl eax, 7
not eax
mov dword [ebp - 0x18], edx
push ecx
and eax, 0x200
mov ecx, esi
or eax, ebx
push eax
push edx
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
call dword [0x65dbac]
call esi
test eax, eax
jne 0x49d0d8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0049d5b3
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ecx
push eax
push ecx
push dword [0x715fa0]
mov byte [ebp - 0xd], cl
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call dword [0x65dbac]
call esi
test eax, eax
jne 0x49d0cd
mov eax, dword [ebp - 0x20]
mov esi, dword [0x715fc0]
add eax, 4
push eax
push 8
push edi
mov ecx, esi
mov dword [ebp - 0x28], eax
call dword [0x65dbac]
call esi
mov edi, eax
test edi, edi
je 0x49d0f6
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edi
call fcn.0049d5d6
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push dword [0x715fa0]
push dword [ebp - 0x18]
call dword [0x65dbac]
call esi
test eax, eax
jne 0x49d0b8
mov esi, dword [0x715f94]
mov ecx, esi
push 0xffffffffffffffff
push dword [0x715fb0]
push 0xffffffffffffffff
push edi
push ebx
push 0x7f
call dword [0x65dbac]
call esi
cmp eax, 2
sete cl
mov byte [ebp - 0xd], cl
test cl, cl
jne 0x49d0ec
cmp dword [ebp - 0x24], 7
jne 0x49d0b8
mov eax, dword [ebp - 0x28]
movzx ecx, word [edi]
test cx, cx
jne 0x49d077
xor edx, edx
cmp word [edi + 2], dx
je 0x49d0b8
add edi, 2
test cx, cx
jne 0x49d0ad
mov esi, dword [0x715f94]
mov ecx, esi
push 0xffffffffffffffff
push dword [0x715fb0]
push 0xffffffffffffffff
push edi
push ebx
push 0x7f
call dword [0x65dbac]
call esi
cmp eax, 2
sete al
mov byte [ebp - 0xd], al
test al, al
jne 0x49d0ec
mov eax, dword [ebp - 0x28]
sub eax, 2
mov dword [ebp - 0x28], eax
cmp eax, 4
ja 0x49d067
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0049d48e
cmp byte [ebp - 0xd], 0
jne 0x49d0fa
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0049d513
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x2c]
jae 0x49d104
mov esi, dword [ebp - 0x3c]
jmp 0x49cf1e
lea ecx, [ebp - 0x50]
call fcn.0049d48e
jmp 0x49d0fa
xor eax, eax
mov bl, al
lea ecx, [ebp - 0x5c]
call fcn.0049d513
jmp 0x49d108
xor eax, eax
mov bl, al
lea ecx, [ebp - 0x68]
call fcn.0049d48e
lea ecx, [ebp - 0x74]
call fcn.0049d513
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret