Function at 0x42e3c0
Capabilities:
Delete registry key
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fe508
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
mov edi, 1
push eax
mov ecx, str.Keyboard_LayoutPreload_
mov dword [esp + 0x40], edi
call fcn.00409dd0
xor esi, esi
mov dword [esp + 0x80], esi
call fcn.00448810
mov dword [esp + 0x20], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov dword [esp + 0x24], esi
mov byte [esp + 0x80], 1
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x44]
push ecx
push edx
push SysReAllocStringLen
mov dword [esp + 0x50], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
jne 0x42e71e
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 2
mov dword [esp + 0x48], edi
jmp 0x42e4a0
mov eax, dword [esp + 0x48]
push eax
push 0x625d28
lea edi, [esp + 0x20]
call fcn.0040ac80
add esp, 8
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x48]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x40], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x42e6f6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
call fcn.00409dd0
lea edi, [esp + 0x14]
mov byte [esp + 0x80], 3
call fcn.00431780
mov ecx, dword [0x67ba4c]
mov ebx, dword [ecx]
mov esi, 0x67ba48
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], esi
test esi, esi
mov edi, dword [0x67ba4c]
je 0x42e546
cmp esi, 0x67ba48
je 0x42e54b
call fcn.005d29f1
cmp ebx, edi
je 0x42e64e
test esi, esi
jne 0x42e55c
call fcn.005d29f1
cmp ebx, dword [esi + 4]
jne 0x42e566
call fcn.005d29f1
cmp dword [ebx + 0x10], 0
jne 0x42e5e1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x80], 4
cmp ebx, dword [esi + 4]
jne 0x42e595
call fcn.005d29f1
mov ecx, dword [ebx + 0x54]
push ecx
push str._08X
lea edi, [esp + 0x38]
call fcn.0040ac80
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
push edx
push edi
call fcn.005d2da6
add esp, 0x10
test eax, eax
je 0x42e5f7
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e5e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.00433280
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x42e534
cmp ebx, dword [esi + 4]
jne 0x42e601
call fcn.005d29f1
cmp dword [ebx + 0x5c], 0
je 0x42e628
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
call fcn.00431ca0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0040ab90
add dword [esp + 0x2c], 1
mov edi, dword [esp + 0x30]
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e6b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42e6b6
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
call fcn.00431ca0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42e6b1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42e6a6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42e6a6
call fcn.0040a210
mov dword [esp + 0x30], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42e69b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x30]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42e6b1
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.004037a0
add dword [esp + 0x2c], 1
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e6de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 1
xor esi, esi
cmp eax, 0x3e8
mov dword [esp + 0x48], eax
jl 0x42e4a0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e71e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x67ba4c]
mov edi, dword [edx]
mov ebx, 0x67ba48
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov edi, edi
cmp ebx, esi
mov eax, dword [0x67ba4c]
mov dword [esp + 0x4c], eax
je 0x42e755
cmp ebx, 0x67ba48
je 0x42e75a
call fcn.005d29f1
cmp edi, dword [esp + 0x4c]
je 0x42e8ad
cmp ebx, esi
jne 0x42e76d
call fcn.005d29f1
cmp edi, dword [ebx + 4]
jne 0x42e777
call fcn.005d29f1
cmp dword [edi + 0x10], esi
jne 0x42e895
cmp edi, dword [ebx + 4]
jne 0x42e78a
call fcn.005d29f1
cmp dword [edi + 0x5c], esi
je 0x42e895
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x80], 5
cmp edi, dword [ebx + 4]
jne 0x42e7bc
call fcn.005d29f1
mov ecx, dword [edi + 0x54]
push ecx
push str._08X
lea edi, [esp + 0x30]
call fcn.0040ac80
mov edi, dword [esp + 0x30]
add esp, 8
cmp dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
jbe 0x42e80a
nop
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
call fcn.00431ca0
mov eax, dword [eax]
push edi
push eax
call fcn.005d2da6
add esp, 8
test eax, eax
je 0x42e871
add esi, 1
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x18], esi
jb 0x42e7e0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
call fcn.00431ca0
mov ecx, eax
mov esi, dword [ecx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
mov dword [esp + 0x18], ecx
je 0x42e871
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42e866
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42e866
call fcn.0040a210
mov dword [esp + 0x40], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42e857
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x42e871
mov ebx, dword [edi - 0xc]
push edi
mov eax, ecx
call fcn.004037a0
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.00433280
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
xor esi, esi
jmp 0x42e740
push str.Keyboard_LayoutPreload_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x50]
push ecx
push str.Keyboard_LayoutPreload_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, esi
je 0x42e8df
mov dword [esp + 0x3c], esi
jmp 0x42e9a8
cmp dword [esp + 0x24], esi
mov ebx, 1
mov dword [esp + 0x14], esi
jbe 0x42e99d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
call fcn.00431ca0
mov edx, dword [eax]
cmp dword [edx - 0xc], esi
je 0x42e99d
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
push ebx
push 0x625d28
lea edi, [esp + 0x30]
mov byte [esp + 0x88], 6
call fcn.0040ac80
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
call fcn.00431ca0
mov eax, dword [eax]
push 0x10
push eax
mov eax, dword [esp + 0x58]
push 1
push esi
mov esi, dword [esp + 0x38]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esi - 0x10]
add ebx, 1
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e986
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 1
xor esi, esi
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jb 0x42e8f2
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x20]
call fcn.00432510
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], esi
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, ecx
push edx
push edi
lea ecx, [esp + 0x44]
push ecx
call fcn.00432d30
mov edx, dword [esp + 0x20]
push edx
call fcn.005d2367
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ea33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret