Function at 0x43be40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d75d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x43beef
push 0x51ed30
lea edx, [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00417c70
add esp, 4
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.00402510
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 0x43beef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov dword [ebp - 0x1c], eax
mov eax, dword [0x53ed90]
imul eax, eax
cdq
mov ebx, 5
idiv ebx
cmp edx, 2
jne 0x43bf1c
inc dword [0x53f634]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, 6
ja 0x43bf37
jne 0x43c006
cmp dword [ebp - 0x1c], 1
jbe 0x43c006
cmp ebx, reloc.OLEAUT32.dll_SysReAllocString
je 0x43c006
push 1
lea ecx, [ebp - 0x28]
call fcn.0043b260
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0040f0c0
add esp, 8
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 7
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 0x43bf8d
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 0x43bfad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43bfe6
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43bff0
push dword [ebp - 0x1c]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0043c6a0
mov edx, dword [ebp + 8]
add esp, 8
push 0
lea ecx, [ebp - 0x30]
call fcn.0043b260
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0040f0c0
add esp, 8
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
je 0x43c083
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x43c074
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x43c074
mov ecx, dword [ebp - 0x28]
call fcn.00402720
mov dword [ebp - 0x28], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x43c06c
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x43c083
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.004025f0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43c0a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
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 0x43c0c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43c0f9
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43c102
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0043c6a0
add esp, 8
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
mov edx, edi
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c138
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43c155
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x43c176
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret