Function at 0x4026e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41325e
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 [0x458800], 0
je 0x4027ab
push str.pe_systemMountedDevices
lea eax, [ebp - 0xb38]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4027bf
push str.SYSTEMMountedDevices
lea ecx, [ebp - 0xb38]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x418], 0x20019
call fcn.0040133d
test eax, eax
je 0x4027e1
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 0x402aba
push 0x458838
lea ecx, [ebp - 0xb3c]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea eax, [ebp - 0xb48]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405d70
mov ecx, dword [eax]
mov dword [ebp - 0xb40], ecx
jmp 0x402851
lea ecx, [ebp - 0xb40]
call fcn.00405e30
lea edx, [ebp - 0xb4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405db0
push eax
lea ecx, [ebp - 0xb40]
call fcn.00405e60
and eax, 0xff
test eax, eax
je 0x402a89
lea ecx, [ebp - 0xb40]
call fcn.00405e10
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 0x402a34
mov dword [ebp - 0x928], 0
mov ecx, 1
test ecx, ecx
je 0x402a34
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 0x402982
jmp 0x402a34
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp - 0x920]
jne 0x402a2f
mov edx, dword [ebp - 0x414]
push edx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.0040161c
add esp, 0xc
test eax, eax
je 0x402a2f
mov edx, dword [ebp - 0x924]
push edx
lea eax, [ebp - 0x91c]
push eax
lea ecx, [ebp - 0xa34]
push ecx
call fcn.0040161c
add esp, 0xc
test eax, eax
jne 0x402a2f
lea edx, [ebp - 0x91c]
push edx
lea ecx, [ebp - 0xb44]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
push str.DosDevices
lea ecx, [ebp - 0xb44]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x402a20
mov eax, dword [ebp - 0x924]
mov cl, byte [ebp + eax - 0x91e]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.00405e10
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 0x4028fe
push str._Volume
lea ecx, [ebp - 0xb40]
call fcn.00405e10
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.00405e10
mov ecx, eax
add ecx, 4
call fcn.00412904
push 0x455638
lea ecx, [ebp - 0xb40]
call fcn.00405e10
mov ecx, eax
add ecx, 4
call fcn.004128ce
jmp 0x402846
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 0x402abc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret