Function at 0x533027
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov byte [ebp - 0x324], 0
mov byte [ebp - 0xc], 0
push str.GetLetterByClassNameID_begin_____________r_n
call fcn.00536ebf
add esp, 4
mov dword [ebp - 0x294], 0
jmp 0x533063
mov eax, dword [ebp - 0x294]
add eax, 1
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0x1a
jge 0x533a81
movsx ecx, byte [ebp - 0x324]
test ecx, ecx
jne 0x533094
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0054c3e0
add esp, 4
test eax, eax
ja 0x533099
jmp 0x533a81
push 0x200
push 0
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bfb0
add esp, 0xc
push str.SYSTEMCurrentControlSetEnumUSB_
lea eax, [ebp - 0x28c]
push eax
call fcn.0054bec0
add esp, 8
push 1
push 0x23
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00532ed0
add esp, 0xc
add eax, 1
mov dword [ebp - 0x318], eax
push 2
push 0x23
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00532ed0
add esp, 0xc
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
sub ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x318]
push ecx
lea edx, [ebp - 0x28c]
push edx
call fcn.0054c3e0
add esp, 4
lea eax, [ebp + eax - 0x28c]
push eax
call fcn.0054c980
add esp, 0xc
push 0x5b8098
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bed0
add esp, 8
mov edx, dword [ebp - 0x290]
add edx, 1
mov dword [ebp - 0x318], edx
push 3
push 0x23
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00532ed0
add esp, 0xc
mov dword [ebp - 0x290], eax
push 0x80
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.0054bfb0
add esp, 0xc
mov ecx, dword [ebp - 0x290]
sub ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x318]
push ecx
lea edx, [ebp - 0x28c]
push edx
call fcn.0054c3e0
add esp, 4
lea eax, [ebp + eax - 0x28c]
push eax
call fcn.0054c980
add esp, 0xc
mov ecx, dword [ebp - 0x290]
sub ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x318]
push ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.0054c980
add esp, 0xc
push 0x5b809c
lea eax, [ebp - 0x28c]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x320]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x28c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
je 0x533251
jmp 0x533a81
cmp dword [ebp - 0x320], 0xffffffff
je 0x533a7c
mov dword [ebp - 0x46c], 0xff
push 0xff
push 0
lea eax, [ebp - 0x468]
push eax
call fcn.0054bfb0
add esp, 0xc
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x468]
push edx
push 0
push 0
push str.ClassGUID
mov eax, dword [ebp - 0x320]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x31c], eax
push str.36FC9E60_C465_11CF_8056_444553540000
lea ecx, [ebp - 0x468]
push ecx
call fcn.0054d7f0
add esp, 8
test eax, eax
je 0x5332d2
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x533054
push 0x40
push 0
lea eax, [ebp - 0x368]
push eax
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x46c], 0x40
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x368]
push edx
push 0
push 0
push 0x5b80d4
mov eax, dword [ebp - 0x320]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x31c], eax
push 1
push 0x5c
lea ecx, [ebp - 0x368]
push ecx
call fcn.00532ed0
add esp, 0xc
add eax, 1
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 1
jle 0x533a6f
mov edx, dword [ebp - 0x328]
lea eax, [ebp + edx - 0x368]
push eax
call fcn.0054c538
add esp, 4
cmp dword [ebp + 0x10], eax
jne 0x533a6f
push 1
push 0x23
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00532ed0
add esp, 0xc
add eax, 1
mov dword [ebp - 0x318], eax
push 4
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x318]
lea edx, [eax + ecx + 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0054c980
add esp, 0xc
push 4
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x318]
lea edx, [eax + ecx + 0xd]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.0054c980
add esp, 0xc
push 0x80
push 0
lea ecx, [ebp - 0x314]
push ecx
call fcn.0054bfb0
add esp, 0xc
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5b80dc
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x31c], eax
lea edx, [ebp - 0x314]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
ja 0x533436
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x314]
push ecx
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x470], 0
jmp 0x533451
mov edx, dword [ebp - 0x470]
add edx, 1
mov dword [ebp - 0x470], edx
cmp dword [ebp - 0x470], 0x1a
jge 0x533a6f
movsx eax, byte [ebp - 0x324]
test eax, eax
jne 0x533482
mov ecx, dword [ebp - 0x470]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.0054c3e0
add esp, 4
test eax, eax
ja 0x533487
jmp 0x533a6f
mov byte [ebp - 0xc], 0xff
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x470]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x5334d2
mov ecx, dword [ebp - 8]
push ecx
call fcn.00532f49
add esp, 4
mov byte [ebp - 0xc], al
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x314]
push eax
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x533505
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x470]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0054ccc0
add esp, 8
test eax, eax
jne 0x533529
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.0054ccc0
add esp, 8
test eax, eax
je 0x533a6a
mov dword [ebp - 0x4b4], 0
jmp 0x533544
mov eax, dword [ebp - 0x4b4]
add eax, 1
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 2
jge 0x5337a2
push 0x200
push 0
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bfb0
add esp, 0xc
push str.SYSTEMCurrentControlSetEnumUSBSTOR_
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bec0
add esp, 8
push 1
push 0x23
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00532ed0
add esp, 0xc
add eax, 1
mov dword [ebp - 0x318], eax
push 2
push 0x23
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00532ed0
add esp, 0xc
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x290]
sub eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x470]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp - 0x318]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054c3e0
add esp, 4
lea edx, [ebp + eax - 0x28c]
push edx
call fcn.0054c980
add esp, 0xc
mov eax, dword [ebp - 0x290]
add eax, 1
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x4b8], 0
jmp 0x533625
mov ecx, dword [ebp - 0x4b8]
add ecx, 1
mov dword [ebp - 0x4b8], ecx
mov edx, dword [ebp - 0x4b8]
cmp edx, dword [ebp - 0x4b4]
jge 0x5336d3
push 0x5b8114
lea eax, [ebp - 0x28c]
push eax
call fcn.0054bed0
add esp, 8
mov ecx, dword [ebp - 0x4b8]
add ecx, 3
push ecx
push 0x23
mov edx, dword [ebp - 0x470]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00532ed0
add esp, 0xc
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
cmp edx, dword [ebp - 0x318]
jle 0x5336bf
mov eax, dword [ebp - 0x290]
sub eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x470]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp - 0x318]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054c3e0
add esp, 4
lea edx, [ebp + eax - 0x28c]
push edx
call fcn.0054c980
add esp, 0xc
mov eax, dword [ebp - 0x290]
add eax, 1
mov dword [ebp - 0x318], eax
jmp 0x533616
push 0x5b8118
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bed0
add esp, 8
mov edx, dword [ebp - 0x4b8]
add edx, 3
push edx
push 0x23
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00532ed0
add esp, 0xc
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x290]
cmp eax, dword [ebp - 0x318]
jle 0x53375b
mov ecx, dword [ebp - 0x290]
sub ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x470]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x318]
push ecx
lea edx, [ebp - 0x28c]
push edx
call fcn.0054c3e0
add esp, 4
lea eax, [ebp + eax - 0x28c]
push eax
call fcn.0054c980
add esp, 0xc
push 0x5b811c
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bed0
add esp, 8
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x28c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x53379d
jmp 0x5337a2
jmp 0x533535
cmp dword [ebp - 0x31c], 0
je 0x5337b0
jmp 0x533a6f
cmp dword [ebp - 4], 0xffffffff
je 0x533a6a
mov dword [ebp - 0x4bc], 0x40
push 0xff
push 0
lea ecx, [ebp - 0x468]
push ecx
call fcn.0054bfb0
add esp, 0xc
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0x4b0]
push eax
push 0
push 0
push 0x5b8120
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x31c], eax
lea edx, [ebp - 0x4b0]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x533a59
push 0x200
push 0
lea eax, [ebp - 0x28c]
push eax
call fcn.0054bfb0
add esp, 0xc
push 0x5b8130
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x4c0]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x28c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
je 0x533876
jmp 0x533a6f
mov byte [ebp - 0x4c4], 0x43
jmp 0x53388e
mov cl, byte [ebp - 0x4c4]
add cl, 1
mov byte [ebp - 0x4c4], cl
movsx edx, byte [ebp - 0x4c4]
cmp edx, 0x5a
jg 0x533a4c
movsx eax, byte [ebp - 0x4c4]
cmp eax, 0x52
je 0x5338b6
movsx ecx, byte [ebp - 0x4c4]
cmp ecx, 0x55
jne 0x5338c0
mov dword [ebp - 0x634], 0
movsx edx, byte [ebp - 0x4c4]
push edx
push 0x5b8148
lea eax, [ebp - 0x504]
push eax
call fcn.0054c45b
add esp, 0xc
mov dword [ebp - 0x4bc], 0x12c
mov ecx, dword [ebp - 0x4bc]
push ecx
push 0
lea edx, [ebp - 0x630]
push edx
call fcn.0054bfb0
add esp, 0xc
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x630]
push ecx
push 0
push 0
lea edx, [ebp - 0x504]
push edx
mov eax, dword [ebp - 0x4c0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x533a45
mov dword [ebp - 0x63c], 1
mov dword [ebp - 0x638], 0
jmp 0x53395c
mov ecx, dword [ebp - 0x638]
add ecx, 1
mov dword [ebp - 0x638], ecx
lea edx, [ebp - 0x4b0]
push edx
call fcn.0054c3e0
add esp, 4
cmp dword [ebp - 0x638], eax
jge 0x5339a2
mov eax, dword [ebp - 0x638]
xor ecx, ecx
mov cl, byte [ebp + eax*2 - 0x5fa]
mov edx, dword [ebp - 0x638]
movsx eax, byte [ebp + edx - 0x4b0]
cmp ecx, eax
je 0x5339a0
mov dword [ebp - 0x63c], 0
jmp 0x5339a2
jmp 0x53394d
cmp dword [ebp - 0x63c], 0
je 0x5339bc
mov cl, byte [ebp - 0x4c4]
mov byte [ebp - 0x324], cl
jmp 0x533a4c
movsx edx, byte [ebp - 0x4c4]
push edx
push 0x5b8158
lea eax, [ebp - 0x67c]
push eax
call fcn.0054c45b
add esp, 0xc
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x533a43
mov edx, dword [ebp - 8]
push edx
call fcn.00532fb8
add esp, 4
mov byte [ebp - 0x680], al
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 0x680]
and edx, 0xff
cmp ecx, edx
jne 0x533a43
mov al, byte [ebp - 0x4c4]
mov byte [ebp - 0x324], al
jmp 0x533a4c
jmp 0x533a47
jmp 0x533a4c
jmp 0x53387f
mov ecx, dword [ebp - 0x4c0]
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 0x533442
mov eax, dword [ebp - 0x320]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x533054
push str.GetLetterByClassNameID_End__________________r_n
call fcn.00536ebf
add esp, 4
mov al, byte [ebp - 0x324]
mov esp, ebp
pop ebp
ret