Function at 0x10002989
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000990e
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 [0x100fd618], 0
je 0x10002a4e
push str.pe_systemMountedDevices
lea eax, [ebp - 0xb38]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x10002a62
push str.SYSTEMMountedDevices
lea ecx, [ebp - 0xb38]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x418], 0x20019
call fcn.100014bb
test eax, eax
je 0x10002a84
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 0x10002d5d
push 0x100fd674
lea ecx, [ebp - 0xb3c]
call fcn.10008f9c
mov dword [ebp - 4], 0
lea eax, [ebp - 0xb48]
push eax
mov ecx, dword [ebp + 8]
call fcn.10007ee0
mov ecx, dword [eax]
mov dword [ebp - 0xb40], ecx
jmp 0x10002af4
lea ecx, [ebp - 0xb40]
call fcn.10007fa0
lea edx, [ebp - 0xb4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10007f20
push eax
lea ecx, [ebp - 0xb40]
call fcn.10007fd0
and eax, 0xff
test eax, eax
je 0x10002d2c
lea ecx, [ebp - 0xb40]
call fcn.10007f80
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 0x10002cd7
mov dword [ebp - 0x928], 0
mov ecx, 1
test ecx, ecx
je 0x10002cd7
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 0x10002c25
jmp 0x10002cd7
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp - 0x920]
jne 0x10002cd2
mov edx, dword [ebp - 0x414]
push edx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.1000179a
add esp, 0xc
test eax, eax
je 0x10002cd2
mov edx, dword [ebp - 0x924]
push edx
lea eax, [ebp - 0x91c]
push eax
lea ecx, [ebp - 0xa34]
push ecx
call fcn.1000179a
add esp, 0xc
test eax, eax
jne 0x10002cd2
lea edx, [ebp - 0x91c]
push edx
lea ecx, [ebp - 0xb44]
call fcn.10008f9c
mov byte [ebp - 4], 1
push str.DosDevices
lea ecx, [ebp - 0xb44]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x10002cc3
mov eax, dword [ebp - 0x924]
mov cl, byte [ebp + eax - 0x91e]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.10007f80
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 0x10002ba1
push str._Volume
lea ecx, [ebp - 0xb40]
call fcn.10007f80
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.10007f80
mov ecx, eax
add ecx, 4
call fcn.10009002
push 0x100fa270
lea ecx, [ebp - 0xb40]
call fcn.10007f80
mov ecx, eax
add ecx, 4
call fcn.10008fcc
jmp 0x10002ae9
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 0x10002d5f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret