Function at 0x40c910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [ebp + 8]
push ebx
add eax, 0xfffffff6
push esi
cmp eax, 6
push edi
mov dword [esp + 0x38], 0
ja case.default.0x40c936
jmp dword [eax*4 + 0x40cdd4]
call fcn.00402c90
jmp 0x40ca3c
call fcn.00404860
jmp 0x40ca3c
call fcn.00406390
jmp 0x40ca3c
call fcn.00407ba0
jmp 0x40ca3c
call fcn.00409430
jmp 0x40ca3c
call fcn.0040aaa0
jmp 0x40ca3c
xor esi, esi
call fcn.0040c280
test eax, eax
je 0x40ca33
mov cl, byte [0x41095c]
lea edx, [esp + 0x10]
xor eax, eax
push edx
mov byte [esp + 0xac], cl
push 0x20119
mov ecx, 0x41
lea edi, [esp + 0xb1]
push eax
push str.SOFTWARECorelCorelDraw16.0
rep stosd dword es:[edi], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ca33
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
push str.ProgramsDir
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ca28
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCRT.dll__strupr]
push edi
call ebx
lea ecx, [esp + 0xac]
push ecx
call ebx
lea edx, [esp + 0xb0]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
je 0x40ca28
mov esi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040c180
add esp, 4
mov esi, eax
test esi, esi
jne 0x40ca5c
push 0xffffffffffffffff
push 0
push 0xe002
call sub.MFC42.DLL_AfxMessageBox
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x40cdb0
mov eax, dword [esi]
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call dword [eax + 0x1c]
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x40cda5
fld qword [esp + 0x70]
fcomp qword [esp + 0x80]
fnstsw ax
test ah, 1
je 0x40cda5
mov edx, dword [esi]
lea eax, [esp + 0x88]
push eax
mov ecx, esi
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
call dword [edx + 0x20]
push str.RegMarks.dll
mov bl, al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0x34], eax
je 0x40cdbe
push str.ExportedFunction
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40cd87
fld qword [esp + 0x80]
fsub qword [esp + 0x70]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x4c]
fmul qword [0x40e260]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x20]
fstp qword [esp + 0x70]
fld qword [esp + 0x88]
fsub qword [esp + 0x78]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x40]
fmul qword [0x40e260]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x64]
fstp qword [esp + 0x74]
fld qword [esp + 0xc4]
fsub qword [esp + 0xb4]
push ecx
push edx
mov edx, dword [esi]
lea eax, [esp + 0x40]
fmul qword [0x40e260]
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x50], 0
fstp qword [esp + 0x78]
fld qword [esp + 0xc8]
fsub qword [esp + 0xb8]
mov dword [esp + 0x54], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], 0
fmul qword [0x40e260]
mov dword [esp + 0x5c], 0
mov byte [esp + 0x6c], 0
mov byte [esp + 0x40], bl
mov byte [esp + 0x60], 0
fstp qword [esp + 0x88]
call dword [edx + 4]
push eax
call edi
add esp, 0x34
cmp eax, 1
jne 0x40cd87
fld qword [esp + 0x18]
fcomp qword [0x40e270]
fnstsw ax
test ah, 0x41
jne 0x40cd87
fld qword [esp + 0x20]
fcomp qword [0x40e270]
fnstsw ax
test ah, 0x41
jne 0x40cd87
fld qword [esp + 0x40]
fmul qword [0x40e450]
mov al, byte [esp + 0x10]
test al, al
fstp qword [esp + 0x40]
fld qword [esp + 0x20]
fmul qword [0x40e450]
fstp qword [esp + 0x20]
fld qword [esp + 0x18]
fmul qword [0x40e450]
fstp qword [esp + 0x18]
fld qword [esp + 0x28]
fmul qword [0x40e450]
fstp qword [esp + 0x28]
fld qword [esp + 0x60]
fmul qword [0x40e450]
fstp qword [esp + 0x60]
fld qword [esp + 0x50]
fmul qword [0x40e450]
fstp qword [esp + 0x50]
fld qword [esp + 0x48]
fmul qword [0x40e450]
fstp qword [esp + 0x48]
fld qword [esp + 0x58]
fmul qword [0x40e450]
fstp qword [esp + 0x58]
je 0x40cd3e
lea edi, [esp + 0x48]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x90]
lea eax, [esp + 0x88]
jmp 0x40cd4e
lea edi, [esp + 0x60]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x70]
lea eax, [esp + 0x68]
mov ebx, dword [esp + 0x30]
push ebx
push edi
push edx
push ecx
push eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push esi
call fcn.0040cdf0
add esp, 0x34
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
push 0xe009
jmp 0x40cdb9
push 0xffffffffffffffff
push 0
push 0xe003
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret