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

Disassembly:
push 0xffffffffffffffff
push 0x5a26ab
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
xor ebp, ebp
push eax
mov ecx, str.Keyboard_LayoutPreload_
mov dword [esp + 0x54], ebp
call fcn.00404460
push fcn.00404510
push fcn.00404530
push 0x14
push 4
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x11c], ebp
call fcn.0057b07c
mov byte [esp + 0x108], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
lea esi, [ebp + 1]
mov dword [esp + 0x5c], ebp
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
mov byte [esp + 0x108], 2
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x40]
push ecx
push edx
push closesocket
mov dword [esp + 0x4c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebp
jne 0x42df85
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], 0x18
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x7c]
mov byte [esp + 0x108], 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], eax
jmp 0x42da70
mov ecx, dword [esp + 0x1c]
push ecx
xor ebp, ebp
push 0x5bede8
lea edi, [esp + 0x2c]
mov dword [esp + 0x20], ebp
call fcn.004126f0
xor eax, eax
add esp, 8
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0xe8]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
push ebp
push edx
push eax
mov dword [esp + 0x70], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x42df5d
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xe8]
call fcn.00404460
lea edi, [esp + 0x30]
mov byte [esp + 0x108], 4
call fcn.00431730
mov edx, dword [0x5fff6c]
mov ebx, dword [edx]
mov esi, 0x5fff68
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
cmp esi, ebp
mov edi, dword [0x5fff6c]
je 0x42db34
cmp esi, 0x5fff68
je 0x42db39
call fcn.00578ff3
cmp ebx, edi
je 0x42dbf5
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
cmp esi, ebp
mov byte [esp + 0x108], 5
jne 0x42db68
call fcn.00578ff3
cmp ebx, dword [esi + 4]
jne 0x42db72
call fcn.00578ff3
mov eax, dword [ebx + 0x54]
push eax
push str._08x
lea edi, [esp + 0x30]
call fcn.004126f0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push esi
push ecx
call fcn.00579288
add esp, 0x10
test eax, eax
mov byte [esp + 0x108], 4
lea eax, [esi - 0x10]
je 0x42dbd4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dbbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x60]
call fcn.00433210
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
jmp 0x42db22
mov dword [esp + 0x18], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dbf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, str.0000
call fcn.00404460
mov esi, eax
mov eax, 4
lea ecx, [esp + 0x68]
lea edx, [esp + 0x30]
mov byte [esp + 0x108], 6
call fcn.00403560
mov ecx, dword [esi]
xor edx, edx
cmp ecx, ebp
setne dl
cmp edx, ebp
je 0x42e176
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dc59
cmp dx, bp
je 0x42dc55
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dc59
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x42dc33
xor eax, eax
jmp 0x42dc5e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
mov eax, dword [esp + 0x68]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dc83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x108], 4
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dcab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42deb9
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x108], 7
mov ecx, dword [esp + 0x1c]
add ecx, 1
push ecx
push 0x5bede8
lea edi, [esp + 0x30]
call fcn.004126f0
xor eax, eax
add esp, 8
mov dword [esp + 0xce], eax
mov dword [esp + 0xd2], eax
mov dword [esp + 0xd6], eax
mov dword [esp + 0xda], eax
mov dword [esp + 0xde], eax
mov word [esp + 0xe2], ax
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xd0]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
push eax
mov word [esp + 0xe4], 0
mov dword [esp + 0x84], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42de91
push 0x10
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00578c22
mov edx, dword [0x5fcd20]
mov ebp, eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x10c], 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebp
call fcn.0042b350
mov edx, dword [esp + 0x30]
add esp, 4
cmp dword [edx - 0xc], 0
jl 0x42de69
mov eax, edx
push 0x5bea4c
push eax
call fcn.0057880c
add esp, 8
test eax, eax
je 0x42de69
sub eax, dword [esp + 0x2c]
sar eax, 1
cmp eax, 0xffffffff
je 0x42de69
mov ecx, dword [0x5fff6c]
mov ebx, dword [ecx]
mov esi, 0x5fff68
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
lea esp, [esp]
test esi, esi
mov edi, dword [0x5fff6c]
je 0x42de02
cmp esi, 0x5fff68
je 0x42de07
call fcn.00578ff3
cmp ebx, edi
je 0x42de69
test esi, esi
jne 0x42de14
call fcn.00578ff3
cmp ebx, dword [esi + 4]
jne 0x42de1e
call fcn.00578ff3
cmp dword [ebx + 0x54], ebp
jne 0x42de33
cmp ebx, dword [esi + 4]
jne 0x42de2d
call fcn.00578ff3
cmp dword [ebx + 0x5c], 0
jne 0x42de46
lea esi, [esp + 0x44]
call fcn.00433210
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
jmp 0x42ddf0
push ebp
push str._08x
lea edi, [esp + 0x54]
call fcn.004126f0
add esp, 8
push ebx
push esi
lea edx, [esp + 0x7c]
push edx
push 0x5fff68
call fcn.004318e0
mov byte [esp + 0x108], 7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42de91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x108], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42deb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
jne 0x42df1d
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [edx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42df18
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42df0b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42df0b
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42df00
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x34]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x42df18
mov ebx, dword [ecx - 0xc]
mov eax, dword [esp + 0x34]
push ecx
call fcn.00404050
add dword [esp + 0x34], 4
mov byte [esp + 0x108], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42df45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0x3e8
mov dword [esp + 0x1c], eax
jl 0x42da70
xor ebp, ebp
mov byte [esp + 0x108], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42df85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Keyboard_LayoutPreload_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea edx, [esp + 0x3c]
push edx
push str.Keyboard_LayoutPreload_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebp
je 0x42dfbd
mov dword [esp + 0x50], ebp
push 2
lea eax, [esp + 0x3c]
push eax
push 0
push 0x59
mov ebp, 1
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x42e0cc
mov ecx, dword [esp + 0x38]
cmp ecx, dword [0x5fdb8c]
jne 0x42e0cc
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
mov dword [esp + 0x24], ebp
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x108], 9
mov ecx, dword [0x5fdb8c]
push ecx
push str._08X
lea edi, [esp + 0x20]
call fcn.004126f0
mov ebx, dword [esp + 0x20]
add esp, 8
cmp dword [ebx - 0xc], 0
je 0x42e0a8
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push ebp
push 0x5bede8
lea edi, [esp + 0x28]
mov byte [esp + 0x110], 0xa
call fcn.004126f0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
add esp, 8
push 0x10
push ebx
push ebp
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esi - 0x10]
mov ebp, 2
mov byte [esp + 0x108], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e0a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x108], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e0cc
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor esi, esi
mov eax, dword [esp + esi*4 + 0x7c]
cmp dword [eax - 0xc], 0
je 0x42e1e6
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ebp
push 0x5bede8
lea edi, [esp + 0x20]
mov byte [esp + 0x110], 0xb
call fcn.004126f0
mov eax, dword [esp + esi*4 + 0x84]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add esp, 8
push 0x10
push eax
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [esp + 0x38]
push edx
mov ecx, str.00000804
add ebp, 1
call fcn.00404460
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x42e176
mov ecx, dword [esp + esi*4 + 0x7c]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x42e180
test dx, dx
je 0x42e172
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x42e180
add ecx, 4
add eax, 4
test dx, dx
jne 0x42e150
xor eax, eax
jmp 0x42e185
push 0x80004005
call fcn.00404550
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e1aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42e1b6
mov dword [esp + 0x5c], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x108], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e1da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, 0x14
jl 0x42e0ce
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x108], 0xc
mov ecx, dword [0x5fdb8c]
push ecx
push str._08X
lea edi, [esp + 0x24]
call fcn.004126f0
mov esi, dword [esp + 0x24]
add esp, 8
cmp dword [esi - 0xc], 0
je 0x42e29d
cmp dword [esp + 0x24], 0
jne 0x42e29d
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ebp
push 0x5bede8
lea edi, [esp + 0x20]
mov byte [esp + 0x110], 0xd
call fcn.004126f0
mov ecx, dword [esp + 0x44]
add esp, 8
push 0x10
push esi
mov esi, dword [esp + 0x20]
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esi - 0x10]
add ebp, 1
mov byte [esp + 0x108], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e29d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x5fff6c]
mov esi, dword [ecx]
mov ebx, 0x5fff68
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
test ebx, ebx
mov edi, dword [0x5fff6c]
je 0x42e2c4
cmp ebx, 0x5fff68
je 0x42e2c9
call fcn.00578ff3
cmp esi, edi
je 0x42e3fc
test ebx, ebx
jne 0x42e2da
call fcn.00578ff3
cmp esi, dword [ebx + 4]
jne 0x42e2e4
call fcn.00578ff3
cmp dword [esi + 0x10], 0
jne 0x42e3e6
cmp esi, dword [ebx + 4]
jne 0x42e2f8
call fcn.00578ff3
cmp dword [esi + 0x5c], 0
je 0x42e3e6
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push ebp
push 0x5bede8
lea edi, [esp + 0x28]
mov byte [esp + 0x110], 0xe
call fcn.004126f0
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x108], 0xf
cmp esi, dword [ebx + 4]
jne 0x42e35c
call fcn.00578ff3
mov ecx, dword [esi + 0x54]
push ecx
push str._08X
lea edi, [esp + 0x20]
call fcn.004126f0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push edx
push esi
call fcn.00579288
mov edi, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x42e39e
mov eax, dword [esp + 0x3c]
push 0x10
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ebp, 1
add esi, 0xfffffff0
mov byte [esp + 0x108], 0xe
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e3c2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [edi - 0x10]
mov byte [esp + 0x108], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e3e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x44]
call fcn.00433210
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x42e2b2
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
cmp dword [edi - 0xc], 0
je 0x42e44d
cmp dword [esp + 0x24], 0
jne 0x42e444
mov esi, dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
push 8
push edi
call esi
mov eax, dword [esp + 0x4c]
cmp dword [eax - 0xc], 0
je 0x42e432
push 8
push eax
call esi
cmp dword [esp + 0x5c], 0
je 0x42e44d
push 8
push str.00000804
call esi
jmp 0x42e44d
push 0x10
push edi
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
lea eax, [edi - 0x10]
mov byte [esp + 0x108], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e471
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x108], 1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00404510
push 0x14
push 4
lea ecx, [esp + 0x88]
push ecx
mov byte [esp + 0x118], 0
call fcn.0057b13f
mov dword [esp + 0x108], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e4e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.005787fd
add esp, 0xf8
ret