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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5802
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa8], edi
inc dword [0x66c1f4]
cmp dword [edi + 0x4e4], 0
jne 0x576f11
cmp dword [edi + 0x4e8], 0
je 0x577d51
mov ecx, dword [edi + 0x23c]
test ecx, ecx
je 0x576f2b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x23c], 0
mov eax, dword [edi + 0x12c]
mov dword [edi + 0x254], 1
test eax, eax
je 0x577d51
cmp dword [eax + 0x58], 0
je 0x577d51
mov ecx, dword [edi + 0x258]
test ecx, ecx
je 0x577d51
cmp dword [ecx + 0x70], 0
je 0x577d51
mov eax, dword [ecx + 0x34]
sub eax, dword [ecx + 0x30]
sar eax, 2
test eax, eax
je 0x577d2a
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x150]
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 0
movups xmmword [ebp - 0x74], xmm0
push 0x70
movups xmm0, xmmword [edi + 0xd4]
movups xmmword [ebp - 0x60], xmm0
call fcn.0050ed1e
add esp, 4
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x576fc2
mov ecx, eax
call fcn.0051b010
jmp 0x576fc4
xor eax, eax
mov dword [edi + 0x23c], eax
mov eax, dword [edi + 0x12c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x577165
push dword [edi + 0xd0]
mov esi, dword [edi + 0x23c]
push dword [ebp - 0x60]
push dword [edi + 0x1b0]
push dword [edi + 0x1ac]
push 0
call fcn.00521a90
mov ecx, dword [ebp - 0xb0]
push eax
push 1
push 1
push esi
call fcn.005469f0
test eax, eax
jne 0x577165
push dword [edi + 0x1b0]
mov ecx, dword [edi + 0x23c]
push dword [edi + 0x1ac]
call fcn.0051b430
mov ecx, dword [edi + 0x23c]
push 0
call fcn.0051b390
push 1
push 0
push 0
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.005514e0
test eax, eax
je 0x577118
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x577135
mov eax, dword [edi + 0x12c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x57711e
push 0
push ecx
mov ecx, eax
call fcn.00525a60
mov edx, eax
mov dword [ebp - 0xbc], edx
test edx, edx
je 0x577118
mov ecx, dword [edi + 0x1ac]
mov eax, dword [edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x1b0]
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call eax
mov esi, eax
mov eax, dword [ebp - 0xbc]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 4]
call edx
movups xmm0, xmmword [ebp - 0x20]
mov ecx, dword [edi + 0x23c]
push 1
mov dword [ebp - 0x6c], eax
lea eax, [edi + 0xd0]
push 0
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push eax
sub esp, 0x10
mov dword [ebp - 0x70], 0
mov eax, esp
mov dword [ebp - 0x68], esi
push dword [ebp - 0xbc]
movups xmmword [eax], xmm0
call fcn.0051de50
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x577135
push ecx
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0xc0], 0
push dword [edi + 0xd0]
mov eax, dword [edi + 0x12c]
push dword [ebp - 0x60]
mov esi, dword [edi + 0x23c]
push 0
mov ecx, dword [eax + 0x58]
call fcn.00521a90
mov ecx, dword [ebp - 0xb0]
push eax
push 1
push 1
push esi
call fcn.00546c30
mov ecx, dword [edi + 0x4d4]
test ecx, ecx
je 0x57717d
mov eax, dword [edi + 0x258]
mov edx, dword [ecx]
push dword [eax + 0x18]
call dword [edx + 0x50]
push dword [edi + 0x23c]
mov ecx, edi
call fcn.00553080
cmp dword [edi + 0x23c], 0
je 0x5771f6
mov eax, dword [edi + 0x258]
test eax, eax
je 0x5771f6
cmp dword [eax + 0x64], 0
je 0x5771f6
mov esi, dword [edi + 0x12c]
test esi, esi
je 0x5771f6
mov esi, dword [esi + 0x54]
test esi, esi
je 0x5771f6
mov ecx, esi
call fcn.00557290
test eax, eax
jne 0x5771f6
push dword [edi + 0x558]
mov ecx, esi
push dword [edi + 0x554]
push dword [edi + 0x23c]
call fcn.00535870
test eax, eax
je 0x5771f6
mov ecx, dword [edi + 0x23c]
push 1
push eax
push dword [edi + 0x558]
push dword [edi + 0x554]
call fcn.0051d400
mov ecx, dword [edi + 0x258]
cmp dword [ecx + 0x18], 0
je 0x577293
cmp dword [edi + 0x4d4], 0
jne 0x577293
push dword [ecx + 0x14]
lea ecx, [edi + 0x56c]
call fcn.00519860
mov esi, eax
test esi, esi
je 0x577293
movaps xmm0, xmmword [0x60ba90]
mov ecx, esi
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x14
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.004160b0
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.004160a0
mov ecx, dword [edi + 0x570]
mov edx, dword [edi + 0x56c]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x64]
push 1
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [edi + 0x578]
sub eax, ecx
push eax
mov eax, dword [edi + 0x574]
sub eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x23c]
push edx
push esi
call fcn.0051dc40
mov esi, dword [edi + 0x258]
mov dword [ebp - 0xb8], esi
test esi, esi
je 0x5772d4
mov ecx, dword [esi + 0x334]
test ecx, ecx
je 0x5772ce
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5772b0
sub ecx, edx
sar ecx, 1
je 0x5772ce
mov ecx, edi
call fcn.00529c40
mov esi, dword [edi + 0x258]
mov dword [ebp - 0xb8], esi
cmp dword [esi + 0x3a4], 0
je 0x57732f
mov eax, dword [edi + 0x234]
lea ecx, [edi + 0x230]
sub eax, dword [ecx]
sar eax, 2
mov dword [ebp - 0xb8], esi
test eax, eax
je 0x57732f
mov eax, dword [edi + 0x540]
push 1
push 0
push 0
push 0
push dword [edi + 0x54c]
push eax
push dword [edi + 0x544]
push eax
push ecx
push dword [edi + 0x23c]
call fcn.0051df70
mov esi, dword [edi + 0x258]
add esp, 0x28
mov dword [ebp - 0xb8], esi
mov ecx, dword [edi + 0x12c]
test ecx, ecx
je 0x577346
call fcn.005152a0
mov dword [ebp - 0xbc], eax
jmp 0x577350
mov dword [ebp - 0xbc], 0
mov eax, dword [esi + 0x34]
xor ecx, ecx
mov edx, dword [esi + 0x30]
sub eax, edx
mov dword [ebp - 0xb0], ecx
test eax, 0xfffffffc
jle 0x577432
nop dword [eax + eax]
mov eax, dword [edx + ecx*4]
cmp dword [eax + 0x18], 0
je 0x577432
test byte [eax + 0x14], 6
lea ecx, [edi + 0x1c0]
jne 0x577390
call fcn.005197f0
jmp 0x577395
call fcn.005197b0
mov edx, dword [esi + 0x30]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0xac], eax
mov eax, dword [eax + 0x14]
test al, 2
je 0x5773bc
mov ecx, dword [edi + 0x1dc]
jmp 0x5773c2
mov ecx, dword [edi + 0x1d8]
test al, 4
je 0x5773cc
mov ecx, dword [edi + 0x204]
test al, 8
je 0x5773d6
mov ecx, dword [edi + 0x1d8]
test al, 0x10
je 0x5773e0
mov ecx, dword [edi + 0x1dc]
cmp dword [ebp - 0xb4], 0
je 0x577415
mov edx, dword [ebp - 0xac]
movzx eax, byte [edx + 0x1c]
shl eax, 0x18
or eax, ecx
mov ecx, edi
push eax
push dword [ebp - 0xb4]
lea eax, [edx + 4]
push dword [edx]
push eax
push dword [edi + 0x23c]
call fcn.00528920
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0xb0]
sub eax, edx
inc ecx
sar eax, 2
mov dword [ebp - 0xb0], ecx
cmp ecx, eax
jl 0x577370
push 1
mov ecx, edi
call fcn.005280f0
test eax, eax
je 0x577588
push 0
mov ecx, edi
call fcn.005280f0
test eax, eax
je 0x577588
mov ecx, dword [edi + 0x258]
push 1
call fcn.00537700
test eax, eax
je 0x5774ee
mov ecx, dword [edi + 0x258]
push 1
call fcn.00537630
mov ecx, dword [edi + 0x258]
push 1
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
call fcn.00537630
mov ecx, dword [ebp - 0xa8]
mov edi, dword [edi + 0x23c]
push 1
movzx esi, byte [eax + 0xc]
push 0xffffffffffffffff
push 1
shl esi, 0x18
call fcn.005280f0
mov eax, dword [eax + 0x18]
or eax, esi
mov esi, dword [ebp - 0xa8]
push eax
push 1
mov ecx, esi
call fcn.005280f0
mov ecx, dword [esi + 0x258]
push eax
push 1
call fcn.005376d0
mov ecx, dword [esi + 0x258]
push eax
push dword [ebp - 0xac]
push 1
call fcn.00537630
add eax, 0x14
push eax
push edi
mov edi, esi
mov ecx, edi
call fcn.005269f0
mov ecx, dword [edi + 0x258]
push 0
call fcn.00537700
test eax, eax
je 0x577588
mov ecx, dword [edi + 0x258]
push 0
call fcn.00537630
mov ecx, dword [edi + 0x258]
push 0
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
call fcn.00537630
mov ecx, dword [ebp - 0xa8]
mov edi, dword [edi + 0x23c]
push 1
movzx esi, byte [eax + 0xc]
push 0xffffffffffffffff
push 0
shl esi, 0x18
call fcn.005280f0
mov eax, dword [eax + 0x18]
or eax, esi
mov esi, dword [ebp - 0xa8]
push eax
push 0
mov ecx, esi
call fcn.005280f0
mov ecx, dword [esi + 0x258]
push eax
push 0
call fcn.005376d0
mov ecx, dword [esi + 0x258]
push eax
push dword [ebp - 0xac]
push 0
call fcn.00537630
add eax, 0x14
push eax
push edi
mov edi, esi
mov ecx, edi
call fcn.005269f0
mov ecx, edi
call fcn.00527ac0
mov dword [ebp - 0xac], eax
test eax, eax
je 0x5775fd
mov ecx, dword [edi + 0x258]
mov ecx, dword [ecx + 0x40]
cmp dword [ecx - 0xc], 0
je 0x5775fd
mov ecx, edi
call fcn.00527ab0
test eax, eax
je 0x5775bf
mov ecx, edi
call fcn.00527ab0
mov eax, dword [eax + 0x18]
jmp 0x5775c4
mov eax, 0x8c7a6b
mov ecx, dword [edi + 0x258]
push 1
push 0xffffffffffffffff
push dword [ebp - 0xbc]
mov edx, dword [ecx + 0x58]
mov esi, dword [ecx + 0x54]
push eax
push dword [ebp - 0xac]
mov eax, dword [ecx + 0x60]
push dword [ecx + 0x40]
sub eax, edx
push eax
mov eax, dword [ecx + 0x5c]
mov ecx, dword [edi + 0x23c]
sub eax, esi
push eax
push edx
push esi
call fcn.0054f2e0
cmp dword [edi + 0x258], 0
je 0x577d2a
mov esi, dword [ebp - 0xb8]
mov eax, dword [esi + 0x78]
sub eax, dword [esi + 0x74]
sar eax, 2
test eax, eax
je 0x577d2a
cmp dword [edi + 0x23c], 0
je 0x577d2a
lea ecx, [edi + 0x1e8]
call fcn.005197b0
test eax, eax
je 0x577d2a
mov eax, dword [esi + 0x78]
xor ecx, ecx
mov edx, dword [esi + 0x74]
xorps xmm0, xmm0
sub eax, edx
mov dword [ebp - 0xa8], ecx
movups xmmword [ebp - 0x84], xmm0
test eax, 0xfffffffc
jle 0x577d2a
nop word [eax + eax]
mov eax, dword [edx + ecx*4]
cmp dword [eax + 0x2c], 0
je 0x577d2a
push eax
mov ecx, edi
call fcn.005273d0
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x258]
cmp edx, dword [eax + 0x80]
mov eax, dword [esi + 0x74]
jne 0x5776b5
mov ecx, dword [eax + edx*4]
test dword [ecx], 0x1000
jne 0x5776b5
mov ecx, dword [edi + 0x204]
jmp 0x5776bb
mov ecx, dword [edi + 0x200]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [edi + 0x258]
cmp dword [ecx + 0x84], 0
je 0x57778e
mov eax, dword [eax + edx*4]
mov dword [ebp - 0xac], eax
mov ecx, dword [eax]
test ecx, 0x200000
je 0x57774a
push ecx
call fcn.005197d0
mov eax, dword [esi + 0x74]
add esp, 4
mov ecx, dword [ebp - 0xa8]
fstp dword [ebp - 0xac]
movss xmm0, dword [ebp - 0xac]
mulss xmm0, dword [0x64ad84]
mov esi, dword [eax + ecx*4]
push 1
push 0xffffffffffffffff
call fcn.005e2530
shl eax, 0x18
mov ecx, edi
or eax, dword [ebp - 0xb4]
push eax
lea eax, [edi + 0x1e8]
push eax
push 0
push dword [esi + 8]
lea eax, [esi + 0xc]
push eax
push dword [edi + 0x23c]
call fcn.005269f0
mov esi, dword [ebp - 0xb8]
jmp 0x577788
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push 1
push 0xffffffffffffffff
push dword [ebp - 0xbc]
push dword [ebp - 0xb4]
push dword [ebp - 0xb0]
push dword [eax + 8]
mov eax, dword [eax + 0x18]
sub eax, ecx
push eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
sub eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x23c]
push edx
call fcn.0054f2e0
mov edx, dword [ebp - 0xa8]
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax]
test cl, 4
jne 0x577871
test ecx, 0x9800
jne 0x577871
test cl, 0x10
je 0x577835
movups xmm0, xmmword [eax + 0x1c]
mov eax, dword [esi + 0x74]
mov ecx, edi
movups xmmword [ebp - 0x84], xmm0
push dword [eax + edx*4]
call fcn.005272d0
mov dword [ebp - 0xac], eax
test eax, eax
je 0x57789b
mov ecx, dword [edi + 0x12c]
call fcn.00514df0
mov ecx, dword [esi + 0x74]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ecx + eax*4]
lea eax, [ebp - 0xcc]
push eax
lea eax, [edi + 0x204]
push eax
lea eax, [edi + 0x200]
push eax
push dword [ebp - 0xac]
lea eax, [ecx + 0x34]
push dword [ecx]
push eax
lea eax, [ecx + 0x30]
push eax
push dword [ecx + 4]
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
push dword [edi + 0x23c]
call fcn.00528370
jmp 0x57789b
test cl, 8
je 0x5778a1
push ecx
push dword [eax + 4]
add eax, 0x1c
mov ecx, edi
push 0
push eax
push dword [edi + 0x23c]
lea eax, [ebp - 0x84]
push eax
call fcn.00528b40
mov eax, dword [esi + 0x74]
mov edx, dword [ebp - 0xa8]
movups xmm0, xmmword [ebp - 0x84]
mov eax, dword [eax + edx*4]
movups xmmword [eax + 0x3c], xmm0
jmp 0x5778a1
push 1
push 0xffffffffffffffff
push dword [ebp - 0xb4]
mov ecx, edi
push dword [ebp - 0xb0]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 4]
add eax, 0x1c
push eax
push dword [edi + 0x23c]
call fcn.00528630
mov edx, dword [ebp - 0xa8]
mov eax, dword [edi + 0x258]
cmp dword [eax + 0x2c], 2
jne 0x577984
mov eax, dword [edi + 0x12c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x577984
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x577984
mov eax, dword [ecx + 0x44]
sub eax, dword [ecx + 0x3c]
je 0x577984
mov eax, dword [ecx + 0x48]
sub eax, dword [ecx + 0x40]
je 0x577984
mov ecx, dword [ebp - 0xac]
push edx
call fcn.0054e8b0
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x577984
mov edx, dword [eax]
mov ecx, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov edx, dword [edx + 4]
call edx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x74]
push 0
push 1
push 0
mov ecx, dword [eax + ecx*4]
lea eax, [ebp - 0x94]
push eax
mov edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x48]
mov esi, dword [ecx + 0x3c]
sub eax, edx
push eax
mov eax, dword [ecx + 0x44]
mov ecx, dword [edi + 0x23c]
sub eax, esi
push eax
push edx
push esi
push dword [ebp - 0xb0]
call fcn.0051dd40
mov esi, dword [ebp - 0xb8]
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xac], eax
mov eax, dword [eax]
test eax, 0x2000
jne 0x577a82
mov edx, eax
and edx, 0x40000
jne 0x577a4d
test eax, 0x3000100
jne 0x577a4d
test eax, 0x400000
je 0x577d0b
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x577d0b
mov eax, dword [eax + 0x58]
test eax, eax
je 0x577d0b
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x577d0b
mov eax, dword [ebp - 0xac]
push ecx
mov dword [esp], 0x3f19999a
push dword [edi + 0x23c]
movups xmm0, xmmword [eax + 0x4c]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], edx
push eax
lea eax, [ebp - 0xa4]
push eax
movups xmmword [ebp - 0xa4], xmm0
call fcn.0053abe0
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [eax + ecx*4]
lea ecx, [edi + 0x350]
add eax, 0x4c
push eax
call fcn.0051a690
mov dword [edi + 0x380], 1
jmp 0x577d0b
test eax, 0x3000000
jne 0x577a71
test edx, edx
je 0x577a5f
mov eax, 0x310
jmp 0x577a87
test eax, 0x100
je 0x577bbd
mov eax, 0x350
jmp 0x577a87
mov dword [ebp - 0xb4], 2
mov eax, 0x3d0
jmp 0x577a91
mov eax, 0x2d0
mov dword [ebp - 0xb4], 0
add eax, edi
mov dword [ebp - 0xac], eax
je 0x577bbd
push 0
mov ecx, eax
call fcn.00519860
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x577bb7
mov ecx, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.004160b0
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x48], eax
call fcn.004160a0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x44], eax
movups xmm0, xmmword [ebp - 0x50]
mov eax, dword [ecx + edx*4]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0xb0], eax
test byte [eax], 8
je 0x577b43
movups xmm0, xmmword [eax + 0x4c]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 0x48]
inc ecx
sub eax, dword [ebp - 0x50]
add eax, ecx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x40]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x1c], ecx
sub ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax + 0x4c], xmm0
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + edx*4]
push 0
push 1
push 0
movups xmm0, xmmword [eax + 0x4c]
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x20]
psrldq xmm0, 4
movd edx, xmm0
sub edx, dword [ebp - 0xb4]
sub eax, edx
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0xc4]
mov ecx, dword [edi + 0x23c]
call fcn.0051dc40
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xac]
add eax, 0x4c
push eax
call fcn.0051a690
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x30], 1
mov ecx, dword [ebp - 0xa8]
mov eax, dword [esi + 0x74]
mov eax, dword [eax + ecx*4]
test dword [eax], 0x2000000
je 0x577d0b
lea ecx, [edi + 0x410]
push 0
call fcn.00519860
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x577d0b
mov ecx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004160b0
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x28], eax
call fcn.004160a0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xac], eax
test byte [eax], 8
je 0x577c6f
movups xmm0, xmmword [eax + 0x4c]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 0x28]
inc ecx
sub eax, dword [ebp - 0x30]
add eax, ecx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x40]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x1c], ecx
sub ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax + 0x4c], xmm0
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x60]
add ecx, 2
movups xmm0, xmmword [eax + 0x4c]
push 0
push 1
movups xmmword [ebp - 0x40], xmm0
push 0
movd eax, xmm0
add eax, ecx
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x60]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
add eax, 2
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x74]
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [eax + edx*4]
movups xmmword [eax + 0x4c], xmm0
mov ecx, dword [edi + 0x23c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0xc4]
call fcn.0051dc40
mov eax, dword [ebp - 0x3c]
lea ecx, [edi + 0x410]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0051a690
mov dword [edi + 0x440], 1
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x74]
sub eax, edx
inc dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa8]
sar eax, 2
cmp ecx, eax
jl 0x577670
mov ecx, dword [edi + 0x23c]
test ecx, ecx
je 0x577d4a
cmp dword [edi + 0x250], 0
jne 0x577d4a
push 0
push dword [0x66c1f8]
call fcn.0051cd60
mov ecx, edi
call fcn.00529e40
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret