Function at 0x100203f0
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f275
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10088054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 0x14]
lea eax, [esi + 0x30]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
add eax, 4
push eax
mov dword [ebp - 0x40], vtable.AutoLock.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
lea ecx, [esi + 0x4c]
push eax
call fcn.10021970
mov eax, dword [ebp - 0x18]
mov edx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], edx
cmp eax, dword [esi + 0x50]
je 0x1002092d
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1002092d
mov eax, dword [ebx + 0xc]
cmp eax, 0xa
ja case.0x10020497.1
jmp dword [eax*4 + 0x10020964]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100204a3
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x134]
call fcn.10012d20
call fcn.10022590
mov esi, eax
mov dword [ebp - 0x20], vtable.AutoLock.0
mov dword [ebp - 0x1c], esi
lea eax, [esi + 4]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100204ee
push edi
push 0xa
push dword [ebx + 8]
call eax
mov byte [ebp - 4], 4
jmp 0x10020912
push edi
push dword [ebx + 0x10]
mov ecx, esi
call fcn.100154f0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
cmp byte [esi], 0
je case.0x10020497.1
movsd xmm0, qword [esi + 0x170]
movsd qword [ebp - 0x20], xmm0
mov byte [ebp - 4], 5
call fcn.10027b9c
push 0
push 0x2710
push edx
push eax
mov byte [ebp - 4], 0
call fcn.1004b330
mov ecx, eax
call fcn.1004baa0
movaps xmm2, xmm0
mov eax, dword [esi + 0x9c]
divsd xmm2, qword [0x10080120]
movsd xmm1, qword [0x100800e0]
movsd xmm0, qword [eax - 8]
subsd xmm2, qword [ebp - 0x20]
movsd xmm3, qword [0x100801b0]
subsd xmm0, xmm1
movsd xmm4, qword [0x100800a0]
movsd qword [ebp - 0x28], xmm1
movsd qword [ebp - 0x20], xmm1
movsd qword [ebp - 0x30], xmm2
andps xmm0, xmm3
comisd xmm4, xmm0
jbe 0x100205ad
mov eax, dword [esi + 0x54]
movaps xmm0, xmm2
subsd xmm0, qword [eax - 8]
andps xmm0, xmm3
comisd xmm4, xmm0
ja 0x10020924
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x50]
cmp eax, dword [ecx + 8]
je 0x100205c2
movsd qword [eax], xmm2
add dword [ecx + 4], 8
jmp 0x100205d1
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.10019d20
movsd xmm1, qword [ebp - 0x28]
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0xa0]
je 0x100205ec
movsd qword [eax], xmm1
add dword [esi + 0x9c], 8
jmp 0x10020601
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0x98]
call fcn.10019d20
movsd xmm1, qword [ebp - 0x20]
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xe8]
je 0x10020626
movsd qword [eax], xmm1
add dword [esi + 0xe4], 8
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xe0]
call fcn.10019d20
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
cmp byte [esi], 0
je case.0x10020497.1
movsd xmm0, qword [esi + 0x170]
movsd qword [ebp - 0x28], xmm0
mov byte [ebp - 4], 6
call fcn.10027b9c
push 0
push 0x2710
push edx
push eax
mov byte [ebp - 4], 0
call fcn.1004b330
mov ecx, eax
call fcn.1004baa0
movaps xmm2, xmm0
mov eax, dword [esi + 0xa8]
divsd xmm2, qword [0x10080120]
movsd xmm1, qword [0x100800e0]
movsd xmm0, qword [eax - 8]
subsd xmm2, qword [ebp - 0x28]
movsd xmm3, qword [0x100801b0]
subsd xmm0, xmm1
movsd xmm4, qword [0x100800a0]
movsd qword [ebp - 0x30], xmm1
movsd qword [ebp - 0x20], xmm1
movsd qword [ebp - 0x28], xmm2
andps xmm0, xmm3
comisd xmm4, xmm0
jbe 0x100206e1
mov eax, dword [esi + 0x60]
movaps xmm0, xmm2
subsd xmm0, qword [eax - 8]
andps xmm0, xmm3
comisd xmm4, xmm0
ja 0x10020924
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x5c]
cmp eax, dword [ecx + 8]
je 0x100206f6
movsd qword [eax], xmm2
add dword [ecx + 4], 8
jmp 0x10020705
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.10019d20
movsd xmm1, qword [ebp - 0x30]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
je 0x10020720
movsd qword [eax], xmm1
add dword [esi + 0xa8], 8
jmp 0x10020735
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xa4]
call fcn.10019d20
movsd xmm1, qword [ebp - 0x20]
mov eax, dword [esi + 0xf0]
cmp eax, dword [esi + 0xf4]
je 0x1002075a
movsd qword [eax], xmm1
add dword [esi + 0xf0], 8
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xec]
call fcn.10019d20
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
cmp byte [esi], 0
je case.0x10020497.1
movsd xmm0, qword [esi + 0x170]
movsd qword [ebp - 0x28], xmm0
mov byte [ebp - 4], 7
call fcn.10027b9c
push 0
push 0x2710
push edx
push eax
mov byte [ebp - 4], 0
call fcn.1004b330
mov ecx, eax
call fcn.1004baa0
movaps xmm2, xmm0
mov eax, dword [ebx + 0x10]
divsd xmm2, qword [0x10080120]
movsd xmm3, qword [0x100801b0]
subsd xmm2, qword [ebp - 0x28]
movsd xmm4, qword [0x100800a0]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movsd qword [ebp - 0x28], xmm2
addsd xmm1, qword [eax*8 + 0x100801a0]
mov eax, dword [esi + 0x78]
movsd xmm0, qword [eax - 8]
subsd xmm0, xmm1
movsd qword [ebp - 0x30], xmm1
movsd qword [ebp - 0x20], xmm1
andps xmm0, xmm3
comisd xmm4, xmm0
jbe 0x10020821
mov eax, dword [esi + 0x30]
movaps xmm0, xmm2
subsd xmm0, qword [eax - 8]
andps xmm0, xmm3
comisd xmm4, xmm0
ja 0x10020924
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x2c]
cmp eax, dword [ecx + 8]
je 0x10020836
movsd qword [eax], xmm2
add dword [ecx + 4], 8
jmp 0x10020845
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.10019d20
movsd xmm1, qword [ebp - 0x30]
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
je 0x10020857
movsd qword [eax], xmm1
add dword [esi + 0x78], 8
jmp 0x10020869
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0x74]
call fcn.10019d20
movsd xmm1, qword [ebp - 0x20]
mov eax, dword [esi + 0xc0]
cmp eax, dword [esi + 0xc4]
je 0x1002088e
movsd qword [eax], xmm1
add dword [esi + 0xc0], 8
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xbc]
call fcn.10019d20
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
call fcn.10022590
mov esi, eax
mov dword [ebp - 0x28], vtable.AutoLock.0
mov dword [ebp - 0x24], esi
lea eax, [esi + 4]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov byte [ebp - 4], 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100208d9
push edi
push 5
push dword [ebx + 8]
call eax
mov byte [ebp - 4], 9
jmp 0x10020912
call fcn.10022590
mov esi, eax
mov dword [ebp - 0x28], vtable.AutoLock.0
mov dword [ebp - 0x24], esi
lea eax, [esi + 4]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1002090e
push edi
push 8
push dword [ebx + 8]
call eax
mov byte [ebp - 4], 0xb
lea eax, [esi + 4]
push eax
call dword [ebp - 0x18]
push edi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x31], 1
jmp 0x10020931
mov byte [ebp - 0x31], 0
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x38]
add ecx, 4
push ecx
call edx
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002820f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10