Function at 0x4c4ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511d43
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x556754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x858], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x848], 0
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x4c54b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x848], 1
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x4c54be
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x840], eax
push 0x515448
lea ecx, [ebp - 0x840]
mov dword [ebp - 4], 1
call fcn.0040f500
test al, al
jne 0x4c4f5c
push 0
push 0x515448
lea ecx, [ebp - 0x840]
call fcn.0040b860
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
call fcn.004c5620
mov edx, dword [0x55ddc4]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x4c4f9e
cmp dword [ecx + 0x10], esi
jge 0x4c4f8b
mov ecx, dword [ecx + 8]
jmp 0x4c4f8f
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x4c4f81
cmp eax, edx
je 0x4c4f9e
cmp esi, dword [eax + 0x10]
jge 0x4c4fa0
mov eax, edx
cmp edx, eax
je 0x4c4fd0
mov edx, dword [eax + 0x14]
test edx, edx
jne 0x4c4faf
xor ecx, ecx
jmp 0x4c4fc3
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4fb4
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x840]
call fcn.0040b860
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x4c54c8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x83c], eax
push 0x5161e8
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 3
call fcn.0040f500
test al, al
jne 0x4c5017
push 3
push 0x5161e8
lea ecx, [ebp - 0x83c]
call fcn.0040b860
dec esi
mov byte [ebp - 4], 4
cmp esi, 0xd
ja case.0x4c502c.5
movzx eax, byte [esi + 0x4c54f8]
jmp dword [eax*4 + 0x4c54e8]
lea ecx, [ebp - 0x844]
call fcn.00423700
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 0
mov edi, dword [ebp - 0x840]
lea ecx, [ebp - 0x854]
push 0x20219
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 6
call fcn.004c57d0
test eax, eax
jne 0x4c5279
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004d5900
add esp, 0xc
mov dword [ebp - 0x834], 0x104
lea eax, [ebp - 0x834]
lea ecx, [ebp - 0x854]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x83c]
call fcn.004c5880
test eax, eax
jne 0x4c50ee
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c50d0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040b860
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004d5900
add esp, 0xc
mov dword [ebp - 0x834], 0x104
lea eax, [ebp - 0x834]
lea ecx, [ebp - 0x854]
push eax
lea eax, [ebp - 0x628]
push eax
push str.SUBPID
call fcn.004c5880
test eax, eax
jne 0x4c5162
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5140
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x844]
call fcn.0040b860
mov esi, dword [ebp - 0x844]
cmp dword [esi - 0xc], 0
jne 0x4c5180
push ebx
lea ecx, [ebp - 0x844]
call fcn.00408da0
mov esi, dword [ebp - 0x844]
mov eax, dword [ebx]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4c5198
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4c51ae
call fcn.0040b050
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4c54d2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x848], 3
mov dword [ebp - 0x838], eax
mov eax, dword [ebx]
push 2
push 0x52d3a8
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.0040f6d0
add esp, 0x14
mov eax, dword [ebp - 0x838]
mov byte [ebp - 4], 8
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4c51fe
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4c5214
call fcn.0040b050
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4c54dc
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x848], 7
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x838]
push esi
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.0040f6d0
add esp, 0x14
lea eax, [ebp - 0x834]
mov ecx, ebx
push eax
call fcn.00408da0
lea ecx, [ebp - 0x834]
call fcn.00408570
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x848], 1
call fcn.00408570
jmp 0x4c527f
mov esi, dword [ebp - 0x844]
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x4c5290
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5459
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c5459
push 0x208
lea eax, [ebp - 0x830]
mov dword [ebp - 0x838], 1
push 0
push eax
mov dword [ebp - 0x834], 0x104
call fcn.004d5900
mov edi, dword [ebp - 0x840]
lea eax, [ebp - 0x834]
add esp, 0xc
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 0x83c]
push edi
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4c5459
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5320
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040b860
jmp 0x4c5459
push 8
push str.VendorID
lea ecx, [ebp - 0x83c]
call fcn.0040b860
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 0
mov edi, dword [ebp - 0x840]
lea ecx, [ebp - 0x854]
push 0x20219
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 9
call fcn.004c57d0
mov esi, dword [ebp - 0x854]
test eax, eax
jne 0x4c544e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d5900
add esp, 0xc
mov dword [ebp - 0x834], 0x208
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
push dword [ebp - 0x83c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c544e
mov eax, dword [ebp - 0x838]
cmp eax, 1
je 0x4c53f9
cmp eax, 2
jne 0x4c544e
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x4c5416
test al, 1
jne 0x4c544e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4c541f
jmp 0x4c544e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5430
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040b860
test esi, esi
je 0x4c5459
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x83c]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c547d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4c5496
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d96
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
nop
inc ebx
push ebx
dec esp
add byte [ebp + 0x33004c52], dh
push eax
dec esp
add byte [ebp + 0x53], dl
dec esp
add byte [eax], al
add byte [ecx], al
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add byte [ebx], al
add ah, cl
int3