Function at 0x401410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x218]
mov ebx, ecx
push eax
push 0x20219
push 0
push str.SoftwareIime
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401459
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00412f00
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.Clsid
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
je 0x4014cd
push str.83DB39EE_30A2_4143_9062_0C4FD8274968
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, dword [sym.imp.ole32.dll_CLSIDFromString]
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.Guid
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40152b
push str.F0970D4D_3985_46B0_B882_0EC7BA3D3BD1
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.SetupLocation
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401586
push str.C:Program_FilesIime
lea eax, [ebp - 0x20c]
push eax
call edi
cmp word [ebp - 0x20c], 0
jne 0x401594
xor ecx, ecx
jmp 0x4015af
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4015a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call fcn.00401e00
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.DataLocation
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401625
cmp dword [esi + 0x14], 8
jb 0x401609
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
push str.IimeData
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x20c], 0
pop edi
pop esi
jne 0x401635
xor ecx, ecx
jmp 0x40164f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401640
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x38]
call fcn.00401e00
lea ecx, [ebp - 0x214]
mov dword [ebx + 0x50], 0
push ecx
lea eax, [ebx + 0x50]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 4
push eax
push 0
push str.Portable
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret