Function at 0x43b420
Capabilities:
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4940
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x52cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x43b4d8
push 0x5113f8
lea edx, [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00417410
add esp, 4
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.004025b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b4d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, al
shr eax, 8
movzx eax, al
cmp ecx, 6
ja 0x43b501
jne 0x43b5cc
cmp eax, 1
jbe 0x43b5cc
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
je 0x43b5cc
mov edx, dword [ebp - 0x24]
push 1
lea ecx, [ebp - 0x1c]
call fcn.00439bf0
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.0040e9b0
add esp, 8
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x14]
call fcn.004025b0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b55a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b57a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b5b4
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43b5b9
push dword [ebp - 0x10]
call ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0043b7a0
add esp, 8
mov edx, dword [ebp - 0x24]
push 0
lea ecx, [ebp - 0x28]
call fcn.00439bf0
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x30]
call fcn.0040e9b0
add esp, 8
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
add ecx, 0xfffffff0
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x43b656
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x24], eax
jl 0x43b64a
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x43b64a
mov ecx, dword [ebp - 0x1c]
call fcn.004027c0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43b642
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x43b656
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.00402690
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b676
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b696
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b6d0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43b6d5
push dword [ebp - 0x10]
call ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b6f8
xor bl, bl
jmp 0x43b71c
push 4
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push 4
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, eax
call ebx
test esi, esi
sete bl
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b73c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b75c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x43b77d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret