Function at 0x40a900
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422c05
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x433040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp + 0x10]
mov edi, 0xc0000001
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
push 0x48
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x70]
push 0
push eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
call fcn.00414d10
mov eax, dword fs:[0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
add esp, 0xc
movlpd qword [ebp - 0x7c], xmm0
xor esi, esi
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x30]
test eax, eax
jne 0x40a9b3
movlpd qword [ebp - 0x90], xmm0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
jmp 0x40a9d9
cmp dword [eax + 0xa4], 0xa
je 0x40a9d2
movlpd qword [ebp - 0x90], xmm0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
jmp 0x40a9d9
xor ecx, ecx
mov eax, 0x1000
push dword [ebp - 0x9c]
or eax, 0x200
mov dword [ebp - 0x18], ecx
push 0x40
push 0x4b
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xf0]
push 0x42
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0xd4b7f215
push eax
mov dword [ebp - 0xc0], 0xb0636a68
mov dword [ebp - 0xbc], 0xfe389ee4
mov dword [ebp - 0xb8], 0xd0c5cd14
mov dword [ebp - 0xb4], 0xfd049590
mov dword [ebp - 0xb0], 0xe4e56334
mov dword [ebp - 0xac], 0xa266d570
mov dword [ebp - 0xa8], 0xa17dd8f0
mov dword [ebp - 0xa4], 0x5a0b8354
mov dword [ebp - 0xa0], 0xac8756f9
call fcn.00405290
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x8c], eax
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov eax, dword [0x4ccb0c]
cmp eax, dword [ebx + 4]
jle 0x40aad5
push 0x4ccb0c
call fcn.0041082f
add esp, 4
cmp dword [0x4ccb0c], 0xffffffff
jne 0x40aad5
mov dword [ebp - 4], 0
xor edx, edx
mov ecx, 0x84c05e40
call fcn.0040ddf0
mov edx, 0xfa2a9aa9
mov ecx, eax
call fcn.0040e100
mov dword [0x4ccb1c], eax
mov dword [ebp - 4], 0xffffffff
push 0x4ccb0c
call fcn.004107de
add esp, 4
cmp dword [0x4ccb1c], 0
je 0x40ae6b
mov eax, dword [0x4ccb18]
cmp eax, dword [ebx + 4]
jle 0x40ab3d
push 0x4ccb18
call fcn.0041082f
add esp, 4
cmp dword [0x4ccb18], 0xffffffff
jne 0x40ab3d
mov dword [ebp - 4], 1
xor edx, edx
mov ecx, 0x84c05e40
call fcn.0040ddf0
mov edx, 0x38adff8b
mov ecx, eax
call fcn.0040e100
mov dword [0x4ccb14], eax
mov dword [ebp - 4], 0xffffffff
push 0x4ccb18
call fcn.004107de
add esp, 4
cmp dword [0x4ccb14], 0
je 0x40ae6b
mov eax, dword [0x4ccb10]
cmp eax, dword [ebx + 4]
jle 0x40aba5
push 0x4ccb10
call fcn.0041082f
add esp, 4
cmp dword [0x4ccb10], 0xffffffff
jne 0x40aba5
mov dword [ebp - 4], 2
xor edx, edx
mov ecx, 0x84c05e40
call fcn.0040ddf0
mov edx, 0x1ecb27f1
mov ecx, eax
call fcn.0040e100
mov dword [0x4ccb20], eax
mov dword [ebp - 4], 0xffffffff
push 0x4ccb10
call fcn.004107de
add esp, 4
cmp dword [0x4ccb20], 0
je 0x40ae6b
mov eax, dword [0x4ccb08]
cmp eax, dword [ebx + 4]
jle 0x40ac0d
push 0x4ccb08
call fcn.0041082f
add esp, 4
cmp dword [0x4ccb08], 0xffffffff
jne 0x40ac0d
mov dword [ebp - 4], 3
xor edx, edx
mov ecx, 0x84c05e40
call fcn.0040ddf0
mov edx, 0x519b3fd7
mov ecx, eax
call fcn.0040e100
mov dword [0x4ccb04], eax
mov dword [ebp - 4], 0xffffffff
push 0x4ccb08
call fcn.004107de
add esp, 4
cmp dword [0x4ccb04], 0
je 0x40ae6b
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x208
push eax
push 8
mov word [ebp - 0x7a], ax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40ae26
push str.___
lea eax, [ebp - 0x7c]
push eax
call dword [0x4ccb14]
push dword [ebp - 0xc8]
lea eax, [ebp - 0x7c]
push eax
call dword [0x4ccb14]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [0x4ccb1c]
push eax
lea eax, [ebp - 0x28]
push eax
call ecx
push dword [ebp - 0x9c]
lea eax, [ebp - 0x20]
push eax
call dword [0x4ccb1c]
push 1
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x70], 0x48
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x6c], 0
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [0x4ccb20]
mov edi, eax
test edi, edi
jne 0x40ae13
push 0x44
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40ae13
mov eax, dword [ebp + 8]
mov edi, 1
mov dword [esi + 4], 0x20005
movzx ecx, word [ebp - 0x7c]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x78]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40ad0b
mov dword [esi + 0x14], 0x60000
mov edi, 2
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
je 0x40ad2f
mov eax, edi
lea ecx, [ebp - 0x18]
add eax, eax
inc edi
mov dword [esi + eax*8 + 4], 0x20010
mov dword [esi + eax*8 + 8], 8
mov dword [esi + eax*8 + 0xc], ecx
lea eax, [ebp - 0x80]
push eax
push 0xa
push 0xffffffffffffffff
call fcn.00410762
add esp, 0xc
test eax, eax
jne 0x40ad83
lea eax, [ebp - 0x84]
push eax
push 1
push 0
push 0
push 0xf01ff
push dword [ebp - 0x80]
call fcn.00410583
add esp, 0x18
test eax, eax
jne 0x40ad83
mov ecx, edi
add ecx, ecx
inc edi
mov dword [esi + ecx*8 + 4], 0x60002
mov dword [esi + ecx*8 + 8], 4
mov eax, dword [ebp - 0x84]
mov dword [esi + ecx*8 + 0xc], eax
push esi
shl edi, 4
lea eax, [ebp - 0x70]
push eax
add edi, 4
mov dword [esi], edi
push dword [ebp - 0x74]
push 1
push 0
push 0
push 0
push 0x1fffff
push 0x1fffff
push dword [ebp - 0x94]
push dword [ebp - 0x98]
call fcn.0041074d
mov edi, eax
add esp, 0x2c
test edi, edi
je 0x40ae13
mov eax, dword [0x4cc970]
test eax, eax
jne 0x40ade9
xor edx, edx
mov ecx, 0x84c05e40
call fcn.0040ddf0
mov edx, 0x44ac5182
mov ecx, eax
call fcn.0040e100
mov dword [0x4cc970], eax
test eax, eax
je 0x40ae13
push esi
lea ecx, [ebp - 0x70]
push ecx
push dword [ebp - 0x74]
push 1
push 0
push 0
push 0
push 0x1fffff
push 0x1fffff
push dword [ebp - 0x94]
push dword [ebp - 0x98]
call eax
mov edi, eax
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40ae26
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x40ae36
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x40ae44
push eax
call dword [0x4ccb04]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40ae54
push eax
call fcn.004105a4
add esp, 4
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40ae67
push eax
call fcn.004105a4
add esp, 4
mov eax, edi
jmp 0x40ae70
mov eax, 0xc0000001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107a0
mov esp, ebp
pop ebp
ret