Function at 0x412070
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x478
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
mov ebp, dword [esp + 0x484]
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jg 0x413087
push 0x206
lea ecx, [esp + 0x76]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 4
mov dword [esp + 0x28], ebx
mov word [esp + 0x7c], ax
call fcn.00422f70
add esp, 0xc
push 0x206
lea eax, [esp + 0x27e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x284], dx
call fcn.00422f70
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x20119
xor eax, eax
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov byte [esp + 0x61], al
mov dword [esp + 0x2c], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412694
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x84]
push eax
push ebx
push ecx
xor esi, esi
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41266e
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20119
push ebx
lea eax, [esp + 0x7c]
push eax
inc esi
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412645
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x34]
push eax
push ebx
push str.ServiceName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412645
cmp dword [esp + 0x1c], ebx
jbe 0x412645
cmp edi, ebx
je 0x4121cf
push edi
call fcn.0041960a
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041884e
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.00422f70
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x34]
push eax
push ebx
push str.ServiceName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412645
mov esi, edi
call fcn.00410c50
mov esi, eax
cmp esi, 0xffffffff
je 0x412632
push ebx
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412627
cmp dword [esp + 0x24], ebx
jne 0x412627
mov edx, dword [ebp]
shl edx, 4
lea eax, [edx + ebp + 0xc48]
push eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
push ebp
lea ecx, [esp + 0x44]
call fcn.00410e30
test eax, eax
jne 0x4122d1
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x12
lea edx, [esp + 0x48]
push edx
push 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov word [esp + 0x60], ax
lea eax, [esp + 0x24]
push eax
push 0x170002
push esi
mov dword [esp + 0x30], 0x10205
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp edi, ebx
je 0x4122e0
push edi
call fcn.0041960a
add esp, 4
xor edi, edi
movzx ecx, byte [esp + 0x41]
movzx edx, byte [esp + 0x40]
movzx eax, byte [esp + 0x3f]
push ecx
movzx ecx, byte [esp + 0x42]
push edx
movzx edx, byte [esp + 0x45]
push eax
movzx eax, byte [esp + 0x48]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push ecx
call fcn.0041a513
mov eax, dword [ebp]
mov ecx, dword [esp + 0x70]
lea edx, [eax + eax*8]
mov dword [ebp + edx*2 + 0x194], ecx
lea eax, [ebp + edx*2 + 0x194]
mov edx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], cl
push ebx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x12
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4123f7
movzx edx, byte [esp + 0x41]
movzx eax, byte [esp + 0x40]
movzx ecx, byte [esp + 0x3f]
push edx
movzx edx, byte [esp + 0x42]
push eax
movzx eax, byte [esp + 0x45]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0041a513
mov eax, dword [ebp]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [ebp + eax*2 + 0x2c], ecx
mov edx, dword [esp + 0x74]
lea eax, [ebp + eax*2 + 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], cl
push ebx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x12
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010102
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4124a7
movzx edx, byte [esp + 0x41]
movzx eax, byte [esp + 0x40]
movzx ecx, byte [esp + 0x3f]
push edx
movzx edx, byte [esp + 0x42]
push eax
movzx eax, byte [esp + 0x45]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0041a513
mov eax, dword [ebp]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [ebp + eax*2 + 0xe0], ecx
mov edx, dword [esp + 0x74]
lea eax, [ebp + eax*2 + 0xe0]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], cl
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x34]
push eax
push ebx
push str.Description
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412548
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x412548
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041884e
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.00422f70
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x34]
push eax
push ebx
push str.Description
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + ebp + 0x248]
push edi
push edx
call fcn.00422ff0
add esp, 0xc
cmp edi, ebx
je 0x4125d6
jmp 0x4125cb
push 0x208
lea eax, [esp + 0x27c]
push ebx
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00422f70
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x208
lea edx, [esp + 0x284]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4125d6
cmp dword [esp + 0x18], ebx
jbe 0x4125d6
lea ecx, [esp + 0x278]
push ecx
call fcn.004010c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4125d6
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + ebp + 0x248]
push edi
push edx
call fcn.00422ff0
add esp, 0xc
push edi
call fcn.0041960a
add esp, 4
xor edi, edi
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010e
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412617
test byte [esp + 0x24], 0x20
je 0x412617
mov eax, dword [ebp]
mov dword [ebp + eax*4 + 0x1738], 1
cmp esi, ebx
je 0x412622
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp]
jmp 0x412632
cmp esi, ebx
je 0x412632
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412645
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x84]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x412164
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412681
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x412694
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov eax, dword [ebp]
cmp eax, ebx
jg 0x413087
lea ecx, [esp + 0x20]
push ecx
push 0x20119
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412abc
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x84]
push eax
push ebx
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412a96
jmp 0x412700
inc dword [esp + 0x30]
lea esi, [esp + 0x70]
mov dword [esp + 0x28], 0x104
call fcn.00410c50
mov esi, eax
cmp esi, 0xffffffff
je 0x412a6d
push ebx
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412a62
cmp dword [esp + 0x24], ebx
jne 0x412a62
mov edx, dword [ebp]
shl edx, 4
lea eax, [edx + ebp + 0xc48]
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x70]
push edx
push ebp
lea ecx, [esp + 0x44]
call fcn.00410e30
test eax, eax
jne 0x4127c3
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10205
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0041a513
mov eax, dword [ebp]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
mov dword [ebp + ecx*2 + 0x194], edx
lea eax, [ebp + ecx*2 + 0x194]
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
mov byte [eax + 0x10], dl
add esp, 0x20
xor eax, eax
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4128d8
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0041a513
mov eax, dword [ebp]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [ebp + ecx*2 + 0x2c]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x1c]
push eax
push 0x12
lea ecx, [esp + 0x48]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010102
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412983
movzx eax, byte [esp + 0x41]
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push ecx
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0041a513
mov eax, dword [ebp]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [ebp + ecx*2 + 0xe0]
mov dword [eax], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], dl
push 0x208
lea eax, [esp + 0x27c]
push ebx
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00422f70
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x208
lea edx, [esp + 0x284]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412a11
cmp dword [esp + 0x18], ebx
jbe 0x412a11
lea ecx, [esp + 0x278]
push ecx
call fcn.004010c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x412a11
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + ebp + 0x248]
push edi
push edx
call fcn.00422ff0
add esp, 0xc
push edi
call fcn.0041960a
add esp, 4
xor edi, edi
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010e
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412a52
test byte [esp + 0x24], 0x20
je 0x412a52
mov eax, dword [ebp]
mov dword [ebp + eax*4 + 0x1738], 1
cmp esi, ebx
je 0x412a5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp]
jmp 0x412a6d
cmp esi, ebx
je 0x412a6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x84]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x412700
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412aa9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x412abc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov eax, dword [ebp]
cmp eax, ebx
jg 0x413087
lea edx, [esp + 0x20]
push edx
push 0x20119
push ebx
push str.SYSTEMCurrentControlSetCONTROLCLASS4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413084
mov edx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebx
push edx
xor esi, esi
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x413062
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x20119
push ebx
lea ecx, [esp + 0x7c]
push ecx
inc esi
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413039
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.NetCfgInstanceId
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413039
cmp dword [esp + 0x1c], ebx
jbe 0x413039
cmp edi, ebx
je 0x412b84
push edi
call fcn.0041960a
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041884e
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.00422f70
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x34]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413039
mov esi, edi
call fcn.00410c50
mov esi, eax
cmp esi, 0xffffffff
jne 0x412c03
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x413039
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x413039
push ebx
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41302e
cmp dword [esp + 0x24], ebx
jne 0x41302e
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push str.Characteristics
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412c6c
test byte [esp + 0x38], 4
je 0x41302e
mov eax, dword [ebp]
shl eax, 4
lea ecx, [eax + ebp + 0xc48]
push ecx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
push ebp
lea ecx, [esp + 0x44]
call fcn.00410e30
test eax, eax
jne 0x412ccd
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x12
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10205
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx edx, byte [esp + 0x41]
movzx eax, byte [esp + 0x40]
movzx ecx, byte [esp + 0x3f]
push edx
movzx edx, byte [esp + 0x42]
push eax
movzx eax, byte [esp + 0x45]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0041a513
mov eax, dword [ebp]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [ebp + eax*2 + 0x194], ecx
mov edx, dword [esp + 0x74]
mov dword [ebp + eax*2 + 0x198], edx
mov ecx, dword [esp + 0x78]
lea eax, [ebp + eax*2 + 0x194]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], cl
push ebx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x12
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412de8
movzx edx, byte [esp + 0x41]
movzx eax, byte [esp + 0x40]
movzx ecx, byte [esp + 0x3f]
push edx
movzx edx, byte [esp + 0x42]
push eax
movzx eax, byte [esp + 0x45]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0041a513
mov eax, dword [ebp]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [ebp + eax*2 + 0x2c], ecx
mov edx, dword [esp + 0x74]
lea eax, [ebp + eax*2 + 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], cl
push ebx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x12
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010102
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412e98
movzx edx, byte [esp + 0x41]
movzx eax, byte [esp + 0x40]
movzx ecx, byte [esp + 0x3f]
push edx
movzx edx, byte [esp + 0x42]
push eax
movzx eax, byte [esp + 0x45]
push ecx
movzx ecx, byte [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0041a513
mov eax, dword [ebp]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [ebp + eax*2 + 0xe0], ecx
mov edx, dword [esp + 0x74]
lea eax, [ebp + eax*2 + 0xe0]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
add esp, 0x20
mov byte [eax + 0x10], cl
mov dword [esp + 0x1c], ebx
cmp edi, ebx
je 0x412eab
push edi
call fcn.0041960a
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x34]
push eax
push ebx
push str.DriverDesc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412f48
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x412f48
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041884e
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.00422f70
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x34]
push eax
push ebx
push str.DriverDesc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + ebp + 0x248]
push edi
push edx
call fcn.00422ff0
add esp, 0xc
cmp edi, ebx
je 0x412fd6
jmp 0x412fcb
push 0x208
lea eax, [esp + 0x27c]
push ebx
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00422f70
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x208
lea edx, [esp + 0x284]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412fd6
cmp dword [esp + 0x18], ebx
jbe 0x412fd6
lea ecx, [esp + 0x278]
push ecx
call fcn.004010c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x412fd6
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + ebp + 0x248]
push edi
push edx
call fcn.00422ff0
add esp, 0xc
push edi
call fcn.0041960a
add esp, 4
xor edi, edi
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010e
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x413017
test byte [esp + 0x24], 0x20
je 0x413017
mov eax, dword [ebp]
mov dword [ebp + eax*4 + 0x1738], 1
inc dword [ebp]
cmp esi, ebx
je 0x412be7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412be7
cmp esi, ebx
je 0x413039
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x84]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x412b19
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x413075
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x413084
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418878
add esp, 0x478
ret 4