Function at 0x6f40d4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x32c], edx
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x324], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6f4593
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [0x5ba5d4]
call fcn.0040c4f0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
je 0x6f455f
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x2c], 0
jne 0x6f455f
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov eax, dword [0x771588]
call fcn.006ef588
lea edx, [ebp - 0x324]
mov eax, dword [0x771568]
call fcn.005bc8d8
push dword [ebp - 0x324]
push 0x6f45b0
push dword [ebp - 8]
lea eax, [ebp - 0x320]
mov edx, 3
call fcn.0040a7a4
mov eax, dword [ebp - 0x320]
call fcn.0040a8ec
push eax
call fcn.006ef074
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x6f455f
xor edx, edx
push ebp
push 0x6f4558
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x6f453a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
lea edx, [ebp - 0x32c]
mov eax, dword [0x771580]
call fcn.005bc8d8
push dword [ebp - 0x32c]
push 0x6f45b0
push dword [ebp - 8]
lea eax, [ebp - 0x328]
mov edx, 3
call fcn.0040a7a4
mov eax, dword [ebp - 0x328]
call fcn.0040a8ec
push eax
call fcn.006ef574
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x6f44da
xor edx, edx
push ebp
push 0x6f44d3
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x6f44bc
xor edx, edx
push ebp
push 0x6f44b5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
lea ecx, [esi + 0x16]
cmp edx, dword [ecx]
jne 0x6f4280
mov edx, dword [esi + 0xc]
add edx, 4
movzx edx, word [edx]
lea ecx, [esi + 0x16]
add ecx, 4
cmp dx, word [ecx]
je 0x6f449e
mov dword [ebp - 0x20], eax
call fcn.006c7fe0
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x6f42a6
mov eax, dword [esi + 0xc]
mov edx, 8
call fcn.006c80c0
test al, al
je 0x6f449e
lea edx, [ebp - 0x31c]
mov eax, dword [esi + 0xc]
call fcn.006c5538
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x34], 0
je 0x6f42ee
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x6f42ee
mov eax, dword [ebp - 0x2fc]
sub eax, dword [ebp - 0x300]
cmp eax, 6
jae 0x6f42ee
push ebp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
mov eax, dword [esi + 0xc]
call fcn.006f3e3c
pop ecx
test al, al
jne 0x6f42f2
xor eax, eax
jmp 0x6f42f4
mov al, 1
mov byte [ebp - 0x22], al
cmp byte [ebp - 0x22], 0
je 0x6f439e
mov byte [ebp - 0x23], 0xf4
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x23]
mov ecx, 1
call fcn.006eea24
test al, al
jne 0x6f4322
mov eax, dword [esi + 0xc]
movzx edx, byte [ebp - 0x23]
mov byte [eax], dl
mov eax, dword [esi + 0xc]
mov edx, 1
call fcn.006f3d50
lea eax, [ebp - 0xc]
call fcn.006f3b48
mov eax, dword [ebp - 0xc]
call fcn.0040c1b8
test eax, eax
jl 0x6f439e
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x2f8], 0x10001
lea eax, [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x6f438c
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0x240]
jae 0x6f438c
mov eax, dword [esi + 0xc]
add eax, 6
cmp eax, dword [ebp - 0x240]
jbe 0x6f438c
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x6f4349
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_CloseHandle_1
inc edi
dec dword [ebp - 0x2c]
jne 0x6f4349
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x16]
mov ecx, 6
call fcn.006eea24
test al, al
jne 0x6f43c2
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x16]
mov dword [eax], edx
mov dx, word [esi + 0x1a]
mov word [eax + 4], dx
mov eax, dword [esi + 0xc]
mov edx, 6
call fcn.006f3d50
cmp byte [ebp - 0x22], 0
je 0x6f447e
mov dl, 1
mov eax, dword [0x771474]
call fcn.006c6a60
mov ebx, eax
lea eax, [ebx + 0xe]
lea edx, [ebx + 0xa]
add eax, dword [edx]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
call fcn.006f3b48
mov eax, dword [ebp - 0xc]
call fcn.0040c1b8
test eax, eax
jl 0x6f447e
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x2f8], 0x10001
lea eax, [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x6f446c
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0x240]
je 0x6f4463
cmp ebx, dword [ebp - 0x240]
ja 0x6f444b
lea eax, [ebx + 0xa]
cmp eax, dword [ebp - 0x240]
jae 0x6f4463
mov eax, dword [ebp - 0x240]
and eax, 0xffff0000
mov edx, dword [ebp - 0x28]
and edx, 0xffff0000
cmp eax, edx
jne 0x6f446c
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x6f440c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_CloseHandle_1
inc edi
dec dword [ebp - 0x2c]
jne 0x6f440c
cmp byte [ebp - 0x21], 0
je 0x6f4491
mov eax, dword [esi + 0xc]
mov edx, 8
call fcn.006c8150
cmp byte [ebp - 0x22], 0
je 0x6f449e
push ebp
call fcn.006f4050
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f44bc
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f44da
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp dword [ebp - 0x20], 0
je 0x6f4523
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
je 0x6f4523
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x37], 0
je 0x6f44ff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
call fcn.006ef9e4
jmp 0x6f4501
xor eax, eax
mov edx, dword [ebp - 0x10]
cmp byte [edx + 0x37], 0
je 0x6f450e
test eax, eax
je 0x6f4523
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x20]
call fcn.006efb78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f4541
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f459a
lea eax, [ebp - 0x32c]
mov edx, 4
call fcn.00409ecc
lea eax, [ebp - 0xc]
mov edx, dword [0x5ba5d4]
call fcn.0040c4f0
lea eax, [ebp - 8]
call fcn.00409e60
ret