Function at 0x42ebf0
Capabilities:
Delete registry key
Print debug messages
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 0x5a57bf
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
lea eax, [esp + 0x4c]
push eax
mov ecx, str.SoftwareMicrosoftCTFSortOrderAssemblyItem0x0000080434745C63_B2F0_4784_8B67_5E12C8701A31_
call fcn.00404460
xor ebx, ebx
mov dword [esp + 0x490], ebx
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.00464620
mov dword [esp + 0x1c], eax
mov byte [eax + 0x1d], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x490], 1
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
push edx
push eax
push closesocket
mov dword [esp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
je 0x42ed34
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x1c]
call fcn.004326c0
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov byte [esp + 0x490], bl
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x34]
push eax
mov edi, ecx
call fcn.00432e70
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00578327
mov dword [esp + 0x494], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ed2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42fa26
push 0x206
lea ecx, [esp + 0x72]
push ebx
push ecx
mov word [esp + 0x78], bx
call fcn.00580260
add esp, 0xc
push 0x206
lea edx, [esp + 0x27a]
push ebx
mov esi, 0x208
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 4
mov word [esp + 0x280], bx
call fcn.00580260
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x5fcd20
mov dword [esp + 0x34], esi
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x490], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x2c], ebx
jmp 0x42edb0
push 0x208
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.00580260
add esp, 0xc
push 0x208
lea ecx, [esp + 0x278]
push ebx
push ecx
mov dword [esp + 0x6c], ebx
call fcn.00580260
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
push str._08d
lea edi, [esp + 0x38]
call fcn.004126f0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
add esp, 8
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
jne 0x42ef8c
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.CLSID
mov edi, 0x208
push eax
mov dword [esp + 0x80], edi
call esi
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.KeyboardLayout
push ecx
mov dword [esp + 0x7c], 4
call esi
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.Profile
push edx
mov dword [esp + 0x4c], edi
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x40]
push ecx
call fcn.0042fa50
lea eax, [esp + 0x6c]
mov byte [esp + 0x490], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42eea3
sub eax, edx
sar eax, 1
lea edx, [esp + 0x6c]
mov ebx, eax
push edx
lea eax, [esp + 0x44]
call fcn.00404050
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x274]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42eed4
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x274]
mov ebx, eax
push ecx
lea eax, [esp + 0x4c]
call fcn.00404050
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
call fcn.00431d80
mov edi, eax
lea eax, [esp + 0x40]
call fcn.004035d0
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
add edi, 8
lea eax, [esp + 0x48]
call fcn.004035d0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esp + 0x490], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 1
xor ebx, ebx
cmp eax, 0x3e8
mov dword [esp + 0x2c], eax
jl 0x42edb0
mov byte [esp + 0x490], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42efb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x42f995
or edi, 0xffffffff
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
jbe 0x42f040
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
call fcn.00431d80
mov edx, dword [eax + 4]
cmp edx, dword [0x5fdb8c]
jne 0x42effe
mov edi, esi
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
call fcn.00431d80
cmp dword [eax + 4], 0x8040804
jne 0x42f018
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x2c], 0xffffffff
je 0x42f028
cmp edi, 0xffffffff
jne 0x42f18d
mov eax, dword [esp + 0x20]
add esi, 1
cmp esi, eax
mov dword [esp + 0x30], esi
jb 0x42efe0
cmp edi, 0xffffffff
jne 0x42f191
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
push eax
call fcn.0042fa50
push str.00000000_0000_0000_0000_000000000000
mov ebx, 0x24
lea eax, [esp + 0x38]
mov byte [esp + 0x494], 4
call fcn.00404050
mov ecx, dword [0x5fdb8c]
push str.00000000_0000_0000_0000_000000000000
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], ecx
call fcn.00404050
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.00431d80
mov ecx, dword [esp + 0x34]
mov edi, eax
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42f0e4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f0d9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f0d9
call fcn.00403ce0
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f0ce
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42f0e4
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov edx, dword [esp + 0x38]
mov dword [edi + 4], edx
mov ecx, dword [esp + 0x3c]
mov esi, dword [edi + 8]
add edi, 8
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42f147
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f138
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f138
call fcn.00403ce0
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f12d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42f143
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov ecx, dword [esp + 0x3c]
lea eax, [ecx - 0x10]
mov byte [esp + 0x490], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f16b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f18b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
cmp edi, 0xffffffff
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
je 0x42f5a1
add edi, 1
cmp edi, eax
jne 0x42f3c1
mov dword [esp + 0x24], ebx
call fcn.00431d80
lea ecx, [esp + 0x40]
push ecx
mov ebx, eax
call fcn.0042faf0
mov byte [esp + 0x490], 5
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x490], 6
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0042b350
mov esi, dword [esp + 0x28]
add esp, 4
cmp dword [esi - 0xc], 0
jl 0x42f313
push 0x5bea4c
push esi
call fcn.0057880c
add esp, 8
test eax, eax
je 0x42f313
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42f313
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00431d80
lea ecx, [esp + 0x54]
push ecx
mov ebx, eax
call fcn.0042faf0
mov byte [esp + 0x490], 7
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00431d80
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
mov ebx, eax
call fcn.00431d80
mov edi, eax
mov eax, ebx
call fcn.004035d0
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
add edi, 8
lea eax, [ebx + 8]
call fcn.004035d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.00431d80
mov edi, eax
lea eax, [esp + 0x54]
call fcn.004035d0
mov eax, dword [esp + 0x58]
mov dword [edi + 4], eax
add edi, 8
lea eax, [esp + 0x5c]
call fcn.004035d0
mov byte [esp + 0x490], 6
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f2f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f37c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42f37c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.00431d80
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
mov ebx, eax
call fcn.00431d80
mov edi, eax
mov eax, ebx
call fcn.004035d0
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
add edi, 8
lea eax, [ebx + 8]
call fcn.004035d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.00431d80
mov edi, eax
lea eax, [esp + 0x40]
call fcn.004035d0
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
add edi, 8
lea eax, [esp + 0x48]
call fcn.004035d0
mov byte [esp + 0x490], 5
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f3a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 1
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42f779
mov dword [esp + 0x24], edi
call fcn.00431d80
lea ecx, [esp + 0x40]
push ecx
mov ebx, eax
call fcn.0042faf0
mov byte [esp + 0x490], 8
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x490], 9
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0042b350
mov esi, dword [esp + 0x28]
add esp, 4
cmp dword [esi - 0xc], 0
jl 0x42f52f
push 0x5bea4c
push esi
call fcn.0057880c
add esp, 8
test eax, eax
je 0x42f52f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42f52f
mov eax, dword [esp + 0x2c]
xor edx, edx
add eax, 2
div dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x18]
call fcn.00431d80
lea ecx, [esp + 0x54]
push ecx
mov ebx, eax
call fcn.0042faf0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov byte [esp + 0x490], 0xa
call fcn.00431d80
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
mov ebx, eax
call fcn.00431d80
mov edi, eax
mov eax, ebx
call fcn.004035d0
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
add edi, 8
lea eax, [ebx + 8]
call fcn.004035d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.00431d80
mov edi, eax
lea eax, [esp + 0x54]
call fcn.004035d0
mov eax, dword [esp + 0x58]
mov dword [edi + 4], eax
add edi, 8
lea eax, [esp + 0x5c]
call fcn.004035d0
mov byte [esp + 0x490], 9
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 8
jmp 0x42f384
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x34], edi
call fcn.00431d80
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
mov ebx, eax
call fcn.00431d80
mov edi, eax
mov eax, ebx
call fcn.004035d0
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
add edi, 8
lea eax, [ebx + 8]
call fcn.004035d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.00431d80
mov edi, eax
lea eax, [esp + 0x40]
call fcn.004035d0
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
add edi, 8
lea eax, [esp + 0x48]
call fcn.004035d0
mov byte [esp + 0x490], 8
jmp 0x42f384
mov dword [esp + 0x24], ebx
call fcn.00431d80
lea ecx, [esp + 0x40]
push ecx
mov ebx, eax
call fcn.0042faf0
mov byte [esp + 0x490], 0xb
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00431d80
mov esi, eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
mov dword [esp + 0x34], esi
call fcn.00431d80
mov ecx, dword [esi]
mov edi, eax
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42f63a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f62f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f62f
call fcn.00403ce0
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f624
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42f63a
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov esi, dword [edi + 8]
add edi, 8
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42f69b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f690
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f690
call fcn.00403ce0
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f685
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42f69b
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.00431d80
mov ecx, dword [esp + 0x40]
mov edi, eax
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42f6fe
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f6f3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f6f3
call fcn.00403ce0
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f6e8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42f6fe
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov ecx, dword [esp + 0x48]
mov esi, dword [edi + 8]
add edi, 8
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x42f761
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f752
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f752
call fcn.00403ce0
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f747
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x42f75d
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 0x10]
mov byte [esp + 0x490], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f785
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f7a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
jbe 0x42f993
mov ecx, dword [esp + 0x4c]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x2c]
push edx
push eax
push closesocket
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x42f988
cmp dword [esp + 0x2c], eax
je 0x42f988
push 0x5bef6c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx]
lea ebx, [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
lea esp, [esp]
test ebx, ebx
mov edi, dword [esp + 0x1c]
je 0x42f820
lea edx, [esp + 0x18]
cmp ebx, edx
je 0x42f825
call fcn.00578ff3
cmp esi, edi
je 0x42f988
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
test ebx, ebx
mov byte [esp + 0x490], 0xc
jne 0x42f854
call fcn.00578ff3
cmp esi, dword [ebx + 4]
jne 0x42f85e
call fcn.00578ff3
mov eax, dword [esi + 0xc]
push eax
push str._08d
lea edi, [esp + 0x38]
call fcn.004126f0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x42f94a
cmp dword [esp + 0x14], eax
je 0x42f94a
push 0x5bef80
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, dword [ebx + 4]
jne 0x42f8b7
call fcn.00578ff3
cmp esi, dword [ebx + 4]
mov ecx, dword [esi + 0x10]
mov edi, dword [ecx - 0xc]
jne 0x42f8c7
call fcn.00578ff3
mov eax, dword [esi + 0x10]
lea edx, [edi + edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push str.CLSID
push eax
call edi
cmp esi, dword [ebx + 4]
jne 0x42f8ef
call fcn.00578ff3
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esi + 0x14]
push ecx
push 4
push 0
push str.KeyboardLayout
push edx
call edi
cmp esi, dword [ebx + 4]
jne 0x42f90f
call fcn.00578ff3
cmp esi, dword [ebx + 4]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x24], ecx
jne 0x42f923
call fcn.00578ff3
mov edx, dword [esp + 0x24]
mov esi, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [edx + edx]
push eax
push esi
push 1
push 0
push str.Profile
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x490], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.00464b40
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x42f810
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004326c0
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov byte [esp + 0x490], bl
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x34]
push ecx
mov edi, esi
call fcn.00432e70
mov edx, dword [esp + 0x1c]
push edx
call fcn.00578327
mov dword [esp + 0x494], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fa21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret