Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x14bc
call fcn.00411080
mov eax, dword [section..Global]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
push esi
cmp eax, ebx
push edi
je 0x401a7b
push ebx
push str.Dreye_MainWnd
call ebp
mov esi, eax
cmp esi, ebx
jne 0x401a43
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
cmp dword [section..Global], ebx
je 0x401a3f
push ebx
push str.Dreye_MainWnd
call ebp
mov esi, eax
cmp esi, ebx
je 0x401a23
jmp 0x401a43
cmp esi, ebx
je 0x401a7b
mov eax, dword [esp + 0x14d8]
cmp eax, ebx
je 0x401a57
cmp byte [eax], bl
je 0x401a57
push ebx
push 1
jmp 0x401a59
push ebx
push ebx
push str.Dreye_Open_Setup
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14bc
ret 0x10
push str.Dreye_Basic_Info
push 0x12c
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [section..Global], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x10], edi
jne 0x401aba
pop edi
pop esi
mov dword [section..Global], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x14bc
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401b2f
push ebx
push ebx
push ebx
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x401af5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [section..Global], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x14bc
ret 0x10
lea eax, [esp + 0xbc]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xbc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0xbc]
push edx
push esi
call fcn.00411056
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, 0x67
xor eax, eax
mov edi, 0x41fd50
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14d0]
mov dword [0x41fd68], 0x65
mov dword [0x41fd50], eax
mov eax, dword [esp + 0x14d8]
cmp eax, ebx
je 0x401b6f
cmp byte [eax], bl
je 0x401b6f
mov edi, 1
mov dword [0x41fec4], edi
jmp 0x401b74
mov edi, 1
push ebx
push ebx
call fcn.0040e4e0
call fcn.0040ea00
call fcn.004058e0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd32.dll
call esi
push str.DrLanENU.dll
mov dword [0x41fed8], eax
call esi
mov dword [0x41fed4], eax
call fcn.00405b20
push ebx
push str.Dreye_MainWnd
call ebp
test eax, eax
je 0x401c63
mov edx, dword [0x41fed4]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x3c]
push 0x40
push ecx
push edi
push edx
call esi
mov ecx, dword [0x41fed4]
lea eax, [esp + 0x4cc]
push 0x800
push eax
push 0x1b
push ecx
call esi
mov ecx, dword [0x41fd54]
lea edx, [esp + 0x3c]
push ebx
lea eax, [esp + 0x4d0]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x41fed4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x401c21
push eax
call esi
mov eax, dword [0x41fed8]
cmp eax, ebx
je 0x401c2d
push eax
call esi
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.00405a30
call fcn.0040eaa0
call fcn.0040e750
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [section..Global], ebx
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14bc
ret 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREInventecDreyeSystemInstallInfo
push reloc.DreyeWndU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d0d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c4]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push 0x41c040
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d02
mov eax, dword [0x41fed4]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x3c]
push 0x40
push edx
push edi
push eax
call esi
mov edx, dword [0x41fed4]
lea ecx, [esp + 0x4cc]
push 0x800
push ecx
push 0x1c
push edx
call esi
mov edx, dword [0x41fd54]
lea eax, [esp + 0x3c]
push ebx
lea ecx, [esp + 0x4d0]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401000
call fcn.00401e30
call fcn.00401e70
test eax, eax
jne 0x401d83
call fcn.00401f50
call fcn.00401e50
call fcn.00401040
mov eax, dword [0x41fed4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x401d41
push eax
call esi
mov eax, dword [0x41fed8]
cmp eax, ebx
je 0x401d4d
push eax
call esi
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.00405a30
call fcn.0040eaa0
call fcn.0040e750
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [section..Global], ebx
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14bc
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
push edx
mov dword [0x41fd6c], edi
call esi
test eax, eax
je 0x401dc5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x20]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call ebp
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
push edx
call esi
test eax, eax
jne 0x401da9
mov dword [0x41fd6c], ebx
call fcn.00401f50
call fcn.00401e50
call fcn.00401040
mov eax, dword [0x41fed4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x401dec
push eax
call esi
mov eax, dword [0x41fed8]
cmp eax, ebx
je 0x401df8
push eax
call esi
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.00405a30
call fcn.0040eaa0
call fcn.0040e750
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 0x20]
mov dword [section..Global], ebx
pop ebp
pop ebx
add esp, 0x14bc
ret 0x10