Function at 0x5340f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push esi
push edi
mov byte [ebp - 0x31c], 0
mov dword [ebp - 0x28c], 0
jmp 0x534120
mov eax, dword [ebp - 0x28c]
add eax, 1
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0x200
jge 0x53492d
movsx ecx, byte [ebp - 0x31c]
test ecx, ecx
jne 0x534157
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp + 8]
mov edi, dword [eax + edx*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
ja 0x53415c
jmp 0x53492d
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x284]
rep stosd dword es:[edi], eax
mov edi, str.SYSTEMCurrentControlSetEnumUSB_
lea edx, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
push 0x23
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00533c75
add esp, 0xc
add eax, 1
mov dword [ebp - 0x310], eax
push 2
push 0x23
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00533c75
add esp, 0xc
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x310]
push ecx
lea edi, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
lea edx, [ebp + ecx - 0x284]
push edx
call fcn.0054c7e0
add esp, 0xc
push 0x5cc3c0
lea eax, [ebp - 0x284]
push eax
call fcn.0054bea0
add esp, 8
mov ecx, dword [ebp - 0x288]
add ecx, 1
mov dword [ebp - 0x310], ecx
push 3
push 0x23
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00533c75
add esp, 0xc
mov dword [ebp - 0x288], eax
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x288]
sub edx, dword [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
add edx, dword [ebp - 0x310]
push edx
lea edi, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
lea eax, [ebp + ecx - 0x284]
push eax
call fcn.0054c7e0
add esp, 0xc
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x310]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.0054c7e0
add esp, 0xc
push 0x5cc3c4
lea eax, [ebp - 0x284]
push eax
call fcn.0054bea0
add esp, 8
lea ecx, [ebp - 0x318]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x284]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x534320
jmp 0x53492d
cmp dword [ebp - 0x318], 0xffffffff
je 0x534928
mov dword [ebp - 0x464], 0xff
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x460]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x460]
push ecx
push 0
push 0
push str.ClassGUID
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x314], eax
push str.36FC9E60_C465_11CF_8056_444553540000
lea eax, [ebp - 0x460]
push eax
call fcn.0054cf00
add esp, 8
test eax, eax
je 0x53439d
mov ecx, dword [ebp - 0x318]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x534111
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x360]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x464], 0x40
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x360]
push eax
push 0
push 0
push str.Driver
mov ecx, dword [ebp - 0x318]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x314], eax
push 1
push 0x5c
lea edx, [ebp - 0x360]
push edx
call fcn.00533c75
add esp, 0xc
add eax, 1
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 1
jle 0x53491b
mov eax, dword [ebp - 0x320]
lea ecx, [ebp + eax - 0x360]
push ecx
call fcn.0054c571
add esp, 4
cmp dword [ebp + 0x10], eax
jne 0x53491b
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x30c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x30c]
push eax
push 0
push 0
push 0x5cc404
mov ecx, dword [ebp - 0x318]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x314], eax
lea edi, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
ja 0x5344a0
lea edi, [ebp - 0x84]
lea edx, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x468], 0
jmp 0x5344bb
mov ecx, dword [ebp - 0x468]
add ecx, 1
mov dword [ebp - 0x468], ecx
cmp dword [ebp - 0x468], 0x200
jge 0x53491b
movsx edx, byte [ebp - 0x31c]
test edx, edx
jne 0x5344f2
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + eax*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
ja 0x5344f7
jmp 0x53491b
lea edi, [ebp - 0x30c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
je 0x534916
lea edx, [ebp - 0x30c]
push edx
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.0054cb20
add esp, 8
test eax, eax
je 0x534916
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x284]
rep stosd dword es:[edi], eax
mov edi, str.SYSTEMCurrentControlSetEnumUSBSTOR_
lea edx, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
push 0x23
mov ecx, dword [ebp - 0x468]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00533c75
add esp, 0xc
add eax, 1
mov dword [ebp - 0x310], eax
push 2
push 0x23
mov ecx, dword [ebp - 0x468]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00533c75
add esp, 0xc
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x468]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x310]
push ecx
lea edi, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
lea edx, [ebp + ecx - 0x284]
push edx
call fcn.0054c7e0
add esp, 0xc
push 0x5cc43c
lea eax, [ebp - 0x284]
push eax
call fcn.0054bea0
add esp, 8
mov ecx, dword [ebp - 0x288]
add ecx, 1
mov dword [ebp - 0x310], ecx
push 3
push 0x23
mov edx, dword [ebp - 0x468]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00533c75
add esp, 0xc
mov dword [ebp - 0x288], eax
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x288]
sub edx, dword [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, dword [ebp - 0x310]
push edx
lea edi, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
lea eax, [ebp + ecx - 0x284]
push eax
call fcn.0054c7e0
add esp, 0xc
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x468]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x310]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.0054c7e0
add esp, 0xc
push 0x5cc440
lea eax, [ebp - 0x284]
push eax
call fcn.0054bea0
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x284]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x5346f6
jmp 0x53491b
cmp dword [ebp - 4], 0xffffffff
je 0x534916
mov dword [ebp - 0x4ac], 0x40
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x460]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x4a8]
push ecx
push 0
push 0
push str.ParentIdPrefix
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x314], eax
lea edi, [ebp - 0x4a8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
je 0x534905
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x284]
rep stosd dword es:[edi], eax
mov edi, str.SYSTEMMountedDevices_
lea edx, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4b0]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x284]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x5347c8
jmp 0x53491b
mov byte [ebp - 0x4b4], 0x43
jmp 0x5347df
mov al, byte [ebp - 0x4b4]
add al, 1
mov byte [ebp - 0x4b4], al
movsx ecx, byte [ebp - 0x4b4]
cmp ecx, 0x5a
jg 0x5348f8
movsx edx, byte [ebp - 0x4b4]
push edx
push str.DosDevices_C:
lea eax, [ebp - 0x4f4]
push eax
call fcn.0054c6e3
add esp, 0xc
mov dword [ebp - 0x4ac], 0x12c
mov ecx, dword [ebp - 0x4ac]
xor eax, eax
lea edi, [ebp - 0x620]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x620]
push ecx
push 0
push 0
lea edx, [ebp - 0x4f4]
push edx
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x5348f1
mov dword [ebp - 0x628], 1
mov dword [ebp - 0x624], 0
jmp 0x53488f
mov ecx, dword [ebp - 0x624]
add ecx, 1
mov dword [ebp - 0x624], ecx
lea edi, [ebp - 0x4a8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
cmp dword [ebp - 0x624], ecx
jge 0x5348d8
mov edx, dword [ebp - 0x624]
xor eax, eax
mov al, byte [ebp + edx*2 - 0x5ea]
mov ecx, dword [ebp - 0x624]
movsx edx, byte [ebp + ecx - 0x4a8]
cmp eax, edx
je 0x5348d6
mov dword [ebp - 0x628], 0
jmp 0x5348d8
jmp 0x534880
cmp dword [ebp - 0x628], 0
je 0x5348ef
mov al, byte [ebp - 0x4b4]
mov byte [ebp - 0x31c], al
jmp 0x5348f8
jmp 0x5348f3
jmp 0x5348f8
jmp 0x5347d1
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
jmp 0x5344ac
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x534111
mov al, byte [ebp - 0x31c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret