Function at 0x10021f70
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x103250c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x150], ebx
cmp dword [ebx + 0x60], 0
jge 0x10022000
test byte [ebx + 4], 2
lea eax, [ebp - 0x174]
mov dword [ebp - 0x16c], 0xffffffff
lea ecx, [ebx + 0x48]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x174], 0x80000000
push eax
mov dword [ebp - 0x170], 0x1b00d9
je 0x10021ff4
mov dword [ebp - 0x170], 0x20002
call fcn.10025890
mov eax, dword [ebx + 0x48]
dec eax
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 8], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
test eax, eax
je 0x10022041
push eax
call fcn.10014db0
add esp, 4
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10022051
push eax
call fcn.10014db0
add esp, 4
mov ecx, dword [ebx + 0x54]
push edi
xor edi, edi
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x138], ecx
lea edx, [edi + 8]
test ecx, ecx
jle 0x100220a5
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x100220a5
imul eax, eax, 0xc4
push eax
call fcn.10014d80
add esp, 4
mov dword [ebp - 0x130], eax
lea edx, [edi + 8]
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0x13c], esi
test esi, esi
jle 0x100220d5
cmp esi, 8
mov ecx, esi
cmovl ecx, edx
test ecx, ecx
jle 0x100220d5
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.10014d80
add esp, 4
mov dword [ebp - 0x12c], eax
mov edi, eax
imul ecx, dword [ebp - 0x138], 0xc4
push ecx
push 0
push dword [ebp - 0x130]
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + esi*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x120], 0
cmp dword [ebx + 0x54], 0
jle 0x1002225d
mov esi, dword [ebp - 0x130]
xor ecx, ecx
add esi, 0xa4
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x10c], esi
nop dword [eax]
mov eax, dword [ebx + 0x5c]
xor edx, edx
add eax, ecx
mov dword [esi - 4], 0xffffffff
mov dword [ebp - 0x110], eax
cmp dword [ebx + 0x3c], edx
jle 0x100222c5
mov edi, dword [ebp - 0x10c]
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x1002217d
mov ecx, dword [ebx + 0x44]
or esi, esi
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x1002216f
mov dword [edi - 4], edx
mov esi, edx
mov eax, dword [ebp - 0x110]
inc edx
mov ecx, esi
cmp edx, dword [ebx + 0x3c]
jl 0x10022156
mov edi, dword [ebp - 0x12c]
cmp ecx, 0xffffffff
je 0x100222c5
push dword [eax + 0xc]
mov esi, dword [eax]
push esi
call fcn.1002c110
mov ecx, dword [ebp - 0x10c]
push eax
add ecx, 0xffffff5c
push esi
push ecx
mov dword [ebp - 0x128], ecx
call fcn.10026650
add esp, 0x14
test eax, eax
je 0x100222c5
mov eax, dword [ebp - 0x128]
mov edx, 0x10176130
mov esi, dword [ebp - 0x10c]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x10022214
movzx eax, word [edx + 2]
test ax, ax
je 0x1002220e
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x100221f3
mov ecx, dword [ebp - 0x114]
inc dword [edi + ecx*8]
mov edx, dword [ebp - 0x114]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x120]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
inc eax
mov dword [edi + edx*8 + 4], ecx
add esi, 0xc4
mov ecx, dword [ebp - 0x118]
add ecx, 0x78
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x118], ecx
cmp eax, dword [ebx + 0x54]
jl 0x10022130
mov eax, dword [ebp - 0x138]
xor esi, esi
mov dword [ebp - 0x10c], esi
test eax, eax
jle 0x100226b3
mov edx, dword [ebp - 0x130]
add edx, 0xb4
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x108], edx
nop dword [eax + eax]
mov eax, dword [edx - 0x14]
mov esi, dword [edx - 0x10]
mov ecx, dword [edx - 4]
add esi, 0x20
sar esi, 5
lea ebx, [eax + eax*2]
mov dword [ebp - 0x110], ebx
cmp esi, ecx
jle 0x1002233a
test ecx, ecx
je 0x100222cc
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x108]
sar eax, 1
add eax, ecx
jmp 0x100222d1
xor bl, bl
jmp 0x10023547
mov eax, 8
cmp eax, esi
mov ecx, esi
cmovg ecx, eax
mov dword [ebp - 0x134], ecx
cmp ecx, dword [edx - 4]
jle 0x1002233a
lea eax, [ecx*4]
push eax
call fcn.10014d80
mov edx, dword [ebp - 0x108]
add esp, 4
mov dword [ebp - 0x128], eax
cmp dword [edx], 0
je 0x1002232f
mov ecx, dword [edx - 8]
shl ecx, 2
push ecx
push dword [edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x108]
push dword [eax]
call fcn.10014db0
mov edx, dword [ebp - 0x108]
add esp, 0x10
mov eax, dword [ebp - 0x128]
mov dword [edx], eax
mov eax, dword [ebp - 0x134]
mov dword [edx - 4], eax
lea eax, [esi*4]
mov dword [edx - 8], esi
push eax
push 0
push dword [edx]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + ebx*8 + 0xc], 0
jne 0x100223fa
mov esi, dword [edi + ebx*8 + 4]
mov ecx, dword [edi + ebx*8 + 0x10]
add esi, 0x20
sar esi, 5
cmp esi, ecx
jle 0x100223e0
test ecx, ecx
je 0x1002237d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10022382
mov eax, 8
cmp eax, esi
mov edx, esi
cmovg edx, eax
mov dword [ebp - 0x134], edx
cmp edx, ecx
jle 0x100223e0
lea eax, [edx*4]
push eax
call fcn.10014d80
mov edx, dword [edi + ebx*8 + 0x14]
add esp, 4
mov dword [ebp - 0x128], eax
test edx, edx
je 0x100223d2
mov ecx, dword [edi + ebx*8 + 0xc]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + ebx*8 + 0x14]
call fcn.10014db0
mov eax, dword [ebp - 0x128]
add esp, 0x10
mov dword [edi + ebx*8 + 0x14], eax
mov eax, dword [ebp - 0x134]
mov dword [edi + ebx*8 + 0x10], eax
lea eax, [esi*4]
mov dword [edi + ebx*8 + 0xc], esi
push eax
push 0
push dword [edi + ebx*8 + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x108]
mov eax, dword [edx - 0x18]
mov dword [ebp - 0x124], eax
cmp word [eax], 0
je 0x100224c9
movzx ecx, word [eax + 2]
test cx, cx
je 0x100224c3
movzx edi, word [eax]
cmp edi, ecx
ja 0x100224aa
nop dword [eax + eax]
mov eax, dword [ebp - 0x110]
mov ecx, edi
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
mov esi, edi
mov ecx, dword [ebp - 0x12c]
sar esi, 5
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], ebx
jne 0x1002249b
lea eax, [edx - 0xb4]
push edi
push eax
call fcn.1002be10
mov edx, dword [ebp - 0x108]
add esp, 8
test eax, eax
je 0x1002249b
inc dword [edx - 0xc]
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x12c]
inc dword [eax + ecx*8 + 8]
mov eax, dword [edx]
or dword [eax + esi*4], ebx
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + ecx*8 + 0x14]
or dword [eax + esi*4], ebx
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x124]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10022430
mov eax, dword [ebp - 0x124]
add eax, 4
mov dword [ebp - 0x124], eax
cmp word [eax], 0
jne 0x10022413
mov edi, dword [ebp - 0x12c]
add edx, 0xc4
sub dword [ebp - 0x114], 1
mov dword [ebp - 0x108], edx
jne 0x10022290
mov esi, dword [ebp - 0x130]
mov eax, dword [ebp - 0x138]
add esi, 0xb8
mov dword [ebp - 0x118], eax
nop word [eax + eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x1002253f
lea eax, [edi*4]
push eax
call fcn.10014d80
mov ebx, eax
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10022539
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 8]
call fcn.10014db0
add esp, 0x10
mov dword [esi + 8], ebx
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x114], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x110], eax
cmp ecx, eax
jae 0x10022667
mov edx, dword [ebp - 0x110]
xor eax, eax
mov dword [ebp - 0x120], eax
nop word [eax + eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x144], ecx
test ecx, ecx
je 0x10022647
xor edi, edi
mov ebx, 1
mov dword [ebp - 0x124], edi
nop dword [eax]
test ebx, ecx
je 0x1002262f
mov ecx, dword [esi + 4]
and eax, 0xffffffe0
add eax, edi
mov dword [ebp - 0x134], eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x10022613
lea edi, [eax + 1]
test ecx, ecx
je 0x100225be
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100225c3
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1002260d
lea eax, [edi*4]
push eax
call fcn.10014d80
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x128], eax
test edx, edx
je 0x10022607
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 8]
call fcn.10014db0
mov eax, dword [ebp - 0x128]
add esp, 0x10
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x124]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x134]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x144]
inc edi
rol ebx, 1
mov dword [ebp - 0x124], edi
cmp edi, 0x20
jl 0x10022590
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
add eax, 0x20
add ecx, 4
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x114], ecx
cmp ecx, edx
jb 0x10022570
mov eax, dword [esi - 4]
test eax, eax
je 0x1002268c
push eax
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
call fcn.10014db0
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x118], 1
jne 0x10022500
mov edi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x10c]
jmp 0x100226b5
xor esi, esi
cmp dword [ebp - 0x13c], 0
jle 0x100226fe
lea ebx, [edi + 0x14]
mov edi, dword [ebp - 0x13c]
mov eax, dword [ebx]
test eax, eax
je 0x100226ea
push eax
mov dword [ebx - 4], 0
mov dword [ebx - 8], 0
call fcn.10014db0
add esp, 4
mov dword [ebx], 0
add ebx, 0x18
sub edi, 1
jne 0x100226c7
mov edi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x150]
test edi, edi
je 0x10022715
push edi
call fcn.10014db0
add esp, 4
mov dword [ebp - 0x12c], 0
xor edi, edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x124], edi
test esi, esi
jle 0x10022773
cmp esi, 8
mov eax, esi
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x1002277b
shl eax, 4
push eax
call fcn.10014d80
mov edi, eax
mov dword [ebp - 0x13c], eax
cmp esi, 8
mov eax, 8
mov edx, esi
cmovl edx, eax
lea ecx, [edx*8]
sub ecx, edx
shl ecx, 2
push ecx
call fcn.10014d80
add esp, 8
mov dword [ebp - 0x124], eax
jmp 0x1002277b
xor edi, edi
mov dword [ebp - 0x13c], edi
mov eax, esi
shl eax, 4
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x124]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x138]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x108], eax
xor edi, edi
mov dword [ebp - 0x10c], ecx
add esp, 0x18
mov dword [ebp - 0x11c], edi
test edx, edx
jle 0x10022aa2
mov esi, dword [ebp - 0x130]
add esi, 0x98
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x120], edx
nop word [eax + eax]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10022a7c
add dword [ebp - 0x10c], edx
mov eax, ecx
mov ecx, dword [ebp - 0x124]
shl eax, 4
add eax, dword [ebp - 0x13c]
mov dword [esi - 4], eax
lea eax, [edi*8]
sub eax, edi
add edi, edx
mov dword [ebp - 0x11c], edi
lea ecx, [ecx + eax*4]
mov dword [esi], ecx
mov edx, dword [ebx + 0x5c]
add edx, dword [ebp - 0x118]
mov dword [ebp - 0x128], edx
mov eax, dword [edx + 0x10]
mov dword [esi - 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esi - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [esi - 0x18], 0
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [esi - 8], al
mov al, byte [edx + 0x18]
mov byte [esi - 7], al
movss xmm2, dword [edx + 0x10]
comiss xmm2, dword [0x101724bc]
jbe 0x100228ce
mov edi, dword [esi - 0x7c]
mov eax, 0x100
mov esi, dword [esi - 0x94]
cwde
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
movsx ecx, cx
imul ecx, eax
mov eax, 0x100
cwde
add dx, cx
movzx ecx, byte [edi + esi + 4]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
movsx edx, dx
mov esi, dword [ebp - 0x110]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x114], xmm2
jmp 0x1002290b
mov edx, dword [esi - 0x84]
mov eax, dword [esi - 0x94]
movss xmm1, dword [0x10172598]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, xmm2
movaps xmm2, xmm1
movss dword [ebp - 0x114], xmm1
movss xmm0, dword [ebx + 0x14]
xor ecx, ecx
mov eax, dword [ebx + 0x10]
movss dword [ebp - 0x158], xmm0
movss xmm0, dword [ebx + 0x18]
mov dword [ebp - 0x154], eax
movss dword [ebp - 0x140], xmm0
mov dword [ebp - 0x110], ecx
cmp dword [esi + 0x20], ecx
jle 0x10022a70
mov ebx, dword [ebp - 0x128]
lea edx, [esi - 0x98]
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x28]
push dword [eax + ecx*4]
push edx
call fcn.1002be10
movd xmm0, dword [ebx + 0x18]
lea ecx, [ebp - 0x14c]
add esp, 8
cvtdq2ps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x148]
mulss xmm0, xmm2
push ecx
lea ecx, [ebp - 0x144]
push ecx
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movd xmm0, dword [ebx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp], xmm0
push eax
lea eax, [esi - 0x98]
push eax
call fcn.1002c1a0
mov ecx, dword [ebp - 0x134]
add esp, 0x28
sub ecx, dword [ebp - 0x144]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x154]
dec eax
add ecx, edx
movss xmm2, dword [ebp - 0x114]
add eax, ecx
dec edx
movd xmm0, eax
mov eax, dword [esi - 4]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp - 0x158]
cvttss2si ecx, xmm0
mov word [eax + edi + 4], cx
mov eax, dword [ebx + 0x18]
sub eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x14c]
add eax, edx
lea edx, [esi - 0x98]
movd xmm0, eax
mov eax, dword [esi - 4]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp - 0x140]
cvttss2si ecx, xmm0
mov word [eax + edi + 6], cx
mov eax, dword [esi - 4]
movzx ecx, word [eax + edi + 6]
movzx eax, word [eax + edi + 4]
add edi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x108]
add eax, ecx
mov ecx, dword [ebp - 0x110]
inc ecx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x110], ecx
cmp ecx, dword [esi + 0x20]
jl 0x10022950
mov ebx, dword [ebp - 0x150]
jmp 0x10022a76
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
add dword [ebp - 0x118], 0x78
add esi, 0xc4
sub dword [ebp - 0x120], 1
mov edi, dword [ebp - 0x11c]
mov dword [ebp - 0x110], esi
jne 0x100227f0
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x28], 0
test ecx, ecx
jg 0x10022afb
movd xmm0, eax
cvtdq2ps xmm0, xmm0
sqrtss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10176180]
jb 0x10022ad7
mov ecx, 0x1000
jmp 0x10022afb
comiss xmm0, dword [0x1017617c]
jb 0x10022ae7
mov ecx, 0x800
jmp 0x10022afb
comiss xmm0, dword [0x10176178]
mov ecx, 0x200
mov eax, 0x400
cmovae ecx, eax
push 0x2c
lea eax, [ebp - 0x184]
mov dword [ebx + 0x24], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0x24]
push 0x30
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x140], edi
call fcn.10014d80
sub edi, dword [ebp - 0x11c]
mov esi, eax
mov dword [ebp - 0x108], esi
lea ecx, [edi*8]
push ecx
call fcn.10014d80
add esp, 0x14
test esi, esi
je 0x10022bae
test eax, eax
je 0x10022bab
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x140]
push edi
push eax
mov dword [ebp - 0x15c], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x17c], edx
push eax
push edi
push esi
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x168], 1
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x16c], 0
call fcn.1002bab0
add esp, 0x14
jmp 0x10022bc7
push esi
jmp 0x10022bb3
test eax, eax
je 0x10022bbb
push eax
call fcn.10014db0
add esp, 4
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x108], eax
mov edi, dword [ebx + 0x48]
xor eax, eax
mov dword [ebp - 0x10c], eax
test edi, edi
jle 0x10022bf9
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x10022bf9
shl ecx, 4
push ecx
call fcn.10014d80
add esp, 4
mov dword [ebp - 0x10c], eax
mov ecx, edi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x48], esi
jle 0x10022c44
mov edx, dword [ebp - 0x10c]
xor ecx, ecx
add edx, 6
nop dword [eax]
mov eax, dword [ebx + 0x50]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [eax + ecx - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [ebx + 0x50]
movzx eax, word [eax + ecx - 0x16]
mov word [edx - 0x10], ax
cmp esi, dword [ebx + 0x48]
jl 0x10022c20
push edi
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
call fcn.1002bc20
add esp, 0xc
test edi, edi
jle 0x10022ca3
mov edx, dword [ebp - 0x10c]
xor esi, esi
add edx, 0xa
cmp dword [edx + 2], 0
je 0x10022c98
mov ecx, dword [ebx + 0x50]
movzx eax, word [edx - 2]
mov word [ecx + esi + 8], ax
mov ecx, dword [ebx + 0x50]
movzx eax, word [edx]
mov word [ecx + esi + 0xa], ax
movzx ecx, word [edx - 4]
movzx eax, word [edx]
add ecx, eax
cmp dword [ebx + 0x28], ecx
cmovge ecx, dword [ebx + 0x28]
mov dword [ebx + 0x28], ecx
add esi, 0x1c
add edx, 0x10
sub edi, 1
jne 0x10022c68
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x10022cb6
push eax
call fcn.10014db0
add esp, 4
mov esi, dword [ebp - 0x138]
test esi, esi
jle 0x10022d3d
mov esi, dword [ebp - 0x130]
mov eax, dword [ebp - 0x138]
add esi, 0xa8
mov dword [ebp - 0x11c], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x10022d28
push eax
push dword [esi - 0x14]
push dword [ebp - 0x108]
call fcn.1002bc20
xor edi, edi
add esp, 0xc
cmp dword [esi], edi
jle 0x10022d28
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x10022d20
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [ebx + 0x28], ecx
cmovge ecx, dword [ebx + 0x28]
mov dword [ebx + 0x28], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x10022d00
add esi, 0xc4
sub dword [ebp - 0x11c], 1
jne 0x10022ce0
mov esi, dword [ebp - 0x138]
test byte [ebx + 4], 1
mov eax, dword [ebx + 0x28]
jne 0x10022d6b
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
movss xmm1, dword [0x10172524]
lea ecx, [eax + 1]
mov eax, dword [ebx + 0x24]
movaps xmm2, xmm1
mov dword [ebx + 0x28], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm1, xmm0
push ecx
movss dword [ebx + 0x2c], xmm2
movss dword [ebx + 0x30], xmm1
call fcn.10014d80
mov ecx, dword [ebx + 0x28]
imul ecx, dword [ebx + 0x24]
mov dword [ebx + 0x1c], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov dword [ebp - 0x160], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x178], eax
test esi, esi
jle 0x10022fa0
mov ecx, dword [ebp - 0x130]
xor edi, edi
mov dword [ebp - 0x114], edi
mov eax, esi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x120], esi
nop dword [eax]
nop dword [eax + eax]
cmp dword [ecx + 0xa8], 0
mov esi, dword [ebx + 0x5c]
je 0x10022f6a
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
push 1
push eax
push ecx
lea eax, [ebp - 0x184]
push eax
call fcn.1002c780
movss xmm1, dword [esi + edi + 0x44]
add esp, 0x14
ucomiss xmm1, dword [0x10172524]
movss dword [ebp - 0x140], xmm1
lahf
test ah, 0x44
jnp 0x10022f54
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10172620]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1010fa00
movss xmm1, dword [ebp - 0x140]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x104], dl
inc esi
cmp esi, 0x100
jb 0x10022e50
mov ecx, dword [ebp - 0x108]
xor eax, eax
mov dword [ebp - 0x118], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x10022f5a
lea ecx, [edx + 4]
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x110], ecx
cmp dword [ecx + 8], 0
je 0x10022f32
mov eax, dword [ebx + 0x24]
movzx edx, word [ecx + 6]
movzx edi, word [ecx + 2]
movzx esi, word [ecx]
imul edx, eax
mov dword [ebp - 0x11c], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [ebx + 0x1c]
test edi, edi
je 0x10022f26
mov eax, dword [ebp - 0x11c]
xor ecx, ecx
test esi, esi
je 0x10022f19
nop dword [eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x104]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10022f00
mov eax, dword [ebp - 0x11c]
dec edi
add edx, eax
test edi, edi
jg 0x10022ef7
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x118]
inc eax
add ecx, 0x10
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ecx
cmp eax, dword [edx + 0xa8]
jl 0x10022ec7
mov edi, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x120]
mov dword [ecx + 0x94], 0
add edi, 0x78
add ecx, 0xc4
sub eax, 1
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x120], eax
jne 0x10022e00
mov eax, dword [ebp - 0x180]
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x108], eax
push dword [ebp - 0x15c]
call fcn.10014db0
push dword [ebp - 0x108]
call fcn.10014db0
mov eax, dword [ebp - 0x13c]
add esp, 8
test eax, eax
je 0x10022fd6
push eax
call fcn.10014db0
add esp, 4
mov dword [ebp - 0x13c], 0
test esi, esi
jle 0x10023510
mov ecx, dword [ebp - 0x130]
xor edx, edx
movss xmm2, dword [0x101724f8]
add ecx, 4
mov eax, esi
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x110], eax
nop word [eax + eax]
cmp dword [ecx + 0xa4], 0
je 0x100234a7
mov edi, dword [ecx + 0x18]
mov esi, dword [ecx]
mov eax, dword [ebx + 0x5c]
add eax, edx
mov dword [ebp - 0x128], eax
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 7]
mov eax, dword [eax + 0x74]
mov dword [ebp - 0x140], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + esi + 6]
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x11c], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x140]
add dx, cx
movsx ecx, dx
lea edx, [edi + 0x3c]
sub eax, ecx
mov dword [ebp - 0x148], ecx
cmp byte [esi + 0x3c], 0
lea ecx, [edi + 0x38]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x10c], ecx
movd xmm0, eax
lea eax, [edi + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x108], eax
divss xmm1, xmm0
movss dword [ebp - 0x14c], xmm1
jne 0x1002317a
mov ecx, edi
call fcn.100217d0
mov eax, dword [esi + 0x10]
xorps xmm3, xmm3
movd xmm1, dword [ebp - 0x11c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x118]
cvtdq2ps xmm1, xmm1
mov dword [eax], esi
mov eax, dword [ebp - 0x10c]
movss xmm2, dword [0x101724f8]
mov dword [eax], ebx
xor eax, eax
comiss xmm1, xmm3
mulss xmm1, dword [ebp - 0x14c]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [ebp - 0x148]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x108]
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
xor eax, eax
comiss xmm1, xmm3
mulss xmm1, dword [ebp - 0x14c]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x108]
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x50], xmm0
jmp 0x10023186
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x10c], ecx
movss xmm0, dword [eax]
xor edx, edx
inc word [edi + 0x40]
addss xmm0, xmm2
mov ecx, dword [ebp - 0x120]
movss xmm3, dword [esi + 0x28]
movss dword [ebp - 0x19c], xmm3
mov dword [ebp - 0x134], edx
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x2c]
movss dword [ebp - 0x158], xmm0
cmp dword [ecx + 0xa4], edx
jle 0x1002349b
xor eax, eax
mov dword [ebp - 0x108], eax
nop dword [eax]
mov eax, dword [ecx + 0xbc]
movss xmm0, dword [esi + 0x34]
movss dword [ebp - 0x144], xmm0
mov eax, dword [eax + edx*4]
mov edx, dword [ecx + 0x94]
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x140], eax
movss xmm1, dword [edx + ecx + 0x10]
comiss xmm0, xmm1
ja 0x1002323d
movss xmm0, dword [esi + 0x38]
minss xmm0, xmm1
movss dword [ebp - 0x11c], xmm3
ucomiss xmm1, xmm0
movss dword [ebp - 0x144], xmm0
movss dword [ebp - 0x188], xmm0
lahf
test ah, 0x44
jnp 0x10023262
cmp byte [esi + 0x1c], 0
subss xmm0, xmm1
mulss xmm0, xmm2
je 0x10023256
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm3
movss dword [ebp - 0x11c], xmm0
movd xmm0, dword [ebx + 0x24]
movss xmm1, dword [0x10172524]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + ecx]
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [ebx + 0x28]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edx + ecx + 8]
movss dword [ebp - 0x14c], xmm0
movss xmm0, dword [edx + ecx + 0xc]
movss dword [ebp - 0x148], xmm0
movss xmm0, dword [edx + ecx + 0x14]
movss dword [ebp - 0x154], xmm0
movss xmm0, dword [edx + ecx + 0x18]
movss dword [ebp - 0x18c], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x190], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x194], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 6]
lea ecx, [edi + 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x198], xmm0
movd xmm0, eax
mov eax, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
inc eax
push eax
mulss xmm0, xmm1
movss dword [ebp - 0x188], xmm0
call fcn.10025b10
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x28]
movss xmm0, dword [ebp - 0x14c]
addss xmm0, dword [ebp - 0x11c]
lea edx, [eax + eax*4]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x140]
movss xmm2, dword [0x101724f8]
mov word [esi + edx*8 - 0x28], ax
movss dword [esi + edx*8 - 0x20], xmm0
movss xmm0, dword [ebp - 0x148]
addss xmm0, dword [ebp - 0x158]
movss dword [esi + edx*8 - 0x1c], xmm0
movss xmm0, dword [ebp - 0x154]
addss xmm0, dword [ebp - 0x11c]
movss dword [esi + edx*8 - 0x18], xmm0
movss xmm0, dword [ebp - 0x18c]
addss xmm0, dword [ebp - 0x158]
movss dword [esi + edx*8 - 0x14], xmm0
movss xmm0, dword [ebp - 0x190]
movss dword [esi + edx*8 - 0x10], xmm0
movss xmm0, dword [ebp - 0x194]
movss dword [esi + edx*8 - 0xc], xmm0
movss xmm0, dword [ebp - 0x198]
movss dword [esi + edx*8 - 8], xmm0
movss xmm0, dword [ebp - 0x188]
movss dword [esi + edx*8 - 4], xmm0
mov eax, dword [ecx]
movss xmm0, dword [ebp - 0x144]
addss xmm0, dword [eax + 0x20]
movss dword [esi + edx*8 - 0x24], xmm0
mov eax, dword [ecx]
cmp byte [eax + 0x1c], 0
je 0x1002340d
addss xmm0, xmm2
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + edx*8 - 0x24], xmm0
mov eax, dword [ebp - 0x10c]
mov byte [edi + 0x58], 1
movss xmm0, dword [esi + edx*8 - 4]
subss xmm0, dword [esi + edx*8 - 0xc]
mov eax, dword [eax]
add dword [ebp - 0x108], 0x1c
movss xmm3, dword [ebp - 0x19c]
movd xmm1, dword [eax + 0x28]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
movss xmm0, dword [esi + edx*8 - 8]
subss xmm0, dword [esi + edx*8 - 0x10]
addss xmm1, dword [0x10176164]
mov edx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x128]
inc edx
mov dword [ebp - 0x134], edx
cvttss2si ecx, xmm1
movd xmm1, dword [eax + 0x24]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
addss xmm1, dword [0x10176164]
cvttss2si eax, xmm1
imul ecx, eax
add dword [edi + 0x54], ecx
mov ecx, dword [ebp - 0x120]
cmp edx, dword [ecx + 0xa4]
jl 0x100231e0
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
add ecx, 0xc4
add edx, 0x78
sub eax, 1
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], eax
jne 0x10023010
mov esi, dword [ebp - 0x130]
mov ebx, dword [ebp - 0x138]
add esi, 0xb4
nop dword [eax]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100234f0
push eax
call fcn.10014db0
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x100234ff
push eax
call fcn.10014db0
add esp, 4
add esi, 0xc4
sub ebx, 1
jne 0x100234e0
mov ebx, dword [ebp - 0x150]
push ebx
call fcn.10021aa0
mov eax, dword [ebp - 0x124]
add esp, 4
mov bl, 1
test eax, eax
je 0x1002352e
push eax
call fcn.10014db0
add esp, 4
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x10023541
push eax
call fcn.10014db0
add esp, 4
mov edi, dword [ebp - 0x12c]
test edi, edi
je 0x10023554
push edi
call fcn.10014db0
add esp, 4
mov eax, dword [ebp - 0x130]
pop edi
test eax, eax
je 0x10023568
push eax
call fcn.10014db0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1010f972
mov esp, ebp
pop ebp
ret