Function at 0x49c4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0c37
mov eax, dword fs:[0]
push eax
mov eax, 0x108c
call fcn.0055b970
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1098], ecx
mov byte [ebp - 0x21], 0
mov ecx, dword [ebp + 0x10]
call fcn.004553f0
push eax
push str.CLSID_s_
lea eax, [ebp - 0x30]
push eax
call fcn.004b4d50
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004b34d0
mov byte [ebp - 4], 1
push str.InprocServer32
lea ecx, [ebp - 0x1c]
call fcn.004b3b40
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.004553f0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49c6a5
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
jne 0x49c678
push str.TreatAs
lea ecx, [ebp - 0x30]
call fcn.004b3b40
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b3890
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.004553f0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49c678
mov dword [ebp - 0x838], 0x800
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x834]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x83c], 0
jne 0x49c678
lea edx, [ebp - 0x834]
push edx
lea ecx, [ebp - 0x1090]
call fcn.004b3550
mov byte [ebp - 4], 2
push 1
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1090]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1098]
call fcn.0049c4e0
mov byte [ebp - 0x1081], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1090]
call fcn.004b3860
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004b3860
mov al, byte [ebp - 0x1081]
jmp 0x49ca44
mov byte [ebp - 0x1091], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004b3860
mov al, byte [ebp - 0x1091]
jmp 0x49ca44
cmp dword [ebp - 0x20], 0
jne 0x49ca1a
mov dword [ebp - 0x840], 0x800
lea ecx, [ebp - 0x840]
push ecx
lea edx, [ebp - 0x1044]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49ca10
lea ecx, [ebp - 0x1044]
push ecx
lea ecx, [ebp - 0x1050]
call fcn.004b3550
mov byte [ebp - 4], 3
lea edx, [ebp - 0x1050]
push edx
mov ecx, dword [ebp - 0x1098]
call fcn.0049d750
push 1
lea eax, [ebp - 0x1050]
push eax
mov ecx, dword [ebp - 0x1098]
mov ecx, dword [ecx + 4]
call fcn.0041e0d0
mov dword [ebp - 0x1054], eax
cmp dword [ebp - 0x1054], 0
je 0x49ca01
push 1
mov ecx, dword [ebp - 0x1054]
call fcn.0048adc0
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x1054]
call fcn.00412ce0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1060]
call fcn.004b34d0
mov byte [ebp - 4], 4
push 0x5c
lea ecx, [ebp - 0x1060]
call fcn.004b3a80
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1060]
call fcn.004b3ad0
lea edx, [ebp - 0x1060]
push edx
mov ecx, dword [ebp - 0x1054]
call fcn.00412b10
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b3890
push str.ProgID
lea ecx, [ebp - 0x1c]
call fcn.004b3b40
lea ecx, [ebp - 0x1064]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.004553f0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49c8c7
mov dword [ebp - 0x840], 0x800
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x1044]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x1064]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c8ba
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x1050]
call fcn.004b38f0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1074]
call fcn.004b34d0
mov byte [ebp - 4], 5
push 0x5c
lea ecx, [ebp - 0x1074]
call fcn.004b3a80
lea edx, [ebp - 0x1050]
push edx
lea ecx, [ebp - 0x1074]
call fcn.004b3ad0
push 0x5c
lea ecx, [ebp - 0x1074]
call fcn.004b3a80
lea eax, [ebp - 0x1074]
push eax
mov ecx, dword [ebp - 0x1054]
call fcn.00412b10
push 0x608918
lea ecx, [ebp - 0x1050]
call fcn.004b4780
movzx ecx, al
test ecx, ecx
je 0x49c8ab
push 2
lea ecx, [ebp - 0x1074]
call fcn.00404b70
sub eax, 3
push eax
lea ecx, [ebp - 0x1074]
call fcn.004b5a90
lea edx, [ebp - 0x1074]
push edx
mov ecx, dword [ebp - 0x1054]
call fcn.00412b10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1074]
call fcn.004b3860
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004b3890
push 0x600998
lea ecx, [ebp - 0x1c]
call fcn.004b3b40
lea edx, [ebp - 0x1068]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.004553f0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49c9d8
mov dword [ebp - 0x840], 0x800
lea ecx, [ebp - 0x840]
push ecx
lea edx, [ebp - 0x1044]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1068]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c9cb
lea ecx, [ebp - 0x1044]
push ecx
lea ecx, [ebp - 0x1050]
call fcn.004b38f0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1080]
call fcn.004b34d0
mov byte [ebp - 4], 6
push 0x5c
lea ecx, [ebp - 0x1080]
call fcn.004b3a80
push 0x600998
lea ecx, [ebp - 0x1080]
call fcn.004b3b40
push 0x5c
lea ecx, [ebp - 0x1080]
call fcn.004b3a80
lea eax, [ebp - 0x1050]
push eax
lea ecx, [ebp - 0x1080]
call fcn.004b3ad0
push 0x5c
lea ecx, [ebp - 0x1080]
call fcn.004b3a80
lea ecx, [ebp - 0x1080]
push ecx
mov ecx, dword [ebp - 0x1054]
call fcn.00412b10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1080]
call fcn.004b3860
mov edx, dword [ebp - 0x1068]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1054]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1098]
call fcn.0049c1e0
mov byte [ebp - 0x21], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1060]
call fcn.004b3860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1050]
call fcn.004b3860
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x1092], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004b3860
mov al, byte [ebp - 0x1092]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret 0x14