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

Disassembly:
sub esp, 0x474
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x470], eax
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebp, ebp
cmp eax, ebp
jg 0x47c3b5
push ebx
push edi
push 0x206
lea ecx, [esp + 0x76]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], 4
mov dword [esp + 0x28], ebp
mov word [esp + 0x7c], ax
call fcn.00487630
push 0x206
lea eax, [esp + 0x28a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x290], dx
call fcn.00487630
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
push 0x20119
xor eax, eax
push ebp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x50], 0
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], ebp
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x47b9e4
mov ecx, dword [esp + 0x20]
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x84]
push eax
push ebp
push ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47b9be
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20119
push ebp
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b993
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push ebp
push 0x4ab2ec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b993
cmp dword [esp + 0x1c], ebp
jbe 0x47b993
cmp edi, ebp
je 0x47b51e
push edi
call fcn.00487d04
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.0048690e
mov edi, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.00487630
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push 0
push str.ServiceName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b993
push edi
mov ecx, esi
call fcn.00479fb0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x47b97c
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push ebp
mov dword [esp + 0x30], 0x10114
call ebx
test eax, eax
je 0x47b971
cmp dword [esp + 0x28], 0
jne 0x47b971
mov edx, dword [esi]
shl edx, 4
lea eax, [edx + esi + 0xc48]
push eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 0x3c]
push ecx
push edi
mov ecx, esi
call fcn.0047a130
test eax, eax
jne 0x47b61b
push 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 ebp
mov dword [esp + 0x30], 0x10205
call ebx
test edi, edi
je 0x47b62a
push edi
call fcn.00487d04
add esp, 4
xor edi, edi
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 0x4ab31c
push edx
call fcn.00488a44
mov eax, dword [esi]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0x194], ecx
mov edx, dword [esp + 0x74]
mov dword [esi + eax*2 + 0x198], edx
mov ecx, dword [esp + 0x78]
lea eax, [esi + eax*2 + 0x194]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x80]
mov byte [eax + 0x10], cl
add esp, 0x20
xor eax, eax
push 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 ebp
mov dword [esp + 0x30], 0x1010101
call ebx
test eax, eax
je 0x47b73f
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 0x4ab33c
push edx
call fcn.00488a44
mov eax, dword [esi]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0x2c], ecx
mov edx, dword [esp + 0x74]
lea eax, [esi + 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
xor eax, eax
push 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 ebp
mov dword [esp + 0x30], 0x1010102
call ebx
test eax, eax
je 0x47b7ea
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 0x4ab35c
push edx
call fcn.00488a44
mov eax, dword [esi]
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
mov dword [esi + eax*2 + 0xe0], ecx
mov edx, dword [esp + 0x74]
lea eax, [esi + 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 0
lea eax, [esp + 0x38]
push eax
push 0
push 0x4ab37c
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b89c
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x47b89c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
mov edi, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.00487630
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push 0
push str.Description
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + esi + 0x248]
push edi
push edx
call fcn.004877d0
add esp, 0xc
test edi, edi
je 0x47b925
push edi
call fcn.00487d04
add esp, 4
jmp 0x47b923
push 0x208
lea eax, [esp + 0x27c]
push 0
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00487630
add esp, 0xc
push 0
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 ebp
call ebx
test eax, eax
je 0x47b925
cmp dword [esp + 0x18], 0
jbe 0x47b925
lea ecx, [esp + 0x278]
push ecx
call fcn.00466000
mov edi, eax
add esp, 4
test edi, edi
je 0x47b925
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + esi + 0x248]
push edi
push edx
call fcn.004877d0
push edi
call fcn.00487d04
add esp, 0x10
xor edi, edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebp
mov dword [esp + 0x30], 0x1010e
call ebx
test eax, eax
je 0x47b962
test byte [esp + 0x28], 0x20
je 0x47b962
mov eax, dword [esi]
mov dword [esi + eax*4 + 0x1738], 1
test ebp, ebp
je 0x47b96d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x47b97c
test ebp, ebp
je 0x47b97c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47b993
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x3c]
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 0x47b4b4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x47b9d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x47b9e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebp
mov eax, dword [esi]
cmp eax, ebp
jg 0x47c3b3
lea edx, [esp + 0x20]
push edx
push 0x20119
push ebp
push 0x4ab3b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47bdef
mov edx, dword [esp + 0x20]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebp
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47bdc5
inc dword [esp + 0x24]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0x104
call fcn.00479fb0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x47bd98
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x34]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push 0x170002
push ebp
mov dword [esp + 0x30], 0x10114
call ebx
test eax, eax
je 0x47bd8d
cmp dword [esp + 0x28], 0
jne 0x47bd8d
mov ecx, dword [esi]
shl ecx, 4
lea edx, [ecx + esi + 0xc48]
push edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, esi
call fcn.0047a130
test eax, eax
jne 0x47bb03
push eax
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 ebp
mov dword [esp + 0x30], 0x10205
call ebx
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 0x4ab42c
push eax
call fcn.00488a44
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
mov dword [esi + ecx*2 + 0x194], edx
lea eax, [esi + 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 eax
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 ebp
mov dword [esp + 0x30], 0x1010101
call ebx
test eax, eax
je 0x47bc12
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 0x4ab44c
push eax
call fcn.00488a44
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + 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 eax
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 ebp
mov dword [esp + 0x30], 0x1010102
call ebx
test eax, eax
je 0x47bcb8
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 0x4ab46c
push eax
call fcn.00488a44
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + 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 0
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00487630
add esp, 0xc
push 0
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 ebp
call ebx
test eax, eax
je 0x47bd41
cmp dword [esp + 0x18], 0
jbe 0x47bd41
lea ecx, [esp + 0x278]
push ecx
call fcn.00466000
mov edi, eax
add esp, 4
test edi, edi
je 0x47bd41
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + esi + 0x248]
push edi
push edx
call fcn.004877d0
push edi
call fcn.00487d04
add esp, 0x10
xor edi, edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebp
mov dword [esp + 0x30], 0x1010e
call ebx
test eax, eax
je 0x47bd7e
test byte [esp + 0x28], 0x20
je 0x47bd7e
mov eax, dword [esi]
mov dword [esi + eax*4 + 0x1738], 1
test ebp, ebp
je 0x47bd89
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
jmp 0x47bd98
test ebp, ebp
je 0x47bd98
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
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 0x47ba42
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x47bdda
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x47bded
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebp
xor ebp, ebp
mov eax, dword [esi]
cmp eax, ebp
jg 0x47c3b3
lea edx, [esp + 0x20]
push edx
push 0x20119
push ebp
push str.SYSTEMCurrentControlSetCONTROLCLASS4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c3b1
mov edx, dword [esp + 0x20]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebp
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47c38f
lea ecx, [ecx]
mov edx, dword [esp + 0x20]
inc dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push 0x20119
push ebp
lea ecx, [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c364
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x38]
push ecx
push ebp
push 0x4ab52c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c364
cmp dword [esp + 0x1c], ebp
jbe 0x47c364
cmp edi, ebp
je 0x47beba
push edi
call fcn.00487d04
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.0048690e
mov edi, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.00487630
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push 0
push 0x4ab550
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c364
push edi
mov ecx, esi
call fcn.00479fb0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x47bf3d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47c364
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x47c364
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push ebp
mov dword [esp + 0x30], 0x10114
call ebx
test eax, eax
je 0x47c359
cmp dword [esp + 0x28], 0
jne 0x47c359
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push str.Characteristics
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47bfa5
test byte [esp + 0x34], 4
je 0x47c359
mov eax, dword [esi]
shl eax, 4
lea ecx, [eax + esi + 0xc48]
push ecx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x3c]
push edx
push edi
mov ecx, esi
call fcn.0047a130
test eax, eax
jne 0x47c003
push eax
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 ebp
mov dword [esp + 0x30], 0x10205
call ebx
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 0x4ab594
push eax
call fcn.00488a44
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
mov dword [esi + ecx*2 + 0x194], edx
lea eax, [esi + 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 eax
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 ebp
mov dword [esp + 0x30], 0x1010101
call ebx
test eax, eax
je 0x47c112
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 0x4ab5b4
push eax
call fcn.00488a44
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + 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 eax
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 ebp
mov dword [esp + 0x30], 0x1010102
call ebx
test eax, eax
je 0x47c1b8
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 0x4ab5d4
push eax
call fcn.00488a44
mov eax, dword [esi]
mov edx, dword [esp + 0x70]
lea ecx, [eax + eax*8]
lea eax, [esi + 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
mov dword [esp + 0x1c], 0
test edi, edi
je 0x47c1cf
push edi
call fcn.00487d04
add esp, 4
xor edi, edi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x4ab5f4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c27d
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x47c27d
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
mov edi, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.00487630
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push 0
push str.DriverDesc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + esi + 0x248]
push edi
push edx
call fcn.004877d0
add esp, 0xc
test edi, edi
je 0x47c306
push edi
call fcn.00487d04
add esp, 4
jmp 0x47c304
push 0x208
lea eax, [esp + 0x27c]
push 0
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00487630
add esp, 0xc
push 0
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 ebp
call ebx
test eax, eax
je 0x47c306
cmp dword [esp + 0x18], 0
jbe 0x47c306
lea ecx, [esp + 0x278]
push ecx
call fcn.00466000
mov edi, eax
add esp, 4
test edi, edi
je 0x47c306
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + esi + 0x248]
push edi
push edx
call fcn.004877d0
push edi
call fcn.00487d04
add esp, 0x10
xor edi, edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push ebp
mov dword [esp + 0x30], 0x1010e
call ebx
test eax, eax
je 0x47c343
test byte [esp + 0x28], 0x20
je 0x47c343
mov eax, dword [esi]
mov dword [esi + eax*4 + 0x1738], 1
inc dword [esi]
test ebp, ebp
je 0x47bf1d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47bf1d
test ebp, ebp
je 0x47c364
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x3c]
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 0x47be50
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x47c3a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x47c3b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
pop edi
pop ebx
mov ecx, dword [esp + 0x478]
pop esi
pop ebp
xor ecx, esp
call fcn.00486dc0
add esp, 0x474
ret