Function at 0x4cc040
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x52744b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [esp + 0x150]
xor ebx, ebx
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x4cc25b
cmp byte [eax], bl
je 0x4cc25b
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cc25b
mov edx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4cc0e9
mov dword [esp + 0x18], 0x64
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x18], ebx
jbe 0x4cc250
mov eax, dword [0x56cf78]
mov edx, dword [eax + 0xc]
mov ecx, 0x56cf78
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push eax
push str._04u
lea edi, [esp + 0x24]
mov dword [esp + 0x150], ebx
call fcn.0040b0b0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push esi
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4cc183
lea eax, [esi - 0x10]
mov dword [esp + 0x148], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cc229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4cc229
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4cc1bc
mov edx, dword [esp + 0x14]
push edx
call ebp
jmp 0x4cc153
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4cc1dc
mov eax, dword [esp + 0x14]
push eax
call ebp
jmp 0x4cc153
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push str.Characteristics
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call ebp
lea eax, [esp + 0x1c]
cmp esi, ebx
je 0x4cc247
mov dword [esp + 0x148], 0xffffffff
call fcn.0042a660
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x18]
jb 0x4cc0fd
mov eax, dword [esp + 0x20]
push eax
call ebp
mov eax, ebx
jmp 0x4cc25d
mov ebx, dword [esp + 0x2c]
call fcn.0042a660
mov eax, dword [esp + 0x20]
push eax
call ebp
mov eax, ebx
jmp 0x4cc25d
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00501b9a
add esp, 0x138
ret