Function at 0x415820
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4360be
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43a004
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x41587e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004161e0
add esp, 0xc
jmp 0x4161c0
mov dword [ebp - 0x598], 0
lea edx, [ebp - 0x598]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4158b1
xor eax, eax
jmp 0x4161c0
mov eax, dword [ebp - 0x598]
push eax
lea ecx, [ebp - 0x130]
call fcn.004139a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x158], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x158]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x598]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x415927
mov dword [ebp - 0x760], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00413510
mov eax, dword [ebp - 0x760]
jmp 0x4161c0
lea ecx, [ebp - 0x154]
call fcn.00420400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00420060
mov byte [ebp - 4], 2
mov dword [ebp - 0x134], 0
xor eax, eax
mov word [ebp - 0x594], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x592]
push ecx
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x59c], 0
jmp 0x415990
mov edx, dword [ebp - 0x59c]
add edx, 1
mov dword [ebp - 0x59c], edx
mov eax, dword [ebp - 0x59c]
cmp eax, dword [ebp - 0x158]
jae 0x415d45
push 0x400
push 0
lea ecx, [ebp - 0x594]
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 - 0x594]
push eax
mov ecx, dword [ebp - 0x59c]
push ecx
mov edx, dword [ebp - 0x598]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x415d40
lea eax, [ebp - 0x5a0]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x594]
push ecx
mov edx, dword [ebp - 0x598]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415d40
mov eax, dword [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x5c8]
call fcn.004139a0
mov byte [ebp - 4], 3
mov ecx, dword [0x43a004]
mov dword [ebp - 0x5c0], ecx
mov edx, dword [0x43a008]
mov dword [ebp - 0x5bc], edx
mov eax, dword [0x43a00c]
mov dword [ebp - 0x5b8], eax
mov ecx, dword [0x43a010]
mov dword [ebp - 0x5b4], ecx
mov edx, dword [0x43a004]
mov dword [ebp - 0x5b0], edx
mov eax, dword [0x43a008]
mov dword [ebp - 0x5ac], eax
mov ecx, dword [0x43a00c]
mov dword [ebp - 0x5a8], ecx
mov edx, dword [0x43a010]
mov dword [ebp - 0x5a4], edx
lea eax, [ebp - 0x5c0]
push eax
push 0x43c8ac
push str.CLSID
push 0
mov ecx, dword [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x77c]
push edx
call fcn.00407340
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x830], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x830]
call fcn.00401600
push eax
call fcn.004080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x77c]
call fcn.00401080
lea ecx, [ebp - 0x5b0]
push ecx
push 0x43c8ac
push 0x438738
push 0
mov edx, dword [ebp - 0x5a0]
push edx
lea eax, [ebp - 0x798]
push eax
call fcn.00407340
mov dword [ebp - 0x834], eax
mov ecx, dword [ebp - 0x834]
mov dword [ebp - 0x838], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x838]
call fcn.00401600
push eax
call fcn.004080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x798]
call fcn.00401080
push 0x10
push 0
push 0x43c8ac
push str.Modifiers
push 0
mov edx, dword [ebp - 0x5a0]
push edx
lea eax, [ebp - 0x7b4]
push eax
call fcn.00407340
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x83c]
mov dword [ebp - 0x840], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x840]
call fcn.00401600
push eax
call fcn.004245e0
add esp, 0xc
mov dword [ebp - 0x5cc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7b4]
call fcn.00401080
push 0x10
push 0
push 0x43c8ac
push str.VirtualKey
push 0
mov edx, dword [ebp - 0x5a0]
push edx
lea eax, [ebp - 0x7d0]
push eax
call fcn.00407340
mov dword [ebp - 0x844], eax
mov ecx, dword [ebp - 0x844]
mov dword [ebp - 0x848], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x848]
call fcn.00401600
push eax
call fcn.004245e0
add esp, 0xc
mov dword [ebp - 0x5c4], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7d0]
call fcn.00401080
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x5cc]
jne 0x415c6b
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x5c4]
jne 0x415c6b
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
lea edx, [ebp - 0x5c0]
push edx
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x415c6b
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
lea ecx, [ebp - 0x5b0]
push ecx
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x415c6b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c8]
call fcn.00413510
jmp 0x415d45
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x5cc]
jne 0x415cc0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x5c4]
jne 0x415cc0
push 0
mov ecx, dword [ebp - 0x134]
push ecx
lea edx, [ebp - 0x7e0]
push edx
call fcn.00422d30
add esp, 0xc
push eax
lea ecx, [ebp - 0x7d8]
call fcn.00422d00
lea eax, [ebp - 0x7d8]
push eax
lea ecx, [ebp - 0x7ec]
push ecx
lea ecx, [ebp - 0x154]
call fcn.004204e0
jmp 0x415d31
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea eax, [ebp - 0x5c0]
push eax
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x415d31
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
lea edx, [ebp - 0x5b0]
push edx
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x415d31
push 0
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x7fc]
push ecx
call fcn.00422d30
add esp, 0xc
push eax
lea ecx, [ebp - 0x7f4]
call fcn.00422d00
lea edx, [ebp - 0x7f4]
push edx
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x154]
call fcn.004204e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c8]
call fcn.00413510
jmp 0x415981
lea ecx, [ebp - 0x12c]
call fcn.00420150
movzx ecx, al
test ecx, ecx
jne 0x415e2b
mov dword [ebp - 0x5d0], 1
jmp 0x415d76
mov edx, dword [ebp - 0x5d0]
add edx, 1
mov dword [ebp - 0x5d0], edx
lea ecx, [ebp - 0x12c]
call fcn.00420130
cmp dword [ebp - 0x5d0], eax
jae 0x415de6
xor eax, eax
mov word [ebp - 0x654], ax
push 0x7e
push 0
lea ecx, [ebp - 0x652]
push ecx
call fcn.00423660
add esp, 0xc
mov edx, dword [ebp - 0x5d0]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00420170
mov eax, dword [eax]
push eax
push 0x43c8b4
push 0x40
lea ecx, [ebp - 0x654]
push ecx
call fcn.00402c40
add esp, 0x10
lea edx, [ebp - 0x654]
push edx
mov eax, dword [ebp - 0x598]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x415d67
mov dword [ebp - 0x80c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.004200d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.00417380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00413510
mov eax, dword [ebp - 0x80c]
jmp 0x4161c0
lea ecx, [ebp - 0x154]
call fcn.004204c0
movzx ecx, al
test ecx, ecx
jne 0x415f44
lea edx, [ebp - 0x65c]
push edx
lea ecx, [ebp - 0x154]
call fcn.0040aae0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x154]
call fcn.00420490
push eax
lea ecx, [ebp - 0x65c]
call fcn.00420eb0
movzx ecx, al
test ecx, ecx
je 0x415f44
lea ecx, [ebp - 0x65c]
call fcn.00420e90
cmp dword [eax], 0x1000
jb 0x415ef6
lea ecx, [ebp - 0x65c]
call fcn.00420e90
cmp dword [eax], 0x2000
ja 0x415ef6
xor edx, edx
mov word [ebp - 0x6dc], dx
push 0x7e
push 0
lea eax, [ebp - 0x6da]
push eax
call fcn.00423660
add esp, 0xc
lea ecx, [ebp - 0x65c]
call fcn.00420e90
mov ecx, dword [eax]
push ecx
push 0x43c8b4
push 0x40
lea edx, [ebp - 0x6dc]
push edx
call fcn.00402c40
add esp, 0x10
lea eax, [ebp - 0x6dc]
push eax
mov ecx, dword [ebp - 0x598]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x65c]
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x818], eax
mov ecx, dword [ebp - 0x818]
push ecx
mov edx, dword [ebp - 0x81c]
push edx
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x154]
call fcn.004206b0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x65c], ecx
mov dword [ebp - 0x658], edx
jmp 0x415e53
mov dword [ebp - 0x134], 0x1000
jmp 0x415f5f
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0x2000
ja 0x415fbf
xor ecx, ecx
mov word [ebp - 0x75c], cx
push 0x7e
push 0
lea edx, [ebp - 0x75a]
push edx
call fcn.00423660
add esp, 0xc
mov eax, dword [ebp - 0x134]
push eax
push 0x43c8b4
push 0x40
lea ecx, [ebp - 0x75c]
push ecx
call fcn.00402c40
add esp, 0x10
lea edx, [ebp - 0x75c]
push edx
mov eax, dword [ebp - 0x598]
push eax
call fcn.00407860
test eax, eax
jne 0x415fbd
jmp 0x415fbf
jmp 0x415f50
cmp dword [ebp - 0x134], 0x2000
jbe 0x415fd5
mov dword [ebp - 0x134], 0x2000
xor ecx, ecx
mov word [ebp - 0x114], cx
push 0x7e
push 0
lea edx, [ebp - 0x112]
push edx
call fcn.00423660
add esp, 0xc
mov eax, dword [ebp - 0x134]
push eax
push 0x43c8b4
push 0x40
lea ecx, [ebp - 0x114]
push ecx
call fcn.00402c40
add esp, 0x10
lea ecx, [ebp - 0x190]
call fcn.00403ce0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x174]
call fcn.00403ce0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x190]
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.00407b90
lea ecx, [ebp - 0x174]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
call fcn.00407b90
lea ecx, [ebp - 0x190]
call fcn.00401600
push eax
push str.CLSID
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x598]
push ecx
call fcn.00407200
lea ecx, [ebp - 0x174]
call fcn.00401600
push eax
push 0x438738
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x598]
push eax
call fcn.00407200
push str.DB8D985C_9FA2_4ece_B4B7_1A0918C4F742
push str.PreservedKeyId
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x598]
push edx
call fcn.00407200
push str.00000804
push str.LangId
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x598]
push ecx
call fcn.00407200
xor edx, edx
mov word [ebp - 0x94], dx
push 0x7e
push 0
lea eax, [ebp - 0x92]
push eax
call fcn.00423660
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43c8b4
push 0x40
lea edx, [ebp - 0x94]
push edx
call fcn.00402c40
add esp, 0x10
lea eax, [ebp - 0x94]
push eax
push str.Modifiers
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x598]
push edx
call fcn.00407200
mov eax, dword [ebp + 0x10]
push eax
push 0x43c8b4
push 0x40
lea ecx, [ebp - 0x94]
push ecx
call fcn.00402c40
add esp, 0x10
lea edx, [ebp - 0x94]
push edx
push str.VirtualKey
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x598]
push ecx
call fcn.00407200
mov dword [ebp - 0x828], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x174]
call fcn.00401080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call fcn.00401080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.004200d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.00417380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00413510
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret