Function at 0x4148b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dc35
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
call fcn.00414470
test al, al
jne 0x4148f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00419c50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push dword [0x58ec70]
call fcn.004038c0
push 0x484fd0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403630
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402d50
add esp, 0x18
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414962
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4149b2
push eax
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x414a14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4149ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4149e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x414a00
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x44]
call fcn.0043a4be
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
inc eax
push eax
call fcn.0043a61f
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x60]
call fcn.00413220
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
inc eax
push eax
push 0
push esi
mov dword [ebp - 0x60], edi
call fcn.0044cff0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
add esp, 0xc
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push str.Created_by_KbdEdit
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x414a7d
cmp dword [ebp - 0x10], 1
mov byte [ebp - 0x5c], 1
je 0x414a81
mov byte [ebp - 0x5c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
inc eax
push eax
push 0
push esi
call fcn.0044cff0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push str.Layout_File
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x414ad9
cmp dword [ebp - 0x10], 1
jne 0x414ad9
test esi, esi
jne 0x414abb
xor ecx, ecx
jmp 0x414acf
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ac0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00403e20
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
inc eax
push eax
push 0
push esi
call fcn.0044cff0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push str.Layout_Text
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x414b39
cmp dword [ebp - 0x10], 1
jne 0x414b39
test esi, esi
jne 0x414b13
xor ecx, ecx
jmp 0x414b2f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414b20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.00403e20
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
inc eax
push eax
push 0
push esi
call fcn.0044cff0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.charset
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x414b76
cmp dword [ebp - 0x1c], 4
jne 0x414b76
cmp dword [ebp - 0x10], 4
jne 0x414b76
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
inc eax
push eax
push 0
push esi
call fcn.0044cff0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push 0
push str.Layout_Id
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x414bdf
cmp dword [ebp - 0x30], 1
jne 0x414bdf
push esi
lea ecx, [ebp - 0x1c]
call fcn.004038c0
lea eax, [ebp - 0x10]
push eax
push 0x484f50
push dword [ebp - 0x1c]
call fcn.00417820
movzx edx, word [ebp - 0x4c]
add esp, 0xc
movzx ecx, word [ebp - 0x10]
cmp eax, 1
cmove edx, ecx
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x4c], dx
call fcn.004043f0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
inc eax
push eax
push 0
push esi
call fcn.0044cff0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0
push str.IME_File
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x414c39
cmp dword [ebp - 0x2c], 1
jne 0x414c39
test esi, esi
jne 0x414c19
xor ecx, ecx
jmp 0x414c2f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414c20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403e20
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call fcn.00413380
lea ecx, [ebp - 0x60]
mov bl, 1
call fcn.00413320
lea ecx, [ebp - 0x44]
call fcn.0043a4d5
or esi, 0xffffffff
jmp 0x4149b4