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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
push ebx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.1004f530
lea ecx, [esp + 0xe8]
call fcn.100456f0
lea ecx, [esp + 0x40]
call fcn.10058990
push 1
lea ecx, [esp + 0xec]
call fcn.10045380
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x7b0]
push eax
lea ecx, [esp + 0xec]
call fcn.10045390
mov ecx, dword [ebx + 0x7b4]
push ecx
lea ecx, [esp + 0xec]
call fcn.1002f800
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x28]
call fcn.10051d50
test byte [ebx + 0x738], 1
je 0x10021f2e
lea ecx, [esp + 0xcc]
call fcn.1004f530
lea ecx, [esp + 0xb0]
call fcn.1004f530
mov eax, dword [ebx + 0x78c]
mov ecx, dword [ebx + 0x788]
mov edx, dword [ebx + 0x784]
push eax
mov eax, dword [ebx + 0x780]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xe0]
call fcn.100507f0
lea ecx, [esp + 0x68]
call fcn.1000f790
fld qword [0x757f070]
fstp qword [esp + 0x78]
xor edi, edi
fld qword [0x757f070]
mov eax, 0x1000
fstp qword [esp + 0x80]
lea ecx, [esp + 0x68]
fld qword [0x757f088]
mov dword [esp + 0xa0], eax
fstp qword [esp + 0x88]
mov dword [esp + 0xa8], edi
fld qword [0x757f088]
mov dword [esp + 0x98], edi
fstp qword [esp + 0x90]
mov dword [esp + 0xa4], eax
fild dword [ebx + 0x780]
mov dword [esp + 0xac], edi
mov dword [esp + 0x9c], edi
fstp qword [esp + 0x68]
fild dword [ebx + 0x784]
fstp qword [esp + 0x70]
call fcn.1000f630
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0x64
push edx
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0xc4]
call fcn.10051090
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0xec]
call fcn.10046b60
lea ecx, [esp + 0xb0]
call fcn.1004f560
lea ecx, [esp + 0xcc]
call fcn.1004f560
jmp 0x10021f41
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xec]
call fcn.10046b60
xor edi, edi
mov esi, dword [esp + 0x124]
cmp esi, edi
mov dword [ebx + 0x778], edi
jle 0x10022132
lea ecx, [esp + 0x24]
call fcn.1004f850
sub esi, 1
mov dword [esp + 0x1c], esi
js 0x10022129
lea edi, [esi + esi*2]
shl edi, 4
push esi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0xf0]
call fcn.100462d0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x44]
call fcn.10058f30
mov ecx, dword [esp + 0x12c]
mov edx, dword [edi + ecx + 0x10]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
lea ecx, [esp + 0x40]
fstp qword [esp + 0x10]
call fcn.10058a00
fdivr qword [esp + 0x10]
fmul qword [0x757f098]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or ah, 0xc
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x7b8]
mov dword [esp + 0x10], eax
fldcw word [esp + 0xe]
jl 0x10022117
mov eax, dword [0x75842a0]
mov esi, dword [eax + 0x714]
test esi, esi
je 0x100220f6
mov eax, dword [esp + 0x12c]
mov ecx, dword [edi + eax]
mov edx, dword [edi + eax + 4]
mov ebx, dword [edi + eax + 8]
mov eax, dword [edi + eax + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x1c], edx
mov dword [esi], 0xf
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x44]
lea edx, [ecx*8]
push edx
call fcn.10018550
xor ecx, ecx
add esp, 4
cmp dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
jle 0x100220c8
xor edx, edx
lea esp, [esp]
mov eax, dword [esp + 0x4c]
fnstcw word [esp + 0xe]
fld qword [edx + eax]
mov ebx, dword [esi + 0x24]
movzx eax, word [esp + 0xe]
or ah, 0xc
add ecx, 1
add edx, 0x10
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [ebx + ecx*8 - 8], eax
mov eax, dword [esp + 0x4c]
fldcw word [esp + 0xe]
mov ebx, dword [esi + 0x24]
fld qword [edx + eax - 8]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or ah, 0xc
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [ebx + ecx*8 - 4], eax
cmp ecx, dword [esi + 0x20]
fldcw word [esp + 0xe]
jl 0x10022060
mov ecx, dword [0x75842a0]
mov ebx, dword [ebp + 8]
push 0x19
push ecx
call fcn.100174a0
mov edx, dword [esi + 0x24]
push edx
call fcn.10018560
add esp, 0xc
cmp dword [esi + 0x28], 0
setne al
cmp dword [esi + 4], 0
jne 0x10022129
test al, al
je 0x10022113
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xf0]
call fcn.10045e80
add dword [ebx + 0x778], 1
mov esi, dword [esp + 0x1c]
sub esi, 1
sub edi, 0x30
test esi, esi
mov dword [esp + 0x1c], esi
jge 0x10021f72
lea ecx, [esp + 0x24]
call fcn.1004f850
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [esp + 0x28]
call fcn.10051dd0
lea ecx, [esp + 0x40]
call fcn.100589c0
lea ecx, [esp + 0xe8]
call fcn.10045750
lea ecx, [esp + 0x24]
call fcn.1004f560
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret