Function at 0x402390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x780
push ebx
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x4027a2
push ebp
mov ebp, dword [esp + 0x790]
push esi
lea eax, [esp + 0x20]
push eax
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ElbyVCD.dll_OpenVCCDLetter]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4027a0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.ElbyVCD.dll_VCCDGetStatus]
push esi
call dword [sym.imp.ElbyVCD.dll_CloseVCCD]
push 0xd
call fcn.00401590
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x402409
cmp byte [ebx], 0
jne 0x402415
mov dword [esp + 0x10], str.Drive
mov ebx, dword [esp + 0x10]
mov al, byte [0x40ca7c]
test al, al
je 0x40250d
push 0x80
lea eax, [esp + 0x88]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, byte [esp + 0x18]
mov ebx, 0x10
test bl, al
je 0x4024c2
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x188]
call fcn.004022b0
test al, al
je 0x4024b7
mov ecx, esi
push ecx
call fcn.00403f19
add esp, 4
cmp eax, 0x28
jg 0x40247c
mov edx, esi
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00403efd
jmp 0x40249c
lea ecx, [esp + eax*2 + 0x138]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00403efd
mov eax, 0x2e002e
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
add esp, 8
lea ecx, [esp + 0x30]
push ecx
lea edx, [ebp + 0x41]
push edx
lea eax, [esp + 0x8c]
push eax
push str._s__c:___s_
jmp 0x4024d9
test byte [esp + 0x18], bl
mov eax, str.__unknown_image_
jne 0x4024c7
mov eax, 0x4095b4
push eax
lea edx, [ebp + 0x41]
push edx
lea eax, [esp + 0x8c]
push eax
push str._s__c:_s
lea ecx, [esp + 0x3a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x7ac]
add esp, 0x14
lea edx, [esp + 0x390]
push edx
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x4025a0
test byte [esp + 0x18], 0x10
je 0x40255f
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x84]
call fcn.00402220
test al, al
je 0x402553
mov eax, 0x29
lea ebx, [esp + 0x30]
mov ecx, esi
call fcn.00402340
mov eax, dword [esp + 0x10]
mov ecx, ebx
push ecx
lea edx, [ebp + 0x41]
push edx
push eax
push 0x409594
lea ecx, [esp + 0x198]
push ecx
jmp 0x402577
test byte [esp + 0x18], 0x10
mov eax, 0x409580
jne 0x402564
mov eax, 0x4092b3
push eax
lea edx, [ebp + 0x41]
push edx
push ebx
push 0x409574
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x7ac]
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
add esp, 0x14
lea ecx, [esp + 0x188]
push ecx
push edi
push 0x10
push edx
call esi
mov ebx, 0x10
push 3
call fcn.00401590
add esp, 4
push eax
mov eax, ebp
or eax, 0x8000
push eax
push 0
push edi
call esi
test byte [esp + 0x18], bl
je 0x4025d7
push 4
call fcn.00401590
add esp, 4
push eax
mov ecx, ebp
or ecx, 0x8100
push ecx
push 0
push edi
call esi
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push str.SoftwareElaborate_BytesVirtualCloneDriveLRU
push 0x80000001
mov ebx, 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4027a0
mov al, byte [0x40ca7c]
xor esi, esi
test al, al
push esi
je 0x4026da
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push 0x409534
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18c]
push eax
push esi
push esi
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402795
lea ebx, [ebx]
test esi, esi
jne 0x40266f
mov eax, ebp
call fcn.004021d0
mov edi, dword [esp + 0x24]
add ebx, 0x100
lea eax, [esp + 0x188]
push eax
mov ecx, ebx
or ecx, ebp
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [esp + 0x1c]
inc esi
push esi
lea eax, [esp + 0x2c]
push 0x409534
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18c]
push edx
push 0
push 0
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402660
jmp 0x402795
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push 0x409530
push eax
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x88]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402795
jmp 0x402728
mov edi, dword [esp + 0x24]
test esi, esi
jne 0x402737
mov eax, ebp
call fcn.004021d0
mov edi, dword [esp + 0x24]
add ebx, 0x100
lea edx, [esp + 0x84]
push edx
mov eax, ebx
or eax, ebp
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edi, dword [esp + 0x1c]
inc esi
push esi
lea ecx, [esp + 0x14]
push 0x409530
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x88]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402724
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x780
ret