Function at 0x40bb40
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5104a8
push 0x4b49c0
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x51938c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x29c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x270], esi
xor ebx, ebx
mov dword [ebp - 0x274], ebx
mov dword [esi], ebx
test ecx, ecx
je 0x40be4a
test eax, eax
je 0x40be4a
mov dword [ebp - 0x288], str.ADBlockMasterSvc
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x284], ebx
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x280]
call fcn.0040b760
call fcn.004bb968
mov dword [ebp - 0x230], eax
mov edi, 5
nop word [eax + eax]
dec edi
mov dword [ebp - 0x294], edi
cmp dword [ebp - 0x280], 0
je 0x40bd3d
cmp dword [ebp - 0x284], 0
jne 0x40bd3d
xor esi, esi
mov dword [ebp - 0x290], esi
cmp esi, 1
jae 0x40bd06
test ebx, ebx
jne 0x40be4a
xor edi, edi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + esi*4 - 0x288]
call fcn.0040b650
cmp eax, 4
jne 0x40bcbe
push 0x210
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.004b5160
add esp, 8
lea edx, [ebp - 0x22c]
mov ecx, dword [ebp + esi*4 - 0x288]
call fcn.0040b4f0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x28c], edi
test edi, edi
je 0x40bcbe
push 0x508f3c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcbe
push dword [ebp - 0x270]
push dword [ebp - 0x27c]
push dword [ebp - 0x278]
call eax
mov ebx, eax
mov dword [ebp - 0x274], ebx
test ebx, ebx
jne 0x40bcbe
mov eax, dword [ebp - 0x270]
mov dword [eax], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040bcfa
inc esi
jmp 0x40bc13
test ebx, ebx
jne 0x40be4a
call fcn.004bb968
sub eax, dword [ebp - 0x230]
cmp eax, 0x1388
jg 0x40bd3d
mov edi, dword [ebp - 0x294]
test edi, edi
jle 0x40bd3d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jg 0x40bbf0
test ebx, ebx
jne 0x40be4a
xor esi, esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x230], esi
xor edi, edi
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 4], 1
push 0x3c
push edi
lea eax, [ebp - 0x26c]
push eax
call fcn.004b5160
mov dword [ebp - 0x26c], 0x3c
mov dword [ebp - 0x268], 0xd640
push 0x114
push edi
lea eax, [ebp - 0x130]
push eax
call fcn.004b5160
add esp, 0x18
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40bdc9
cmp dword [ebp - 0x12c], 6
jb 0x40bdc9
lea ecx, [ebx + 1]
jmp 0x40bdcb
xor ecx, ecx
mov eax, str.runas
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], 1
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov dword [ebp - 0x274], ebx
test ebx, ebx
je 0x40be3e
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x270]
mov dword [ecx], eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040be7c
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00488adc
mov esp, ebp
pop ebp
ret 0x14