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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50377a
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x567e00]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x16c], ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x184], ebx
lea eax, [ebp - 0x170]
mov dword [ebp - 4], edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43f1a2
mov eax, dword [ebp - 0x17c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x43f769
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x160]
mov dword [ebp - 0x178], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
push eax
push 0
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x43f755
mov ecx, dword [0x56d69c]
mov eax, dword fs:[0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x180], eax
lea ecx, [ecx]
lea eax, [ebp - 0x164]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43f70d
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x174]
mov dword [ebp - 0x160], 4
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f705
test byte [ebp - 0x174], 4
je 0x43f705
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.ComponentId
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f4f0
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f2c5
sub ecx, edx
lea eax, [ebp - 0x110]
cmp byte [ebp + 0xc], 0
push ecx
push eax
je 0x43f33c
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
call fcn.0041a800
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 1
or ebx, 2
push eax
mov dword [ebp - 0x16c], ebx
call fcn.00446cc0
add esp, 4
test al, al
je 0x43f4f0
mov byte [ebp - 0x159], 0
jmp 0x43f4f7
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.0041a800
mov eax, dword [ebp - 0x180]
or ebx, 4
mov dword [ebp - 0x16c], ebx
mov ecx, dword [eax]
mov eax, dword [0x56cec8]
cmp eax, dword [ecx + 4]
jg 0x43f78b
mov ecx, dword [0x56cec0]
cmp dword [0x56cebc], ecx
jne 0x43f492
mov ax, word [0x51e8e4]
mov edx, dword [str.msloop]
mov word [ebp - 0x124], ax
mov al, byte [0x51e8e6]
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x128], edx
mov byte [ebp - 0x122], al
mov byte [ebp - 0x121], 0
mov dword [ebp - 4], 3
cmp ecx, dword [0x56cec4]
je 0x43f436
mov eax, dword [ebp - 0x124]
mov dword [ecx], edx
mov edx, 0xf
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 7
mov dword [ecx + 0x14], 0xf
mov ecx, dword [0x56cec0]
add ecx, 0x18
mov byte [ebp - 0x128], 0
mov dword [0x56cec0], ecx
jmp 0x43f454
lea eax, [ebp - 0x128]
push eax
push ecx
mov ecx, 0x56cebc
call fcn.0043cd20
mov ecx, dword [0x56cec0]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x43f492
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43f482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f785
push edx
push ecx
call fcn.004c6f6f
mov ecx, dword [0x56cec0]
add esp, 8
mov esi, dword [0x56cebc]
cmp esi, ecx
je 0x43f4db
lea esp, [esp]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x43f4aa
mov ecx, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
push ecx
cmovae eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x43f4ea
add esi, 0x18
cmp esi, dword [0x56cec0]
jne 0x43f4a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x159], 0
jmp 0x43f4f7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x159], 1
mov dword [ebp - 4], 1
test bl, 4
je 0x43f561
mov edx, dword [ebp - 0x12c]
and ebx, 0xfffffffb
mov dword [ebp - 0x16c], ebx
cmp edx, 0x10
jb 0x43f546
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43f53c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f785
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov dword [ebp - 4], 0
test bl, 2
je 0x43f5b0
mov edx, dword [ebp - 0x144]
and ebx, 0xfffffffd
mov dword [ebp - 0x16c], ebx
cmp edx, 0x10
jb 0x43f5b0
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43f5a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f785
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp byte [ebp - 0x159], 0
jne 0x43f705
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f705
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x118], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f626
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.0041a800
mov byte [ebp - 4], 4
cmp edi, dword [ebp - 0x184]
je 0x43f6ae
mov eax, dword [ebp - 0x128]
mov edx, 0xf
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [edi + 0x14], eax
add edi, 0x18
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x188], edi
jmp 0x43f6cd
lea eax, [ebp - 0x128]
push eax
push edi
lea ecx, [ebp - 0x18c]
call fcn.0043cd20
mov edi, dword [ebp - 0x188]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x43f705
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43f6fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f785
push edx
push ecx
call fcn.004c6f6f
add esp, 8
push dword [ebp - 0x164]
call esi
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x160]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
inc eax
push ecx
push eax
push dword [ebp - 0x170]
mov dword [ebp - 0x178], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x43f200
mov esi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x184]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
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.004c6f8b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x56cec8
call fcn.004c7345
add esp, 4
cmp dword [0x56cec8], 0xffffffff
jne 0x43f38e
push 0x511800
mov dword [0x56cebc], 0
mov dword [0x56cec0], 0
mov dword [0x56cec4], 0
call fcn.004c71fd
push 0x56cec8
call fcn.004c72fb
add esp, 8
jmp 0x43f38e