Function at 0x40187b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov dword [ebp - 0x688], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], 0x4d36e965
mov word [ebp - 0x38], 0xe325
mov word [ebp - 0x36], 0x11ce
mov byte [ebp - 0x34], 0xbf
mov byte [ebp - 0x33], 0xc1
mov byte [ebp - 0x32], 8
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0x2b
mov byte [ebp - 0x2f], 0xe1
mov byte [ebp - 0x2e], 3
mov byte [ebp - 0x2d], 0x18
push 2
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4018eb
xor eax, eax
jmp 0x401c59
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0x1c
cmp dword [ebp - 0x40], 0xffffffff
jne 0x401c33
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x68c], eax
mov ecx, dword [ebp - 0x68c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x401c33
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 1
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x4019ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
jne 0x401977
jmp 0x4019ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4019a3
cmp dword [ebp - 0x4c], 0
je 0x401992
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x50]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x4c], eax
jmp 0x4019ac
mov dword [ebp - 4], 1
jmp 0x4019ae
jmp 0x401946
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
jne 0x4019be
jmp 0x4018ff
cmp dword [ebp - 4], 0
je 0x4019c9
jmp 0x401c33
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
jmp 0x4019e5
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x44]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x401c16
mov ecx, dword [ebp - 0x44]
movsx edx, byte [ecx]
test edx, edx
je 0x401c16
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x50]
cmp dword [ebp - 0x44], eax
jae 0x401c16
cmp dword [ebp - 0x40], 0xffffffff
je 0x401a17
jmp 0x401c16
mov dword [ebp - 0x54], 0
jmp 0x401a29
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0xa
jge 0x401c11
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x54]
shl eax, 7
add eax, str.USBSTORCdRomSpmM____
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401c0c
mov ecx, dword [ebp - 0x688]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 8], edx
lea eax, [ebp - 0x58]
push eax
push 0x20019
push 0
push str.SYSTEMMountedDevices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c0a
mov dword [ebp - 0x660], 2
mov dword [ebp - 0x25c], 3
mov dword [ebp - 0x684], 0x400
jmp 0x401ab2
mov ecx, dword [ebp - 0x660]
add ecx, 1
mov dword [ebp - 0x660], ecx
cmp dword [ebp - 0x660], 0x1a
jge 0x401c00
push 0x20
push 0
lea edx, [ebp - 0x680]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x660]
add eax, 0x41
push eax
push str.DosDevices_c:
lea ecx, [ebp - 0x680]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x25c], 3
mov dword [ebp - 0x684], 0x400
push 0x400
push 0
lea edx, [ebp - 0x65c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x65c]
push ecx
lea edx, [ebp - 0x25c]
push edx
push 0
lea eax, [ebp - 0x680]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x200
push 0
lea edx, [ebp - 0x258]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 0x200
lea eax, [ebp - 0x258]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x65c]
push ecx
push 0x220
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x258]
push edx
push str.disk:_s
call fcn.004025fd
add esp, 8
mov eax, dword [ebp - 0x688]
mov ecx, dword [eax + 8]
shl ecx, 7
add ecx, 0x40d92c
push ecx
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jbe 0x401bfb
mov eax, dword [ebp - 0x660]
add eax, 0x41
push eax
push 0x410108
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0x660]
add edx, 0x41
mov eax, dword [ebp - 0x688]
mov byte [eax + 4], dl
jmp 0x401c00
jmp 0x401aa3
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401c11
jmp 0x401a20
jmp 0x4019d1
cmp dword [ebp - 0x4c], 0
je 0x401c26
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x40], 0xffffffff
je 0x401c2e
jmp 0x401c33
jmp 0x4018ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4