Function at 0x10004e59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000db8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb48
push edi
mov byte [ebp - 0xb38], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xb37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xa34], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xa33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x91c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x91b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x410], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x818], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x817]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x928], 0
cmp dword [0x10102cf0], 0
je 0x10004f1e
push str.pe_systemMountedDevices
lea eax, [ebp - 0xb38]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x10004f32
push str.SYSTEMMountedDevices
lea ecx, [ebp - 0xb38]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x418], 0x20019
call fcn.1000398b
test eax, eax
je 0x10004f54
mov edx, dword [ebp - 0x418]
or dh, 1
mov dword [ebp - 0x418], edx
lea eax, [ebp - 0x92c]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
push 0
lea edx, [ebp - 0xb38]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x930], eax
cmp dword [ebp - 0x930], 0
jne 0x1000522d
push 0x10102d4c
lea ecx, [ebp - 0xb3c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea eax, [ebp - 0xb48]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000a300
mov ecx, dword [eax]
mov dword [ebp - 0xb40], ecx
jmp 0x10004fc4
lea ecx, [ebp - 0xb40]
call fcn.1000a3c0
lea edx, [ebp - 0xb4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000a340
push eax
lea ecx, [ebp - 0xb40]
call fcn.1000a3f0
and eax, 0xff
test eax, eax
je 0x100051fc
lea ecx, [ebp - 0xb40]
call fcn.1000a3a0
add eax, 4
push eax
lea ecx, [ebp - 0xb3c]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0xb3c]
push eax
push str.__Volume_s
lea ecx, [ebp - 0xa34]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x414], 0x400
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xa34]
push edx
mov eax, dword [ebp - 0x92c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x930], eax
cmp dword [ebp - 0x930], 0
jne 0x100051a7
mov dword [ebp - 0x928], 0
mov ecx, 1
test ecx, ecx
je 0x100051a7
mov dword [ebp - 0x924], 0x104
mov dword [ebp - 0x920], 0x400
lea edx, [ebp - 0x920]
push edx
lea eax, [ebp - 0x818]
push eax
push 0
push 0
lea ecx, [ebp - 0x924]
push ecx
lea edx, [ebp - 0x91c]
push edx
mov eax, dword [ebp - 0x928]
mov dword [ebp - 0xb54], eax
mov ecx, dword [ebp - 0xb54]
push ecx
mov edx, dword [ebp - 0x92c]
push edx
mov eax, dword [ebp - 0x928]
add eax, 1
mov dword [ebp - 0x928], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x930], eax
cmp dword [ebp - 0x930], 0
je 0x100050f5
jmp 0x100051a7
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp - 0x920]
jne 0x100051a2
mov edx, dword [ebp - 0x414]
push edx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.10003c6a
add esp, 0xc
test eax, eax
je 0x100051a2
mov edx, dword [ebp - 0x924]
push edx
lea eax, [ebp - 0x91c]
push eax
lea ecx, [ebp - 0xa34]
push ecx
call fcn.10003c6a
add esp, 0xc
test eax, eax
jne 0x100051a2
lea edx, [ebp - 0x91c]
push edx
lea ecx, [ebp - 0xb44]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
push str.DosDevices
lea ecx, [ebp - 0xb44]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x10005193
mov eax, dword [ebp - 0x924]
mov cl, byte [ebp + eax - 0x91e]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.1000a3a0
mov ecx, eax
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb44]
call sub.MFC42.DLL_CString::CString
jmp 0x10005071
push str._Volume
lea ecx, [ebp - 0xb40]
call fcn.1000a3a0
mov ecx, eax
add ecx, 4
call sub.MFC42.DLL_CString::operator_2
lea edx, [ebp - 0xb3c]
push edx
lea ecx, [ebp - 0xb40]
call fcn.1000a3a0
mov ecx, eax
add ecx, 4
call fcn.1000d08c
push 0x100ff7b0
lea ecx, [ebp - 0xb40]
call fcn.1000a3a0
mov ecx, eax
add ecx, 4
call fcn.1000d044
jmp 0x10004fb9
mov eax, dword [ebp - 0x92c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xb50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb3c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xb50]
jmp 0x1000522f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret