Function at 0x4161e0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436126
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 0x70], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x490], 0
push 0x804
push SysReAllocString
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f0b0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00417350
add esp, 4
mov byte [ebp - 4], 1
lea edx, [ebp - 0x490]
push edx
push 0xf003f
push 0
lea ecx, [ebp - 0x8c]
call fcn.00401600
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4162a2
mov dword [ebp - 0x7e0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410270
mov eax, dword [ebp - 0x7e0]
jmp 0x416b3c
mov eax, dword [ebp - 0x490]
push eax
lea ecx, [ebp - 0x14]
call fcn.004139a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x416324
mov dword [ebp - 0x7e4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00413510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410270
mov eax, dword [ebp - 0x7e4]
jmp 0x416b3c
lea ecx, [ebp - 0x68]
call fcn.00420400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00420060
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x48c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x48a]
push ecx
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x494], 0
jmp 0x416384
mov edx, dword [ebp - 0x494]
add edx, 1
mov dword [ebp - 0x494], edx
mov eax, dword [ebp - 0x494]
cmp eax, dword [ebp - 0x6c]
jae 0x4165db
push 0x400
push 0
lea ecx, [ebp - 0x48c]
push ecx
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4165d6
lea eax, [ebp - 0x498]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4165d6
mov eax, dword [ebp - 0x498]
push eax
lea ecx, [ebp - 0x49c]
call fcn.004139a0
mov byte [ebp - 4], 5
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a4], 0
lea ecx, [ebp - 0x48]
push ecx
push 0x43c8c0
lea edx, [ebp - 0x48c]
push edx
call fcn.0042416e
add esp, 0xc
mov dword [ebp - 0x4a8], 4
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x4b0]
push ecx
lea edx, [ebp - 0x4a0]
push edx
push 0
push str.Key_Modifiers
mov eax, dword [ebp - 0x498]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x4a8], 4
lea ecx, [ebp - 0x4a8]
push ecx
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x4a0]
push eax
push 0
push str.Target_IME
mov ecx, dword [ebp - 0x498]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x4a8], 4
lea edx, [ebp - 0x4a8]
push edx
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push str.Virtual_Key
mov edx, dword [ebp - 0x498]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x4b0]
jne 0x41652c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x4ac]
jne 0x41652c
mov edx, dword [ebp - 0x4a4]
cmp edx, dword [ebp + 8]
jne 0x41652c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x7e8], eax
lea ecx, [ebp - 0x7e8]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004201a0
jmp 0x4165c7
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x4b0]
jne 0x416580
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x4ac]
jne 0x416580
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x7f8]
push eax
call fcn.00422d30
add esp, 0xc
push eax
lea ecx, [ebp - 0x7f0]
call fcn.00422d00
lea ecx, [ebp - 0x7f0]
push ecx
lea edx, [ebp - 0x804]
push edx
lea ecx, [ebp - 0x68]
call fcn.004204e0
jmp 0x4165c7
mov eax, dword [ebp - 0x4a4]
cmp eax, dword [ebp + 8]
jne 0x4165c7
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x814]
push eax
call fcn.00422d30
add esp, 0xc
push eax
lea ecx, [ebp - 0x80c]
call fcn.00422d00
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x820]
push edx
lea ecx, [ebp - 0x68]
call fcn.004204e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x49c]
call fcn.00413510
jmp 0x416375
lea ecx, [ebp - 0x44]
call fcn.00420150
movzx eax, al
test eax, eax
jne 0x4166ca
mov dword [ebp - 0x4b4], 1
jmp 0x416609
mov ecx, dword [ebp - 0x4b4]
add ecx, 1
mov dword [ebp - 0x4b4], ecx
lea ecx, [ebp - 0x44]
call fcn.00420130
cmp dword [ebp - 0x4b4], eax
jae 0x416673
xor edx, edx
mov word [ebp - 0x534], dx
push 0x7e
push 0
lea eax, [ebp - 0x532]
push eax
call fcn.00423660
add esp, 0xc
mov ecx, dword [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00420170
mov edx, dword [eax]
push edx
push 0x43c8b4
push 0x40
lea eax, [ebp - 0x534]
push eax
call fcn.00402c40
add esp, 0x10
lea ecx, [ebp - 0x534]
push ecx
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4165fa
mov dword [ebp - 0x824], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004200d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00417380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00413510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410270
mov eax, dword [ebp - 0x824]
jmp 0x416b3c
lea ecx, [ebp - 0x68]
call fcn.004204c0
movzx eax, al
test eax, eax
jne 0x4168ea
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0040aae0
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebp - 0x68]
call fcn.00420490
push eax
lea ecx, [ebp - 0x53c]
call fcn.00420eb0
movzx eax, al
test eax, eax
je 0x4168ea
lea ecx, [ebp - 0x53c]
call fcn.00420e90
cmp dword [eax], 0x100
jb 0x41689f
lea ecx, [ebp - 0x53c]
call fcn.00420e90
cmp dword [eax], 0x11f
ja 0x41689f
xor ecx, ecx
mov word [ebp - 0x5bc], cx
push 0x7e
push 0
lea edx, [ebp - 0x5ba]
push edx
call fcn.00423660
add esp, 0xc
xor eax, eax
mov word [ebp - 0x63c], ax
push 0x7e
push 0
lea ecx, [ebp - 0x63a]
push ecx
call fcn.00423660
add esp, 0xc
lea ecx, [ebp - 0x53c]
call fcn.00420e90
mov edx, dword [eax]
push edx
push 0x43c8b4
push 0x40
lea eax, [ebp - 0x5bc]
push eax
call fcn.00402c40
add esp, 0x10
lea ecx, [ebp - 0x53c]
call fcn.00420e90
mov ecx, dword [eax + 4]
push ecx
push 0x43c8b4
push 0x40
lea edx, [ebp - 0x63c]
push edx
call fcn.00402c40
add esp, 0x10
lea eax, [ebp - 0x5bc]
push eax
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea edx, [ebp - 0x834]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00421e90
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x644], ecx
mov dword [ebp - 0x640], edx
lea eax, [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00410490
push eax
lea ecx, [ebp - 0x644]
call fcn.00420eb0
movzx ecx, al
test ecx, ecx
je 0x41684e
lea ecx, [ebp - 0x644]
call fcn.004108e0
mov esi, eax
lea ecx, [ebp - 0x53c]
call fcn.00420e90
mov edx, dword [esi]
cmp edx, dword [eax + 4]
jne 0x416838
jmp 0x41684e
push 0
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x644]
call fcn.00420330
jmp 0x4167f5
lea ecx, [ebp - 0x84c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00410490
push eax
lea ecx, [ebp - 0x644]
call fcn.00420eb0
movzx edx, al
test edx, edx
je 0x41689f
push 0x43a004
lea ecx, [ebp - 0x644]
call fcn.004108e0
add eax, 4
push eax
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x41689f
push 0x10
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov ecx, dword [ebp - 0x53c]
mov dword [ebp - 0x854], ecx
mov edx, dword [ebp - 0x538]
mov dword [ebp - 0x850], edx
mov eax, dword [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x854]
push ecx
lea edx, [ebp - 0x85c]
push edx
lea ecx, [ebp - 0x68]
call fcn.004206b0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x53c], ecx
mov dword [ebp - 0x538], edx
jmp 0x4166ec
mov dword [ebp - 0x48], pe_nt_image_headers32
jmp 0x4168fc
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x11f
ja 0x416995
xor ecx, ecx
mov word [ebp - 0x6c4], cx
push 0x7e
push 0
lea edx, [ebp - 0x6c2]
push edx
call fcn.00423660
add esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
push 0x43c8b4
push 0x40
lea ecx, [ebp - 0x6c4]
push ecx
call fcn.00402c40
add esp, 0x10
mov dword [ebp - 0x6c8], 0
lea edx, [ebp - 0x6c8]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x6c4]
push eax
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41698e
mov edx, dword [ebp - 0x6c8]
push edx
lea ecx, [ebp - 0x6cc]
call fcn.004139a0
lea ecx, [ebp - 0x6cc]
call fcn.00413510
jmp 0x416990
jmp 0x416995
jmp 0x4168f3
cmp dword [ebp - 0x48], 0x11f
jbe 0x4169a5
mov dword [ebp - 0x48], pe_nt_image_headers32
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x48]
push eax
call sub.IMM32.dll_ImmSetHotKey
test eax, eax
jne 0x416aea
xor ecx, ecx
mov word [ebp - 0x754], cx
push 0x7e
push 0
lea edx, [ebp - 0x752]
push edx
call fcn.00423660
add esp, 0xc
xor eax, eax
mov word [ebp - 0x7d4], ax
push 0x7e
push 0
lea ecx, [ebp - 0x7d2]
push ecx
call fcn.00423660
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
push 0x43c8b4
push 0x40
lea eax, [ebp - 0x754]
push eax
call fcn.00402c40
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6d0], ecx
mov edx, dword [ebp - 0x6d0]
push edx
push 0x43c8b4
push 0x40
lea eax, [ebp - 0x7d4]
push eax
call fcn.00402c40
add esp, 0x10
mov dword [ebp - 0x7d8], 0
lea ecx, [ebp - 0x7d8]
push ecx
lea edx, [ebp - 0x754]
push edx
mov eax, dword [ebp - 0x490]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x416aea
mov ecx, dword [ebp - 0x7d8]
push ecx
lea ecx, [ebp - 0x7dc]
call fcn.004139a0
push 4
lea edx, [ebp + 0xc]
push edx
push 3
push 0
push str.Key_Modifiers
mov eax, dword [ebp - 0x7d8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 3
push 0
push str.Virtual_Key
mov edx, dword [ebp - 0x7d8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x6d0]
push eax
push 3
push 0
push str.Target_IME
mov ecx, dword [ebp - 0x7d8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10
lea edx, [ebp - 0x7d4]
push edx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
lea ecx, [ebp - 0x7dc]
call fcn.00413510
mov dword [ebp - 0x860], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004200d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00417380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00413510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00410270
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret