Function at 0x41b1e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4369c7
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 0x34], 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 0x41b236
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00415450
add esp, 4
jmp 0x41b687
mov dword [ebp - 0x458], 0
lea eax, [ebp - 0x50]
push eax
call fcn.00417350
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004099e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41b2b1
mov dword [ebp - 0x4a4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00409a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401080
mov eax, dword [ebp - 0x4a4]
jmp 0x41b687
mov edx, dword [ebp - 0x458]
push edx
lea ecx, [ebp - 0x45c]
call fcn.004139a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x41b336
mov dword [ebp - 0x4a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.00413510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00409a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401080
mov eax, dword [ebp - 0x4a8]
jmp 0x41b687
xor edx, edx
mov word [ebp - 0x454], dx
push 0x3fe
push 0
lea eax, [ebp - 0x452]
push eax
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x460], 0
jmp 0x41b377
mov ecx, dword [ebp - 0x460]
add ecx, 1
mov dword [ebp - 0x460], ecx
mov edx, dword [ebp - 0x460]
cmp edx, dword [ebp - 0x30]
jae 0x41b5ad
push 0x400
push 0
lea eax, [ebp - 0x454]
push eax
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x454]
push edx
mov eax, dword [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41b5a8
mov dword [ebp - 0x464], 0
lea edx, [ebp - 0x464]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b5a8
mov edx, dword [ebp - 0x464]
push edx
lea ecx, [ebp - 0x468]
call fcn.004139a0
mov byte [ebp - 4], 3
mov eax, dword [0x43a004]
mov dword [ebp - 0x488], eax
mov ecx, dword [0x43a008]
mov dword [ebp - 0x484], ecx
mov edx, dword [0x43a00c]
mov dword [ebp - 0x480], edx
mov eax, dword [0x43a010]
mov dword [ebp - 0x47c], eax
mov ecx, dword [0x43a004]
mov dword [ebp - 0x478], ecx
mov edx, dword [0x43a008]
mov dword [ebp - 0x474], edx
mov eax, dword [0x43a00c]
mov dword [ebp - 0x470], eax
mov ecx, dword [0x43a010]
mov dword [ebp - 0x46c], ecx
lea edx, [ebp - 0x488]
push edx
push 0x43c8ac
push str.CLSID
push 0
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x4c4]
push ecx
call fcn.00407340
mov dword [ebp - 0x514], eax
mov edx, dword [ebp - 0x514]
mov dword [ebp - 0x518], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x518]
call fcn.00401600
push eax
call fcn.004080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c4]
call fcn.00401080
lea eax, [ebp - 0x478]
push eax
push 0x43c8ac
push 0x438738
push 0
mov ecx, dword [ebp - 0x464]
push ecx
lea edx, [ebp - 0x4e0]
push edx
call fcn.00407340
mov dword [ebp - 0x51c], eax
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x520], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x520]
call fcn.00401600
push eax
call fcn.004080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e0]
call fcn.00401080
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
lea edx, [ebp - 0x488]
push edx
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x41b599
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
lea ecx, [ebp - 0x478]
push ecx
call fcn.0040dbc0
add esp, 8
test eax, eax
je 0x41b599
lea edx, [ebp - 0x454]
push edx
lea ecx, [ebp - 0x4fc]
call fcn.00401550
mov byte [ebp - 4], 6
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4fc]
call fcn.00401080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x468]
call fcn.00413510
jmp 0x41b368
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x494], ecx
lea edx, [ebp - 0x504]
push edx
mov ecx, dword [ebp - 0x494]
call fcn.004019f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x490], ecx
mov dword [ebp - 0x48c], edx
lea eax, [ebp - 0x50c]
push eax
mov ecx, dword [ebp - 0x494]
call fcn.00409ac0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x498], edx
jmp 0x41b609
lea ecx, [ebp - 0x49c]
call fcn.00409b30
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x49c]
call fcn.00409ba0
movzx ecx, al
test ecx, ecx
je 0x41b64d
lea ecx, [ebp - 0x49c]
call fcn.0040a770
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
call fcn.00401600
push eax
mov edx, dword [ebp - 0x458]
push edx
call fcn.00407780
jmp 0x41b5fe
mov dword [ebp - 0x510], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.00413510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00409a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401080
mov eax, dword [ebp - 0x510]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret