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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b1198
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0xec4]
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x98], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
js 0x10022221
cmp dword [edi + 0x74], 8
cvttsd2si eax, qword [edi]
mov dword [esp + 0x18], eax
cvttsd2si eax, qword [edi + 8]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0x14]
mov byte [esp + 0x10], al
movzx eax, byte [edi + 0x16]
mov byte [esp + 0x11], al
movzx eax, byte [edi + 0x18]
mov byte [esp + 0x12], al
movzx eax, byte [edi + 0x1a]
mov byte [esp + 0x13], al
lea eax, [edi + 0x60]
jb 0x10022075
mov eax, dword [eax]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.10022c90
cmp byte [edi + 0x4c], 0
je 0x10022221
movzx ecx, word [edi + 0x1a]
lea edx, [esp + 0x70]
push ecx
mov eax, esp
push edx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [esp + 0x10], eax
push ecx
mov ecx, esp
mov byte [esp + 0x9c], 1
movzx edx, word [edi + 0x18]
xor eax, eax
mov word [ecx], dx
lea edx, [esp + 0x44]
mov word [ecx + 2], ax
mov ecx, dword [ebx + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esp
mov byte [esp + 0x9c], 2
movzx edx, word [edi + 0x16]
xor eax, eax
mov word [ecx], dx
lea edx, [esp + 0x5c]
mov word [ecx + 2], ax
mov ecx, dword [ebx + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [esp + 0x14], eax
push ecx
mov ecx, esp
mov byte [esp + 0x9c], 3
movzx edx, word [edi + 0x14]
xor eax, eax
mov word [ecx], dx
lea edx, [esp + 0x2c]
mov word [ecx + 2], ax
mov ecx, dword [ebx + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edx, eax
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x10022144
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 8
jb 0x10022150
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x14], 8
jb 0x1002215c
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x10022164
mov edx, dword [edx]
movsd xmm0, qword [edi + 0x58]
push dword [esp + 0x10]
addsd xmm0, qword [edi + 8]
push eax
push ecx
push edx
lea ecx, [ebx + 0xf34]
cvttsd2si eax, xmm0
movsd xmm0, qword [edi + 0x50]
addsd xmm0, qword [edi]
push eax
cvttsd2si eax, xmm0
push eax
call fcn.1003f720
cmp dword [esp + 0x3c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x100221a9
push dword [esp + 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x6c], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x100221d0
push dword [esp + 0x58]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
cmp dword [esp + 0x54], 8
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
jb 0x100221f7
push dword [esp + 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
cmp dword [esp + 0x84], 8
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x10022221
push dword [esp + 0x70]
call edi
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 4