Function at 0x10002d40
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10033986
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100445fc]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100445fc]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov ecx, ebp
call fcn.10001700
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10002e12
call fcn.10005f6c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10002dbf
push 0x80004005
call fcn.100010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xbc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Could_not_get_OS_version.__err_lx_
push ecx
call fcn.10001e80
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
push edx
call fcn.100014a0
add eax, 0x10
add esp, 0x10
mov dword [esp + 0x18], eax
push 0x1003e1e8
lea eax, [esp + 0x1c]
push eax
call fcn.10020738
cmp dword [esp + 0x20], 5
push ebp
jae 0x10002e2f
cmp dword [esp + 0x30], 2
jne 0x10002e28
call fcn.10002560
jmp 0x10002e34
call fcn.10002a90
jmp 0x10002e34
call fcn.10002170
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, ebx
jle 0x10002f8d
mov dword [esp + 0x14], ebx
test ebx, ebx
jl 0x10002fb5
cmp ebx, eax
jge 0x10002fb5
mov esi, dword [ebp + 4]
add esi, dword [esp + 0x14]
cmp dword [esp + 0xc8], 0
je 0x10002ea2
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10002e9b
push 1
push ebx
mov ecx, ebp
call fcn.10001cb0
sub ebx, 1
sub dword [esp + 0x14], 0x14
jmp 0x10002f7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], 0
lea edi, [esi + 8]
jne 0x10002eb9
lea edx, [esi + 4]
push edx
mov ecx, edi
call fcn.10001dc0
mov eax, dword [esi + 0x10]
add esi, 0x10
cmp dword [eax - 0xc], 0
jne 0x10002f7a
push edi
mov ecx, esi
call fcn.10001dc0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x10002ede
or edi, 0xffffffff
jmp 0x10002ef9
push 0x10036784
push eax
call fcn.1001fd28
add esp, 8
test eax, eax
jne 0x10002ef5
or edi, 0xffffffff
jmp 0x10002ef9
sub eax, dword [esi]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x10002f06
or eax, 0xffffffff
jmp 0x10002f1f
push 0x10036780
push eax
call fcn.1001fd28
add esp, 8
test eax, eax
jne 0x10002f1d
or eax, 0xffffffff
jmp 0x10002f1f
sub eax, dword [esi]
test edi, edi
jle 0x10002f7a
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
add ecx, 0xffffffff
cmp eax, ecx
jne 0x10002f7a
push edi
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.10001b30
push eax
mov ecx, esi
mov dword [esp + 0xc0], 1
call fcn.10001dc0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10002f7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add dword [esp + 0x14], 0x14
add ebx, 1
cmp ebx, eax
jl 0x10002e46
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100205e4
add esp, 0xac
ret
jmp fcn.10005796