Function at 0x402002
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee30
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 [0x42cc68], 0
je 0x4020c7
push str.pe_systemMountedDevices
lea eax, [ebp - 0xb38]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4020db
push str.SYSTEMMountedDevices
lea ecx, [ebp - 0xb38]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x418], 0x20019
call fcn.00401198
test eax, eax
je 0x4020fd
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 0x4023d6
push 0x42cc94
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.00413d80
mov ecx, dword [eax]
mov dword [ebp - 0xb40], ecx
jmp 0x40216d
lea ecx, [ebp - 0xb40]
call fcn.00413ea0
lea edx, [ebp - 0xb4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040d0e0
push eax
lea ecx, [ebp - 0xb40]
call fcn.00418700
and eax, 0xff
test eax, eax
je 0x4023a5
lea ecx, [ebp - 0xb40]
call fcn.004181c0
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 0x402350
mov dword [ebp - 0x928], 0
mov ecx, 1
test ecx, ecx
je 0x402350
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 0x40229e
jmp 0x402350
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp - 0x920]
jne 0x40234b
mov edx, dword [ebp - 0x414]
push edx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.00401477
add esp, 0xc
test eax, eax
je 0x40234b
mov edx, dword [ebp - 0x924]
push edx
lea eax, [ebp - 0x91c]
push eax
lea ecx, [ebp - 0xa34]
push ecx
call fcn.00401477
add esp, 0xc
test eax, eax
jne 0x40234b
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_1
test eax, eax
jl 0x40233c
mov eax, dword [ebp - 0x924]
mov cl, byte [ebp + eax - 0x91e]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.004181c0
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 0x40221a
push str._Volume
lea ecx, [ebp - 0xb40]
call fcn.004181c0
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.004181c0
mov ecx, eax
add ecx, 4
call fcn.0041e2cc
push 0x428ba0
lea ecx, [ebp - 0xb40]
call fcn.004181c0
mov ecx, eax
add ecx, 4
call fcn.0041e2a8
jmp 0x402162
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 0x4023d8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret