Function at 0x100214e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100af4e3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 8]
lea esi, [eax + 0xec4]
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0xa8], 0
cvttsd2si eax, qword [ebx + 8]
cmp dword [ebx], 1
sete byte [esp + 0x20]
cmp dword [ebx + 0x6c], 8
mov dword [esp + 0x2c], eax
cvttsd2si eax, qword [ebx + 0x10]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0x20]
mov byte [esp + 0x1c], al
movzx eax, byte [ebx + 0x22]
mov byte [esp + 0x1d], al
movzx eax, byte [ebx + 0x24]
mov byte [esp + 0x1e], al
movzx eax, byte [ebx + 0x26]
mov byte [esp + 0x1f], al
lea eax, [ebx + 0x58]
mov dword [esp + 0x28], eax
jb 0x10021592
mov eax, dword [eax]
mov dword [esp + 0x28], eax
movsd xmm0, qword [ebx + 0x18]
call fcn.100ac8e1
push esi
mov edi, eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x28]
mov byte [esp + 0xac], 1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push edi
mov edi, dword [esp + 0x24]
push eax
lea ecx, [edi + 0x18]
call fcn.100646c0
push esi
mov byte [esp + 0xac], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 0x70], 0
je 0x10021791
movzx ecx, word [ebx + 0x26]
lea edx, [esp + 0x80]
push ecx
mov eax, esp
push edx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esp
mov byte [esp + 0xac], 2
movzx edx, word [ebx + 0x24]
xor eax, eax
mov word [ecx], dx
lea edx, [esp + 0x54]
mov word [ecx + 2], ax
mov ecx, dword [edi + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
push ecx
mov ecx, esp
mov byte [esp + 0xac], 3
movzx edx, word [ebx + 0x22]
xor eax, eax
mov word [ecx], dx
lea edx, [esp + 0x3c]
mov word [ecx + 2], ax
mov ecx, dword [esp + 0x18]
push edx
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [esp + 0x24], eax
push ecx
mov ecx, esp
mov byte [esp + 0xac], 4
movzx edx, word [ebx + 0x20]
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0x18]
mov word [ecx], dx
lea edx, [esp + 0x6c]
push edx
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov byte [esp + 0xa8], 5
cmp dword [edx + 0x14], 8
jb 0x100216b0
mov edx, dword [edx]
cmp dword [edi + 0x14], 8
jb 0x100216b8
mov edi, dword [edi]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x14], 8
jb 0x100216c4
mov eax, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x100216cc
mov ecx, dword [ecx]
movsd xmm0, qword [ebx + 0x80]
addsd xmm0, qword [ebx + 0x10]
push edx
push edi
push eax
push ecx
mov ecx, dword [esp + 0x24]
cvttsd2si eax, xmm0
lea ecx, [ecx + 0xf34]
movsd xmm0, qword [ebx + 0x78]
addsd xmm0, qword [ebx + 8]
push eax
cvttsd2si eax, xmm0
push eax
call fcn.1003e670
cmp dword [esp + 0x7c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10021716
push dword [esp + 0x68]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x1002173d
push dword [esp + 0x38]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
cmp dword [esp + 0x64], 8
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
jb 0x10021764
push dword [esp + 0x50]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
cmp dword [esp + 0x94], 8
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x10021791
push dword [esp + 0x80]
call edi
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 4