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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585c18
mov eax, dword fs:[0]
push eax
sub esp, 0xd90
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x54], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd70], 0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.0042e580
mov dword [ebp - 4], 0
cmp dword [0x63a638], 3
je 0x47cfc1
cmp dword [0x63a638], 0x43
jne 0x47cfd0
push str.SYSTEMCurrentControlSetEnumWpdBusEnumRootUMB
lea ecx, [ebp - 0x10]
call fcn.00405e00
jmp 0x47cfdd
push str.SYSTEMCurrentControlSetEnumSWDWPDBUSENUM
lea ecx, [ebp - 0x10]
call fcn.00405e00
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x2c]
call fcn.0047e660
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00405e80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47d468
mov cx, word [0x5dcd74]
mov word [ebp - 0x25c], cx
push 0x206
push 0
lea edx, [ebp - 0x25a]
push edx
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x44], 0x104
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x478], 0x3fff
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x50], 0
je 0x47d468
mov dword [ebp - 0x40], 0
jmp 0x47d0b7
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x50]
jae 0x47d468
mov dword [ebp - 0x3c], 0xff
push 0xff
push 0
lea ecx, [ebp - 0x464]
push ecx
call fcn.00562540
add esp, 0xc
lea edx, [ebp - 0x46c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x47d463
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0xd48]
call fcn.00405d60
mov dword [ebp - 0xd74], eax
mov edx, dword [ebp - 0xd74]
mov dword [ebp - 0xd78], edx
mov byte [ebp - 4], 2
push 0x5dcd78
lea ecx, [ebp - 0xd4c]
call fcn.0043d540
mov dword [ebp - 0xd7c], eax
mov eax, dword [ebp - 0xd7c]
mov dword [ebp - 0xd80], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xd80]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xd50]
push eax
call fcn.0040b560
add esp, 0xc
mov dword [ebp - 0xd84], eax
mov ecx, dword [ebp - 0xd84]
mov dword [ebp - 0xd88], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xd78]
push edx
mov eax, dword [ebp - 0xd88]
push eax
lea ecx, [ebp - 0x48c]
push ecx
call fcn.0040b560
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd50]
call fcn.0042e5a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd4c]
call fcn.0042e5a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd48]
call fcn.0042e5a0
push str.Device_ParametersWUDFDiagnosticInfo
lea ecx, [ebp - 0xd54]
call fcn.0043d540
mov dword [ebp - 0xd8c], eax
mov edx, dword [ebp - 0xd8c]
mov dword [ebp - 0xd90], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xd90]
push eax
lea ecx, [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x480]
push edx
call fcn.0040b560
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd54]
call fcn.0042e5a0
mov dword [ebp - 0x47c], 4
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0x400
lea eax, [ebp - 0x490]
push eax
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x480]
call fcn.00405e80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47d405
call fcn.00402270
mov dword [ebp - 0x4a0], eax
lea ecx, [ebp - 0x484]
push ecx
lea edx, [ebp - 0x494]
push edx
lea eax, [ebp - 0x47c]
push eax
push 0
push str.IoctlTransferMode
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d405
lea edx, [ebp - 0x488]
push edx
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x48c]
call fcn.00405e80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47d405
lea ecx, [ebp - 0xd44]
call fcn.0041f850
mov byte [ebp - 4], 0xc
mov byte [ebp - 0xcac], 0
push 0x3ff
push 0
lea eax, [ebp - 0xcab]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0xcb0], 0x400
lea ecx, [ebp - 0xcb0]
push ecx
lea edx, [ebp - 0xcac]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push 0x5dcdc8
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47d36b
lea edx, [ebp - 0xcac]
push edx
lea ecx, [ebp - 0xd28]
call fcn.00405fb0
mov byte [ebp - 0x8a4], 0
push 0x3ff
push 0
lea eax, [ebp - 0x8a3]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x8a8], 0x400
lea ecx, [ebp - 0x8a8]
push ecx
lea edx, [ebp - 0x8a4]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push str.FriendlyName
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xcb4], eax
mov edx, dword [ebp - 0xcb4]
mov dword [ebp - 0xd94], edx
cmp dword [ebp - 0xd94], 0
je 0x47d3d5
jmp 0x47d3e7
lea eax, [ebp - 0x8a4]
push eax
lea ecx, [ebp - 0xd44]
call fcn.00405fb0
lea ecx, [ebp - 0xd44]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0047ea30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd44]
call fcn.0047d520
cmp dword [ebp - 0x490], 0
je 0x47d425
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x490], 0
cmp dword [ebp - 0x488], 0
je 0x47d445
mov eax, dword [ebp - 0x488]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x488], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x480]
call fcn.0042e5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48c]
call fcn.0042e5a0
jmp 0x47d0ae
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.0047e980
test eax, eax
jne 0x47d4c1
lea edx, [ebp - 0xd6c]
push edx
call fcn.0047d560
add esp, 4
mov dword [ebp - 0xd98], eax
mov eax, dword [ebp - 0xd98]
mov dword [ebp - 0xd9c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd9c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0047e7f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd6c]
call fcn.0047e7d0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0047e6d0
mov eax, dword [ebp - 0xd70]
or eax, 1
mov dword [ebp - 0xd70], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0047e7d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042e5a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x54]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret