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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c108
mov eax, dword fs:[0]
push eax
sub esp, 0xd90
mov eax, dword [0x61b000]
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.0042eca0
mov dword [ebp - 4], 0
cmp dword [0x64065c], 3
je 0x4818c1
cmp dword [0x64065c], 0x43
jne 0x4818d0
push str.SYSTEMCurrentControlSetEnumWpdBusEnumRootUMB
lea ecx, [ebp - 0x10]
call fcn.00405f60
jmp 0x4818dd
push str.SYSTEMCurrentControlSetEnumSWDWPDBUSENUM
lea ecx, [ebp - 0x10]
call fcn.00405f60
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x2c]
call fcn.00483cc0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00405fe0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481d68
mov cx, word [0x5e2e6c]
mov word [ebp - 0x25c], cx
push 0x206
push 0
lea edx, [ebp - 0x25a]
push edx
call fcn.00568440
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 0x481d68
mov dword [ebp - 0x40], 0
jmp 0x4819b7
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x50]
jae 0x481d68
mov dword [ebp - 0x3c], 0xff
push 0xff
push 0
lea ecx, [ebp - 0x464]
push ecx
call fcn.00568440
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 0x481d63
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0xd48]
call fcn.00405ec0
mov dword [ebp - 0xd74], eax
mov edx, dword [ebp - 0xd74]
mov dword [ebp - 0xd78], edx
mov byte [ebp - 4], 2
push 0x5e2e70
lea ecx, [ebp - 0xd4c]
call fcn.0043fcb0
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.0040b740
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.0040b740
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd50]
call fcn.0042ecc0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd4c]
call fcn.0042ecc0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd48]
call fcn.0042ecc0
push str.Device_ParametersWUDFDiagnosticInfo
lea ecx, [ebp - 0xd54]
call fcn.0043fcb0
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.0040b740
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd54]
call fcn.0042ecc0
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.00405fe0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481d05
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 0x481d05
lea edx, [ebp - 0x488]
push edx
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x48c]
call fcn.00405fe0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481d05
lea ecx, [ebp - 0xd44]
call fcn.00481e20
mov byte [ebp - 4], 0xc
mov byte [ebp - 0xcac], 0
push 0x3ff
push 0
lea eax, [ebp - 0xcab]
push eax
call fcn.00568440
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 0x5e2ec0
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x481c6b
lea edx, [ebp - 0xcac]
push edx
lea ecx, [ebp - 0xd28]
call fcn.00406110
mov byte [ebp - 0x8a4], 0
push 0x3ff
push 0
lea eax, [ebp - 0x8a3]
push eax
call fcn.00568440
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 0x481cd5
jmp 0x481ce7
lea eax, [ebp - 0x8a4]
push eax
lea ecx, [ebp - 0xd44]
call fcn.00406110
lea ecx, [ebp - 0xd44]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00484090
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd44]
call fcn.004691f0
cmp dword [ebp - 0x490], 0
je 0x481d25
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 0x481d45
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.0042ecc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48c]
call fcn.0042ecc0
jmp 0x4819ae
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.00483fe0
test eax, eax
jne 0x481dc1
lea edx, [ebp - 0xd6c]
push edx
call fcn.00481e70
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.00483e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd6c]
call fcn.00483e30
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00483d30
mov eax, dword [ebp - 0xd70]
or eax, 1
mov dword [ebp - 0xd70], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00483e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042ecc0
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.00560c61
mov esp, ebp
pop ebp
ret