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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x100b60c0]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x10123f50]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x199c]
mov dword [esp + 0x24], ecx
mov byte [eax + 0x7c], 1
mov eax, dword [edi + 0x199c]
mov dword [esp + 0x88], eax
cmp byte [eax + 0x7f], 0
je 0x1005c977
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret
mov eax, edx
xorps xmm3, xmm3
shr eax, 1
and al, 1
mov dword [esp + 0x44], eax
jne 0x1005c9a1
test edx, 0x400
jne 0x1005c9a1
movss xmm1, dword [edi + 0x1544]
xorps xmm0, xmm0
movss dword [esp + 0x2c], xmm1
jmp 0x1005c9b7
movss xmm0, dword [edi + 0x1544]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [edi + 0x1548]
movss dword [esp + 0x28], xmm0
test esi, esi
jne 0x1005c9e2
mov esi, ecx
cmp ecx, 0xffffffff
jae 0x1005c9e2
mov cl, byte [esi]
test cl, cl
je 0x1005c9de
cmp cl, 0x23
jne 0x1005c9d8
cmp byte [esi + 1], cl
je 0x1005c9de
inc esi
cmp esi, 0xffffffff
jb 0x1005c9c8
mov ecx, dword [esp + 0x24]
movss xmm2, dword [edi + 0x18bc]
cmp ecx, esi
je 0x1005ca3a
movss xmm3, dword [0x100a9d10]
lea eax, [esp + 0x80]
push 0
push esi
push ecx
push ecx
mov ecx, dword [edi + 0x18b8]
mov dword [esp], 0xbf800000
push eax
call fcn.100478f0
movss xmm0, dword [esp + 0x80]
addss xmm0, dword [0x100a9bc4]
movss xmm2, dword [esp + 0x84]
cvttss2si eax, xmm0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movss xmm1, dword [esp + 0x28]
mov eax, dword [esp + 0x88]
movaps xmm0, xmm1
movss xmm7, dword [0x100a9c24]
mov ecx, dword [edi + 0x199c]
mulss xmm1, xmm7
maxss xmm0, dword [eax + 0xf0]
movss xmm4, dword [eax + 0xec]
addss xmm1, xmm2
movss dword [esp + 0x94], xmm2
movss dword [esp + 0x90], xmm3
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [edi + 0x1548]
addss xmm0, xmm0
addss xmm0, dword [edi + 0x18bc]
minss xmm4, xmm0
maxss xmm4, xmm1
movss xmm1, dword [ecx + 0x218]
subss xmm1, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x1c0]
test ecx, ecx
je 0x1005cb07
mov edx, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
mov eax, dword [edi + 0x199c]
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [eax + 0x1c0]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mulss xmm1, dword [eax + ecx*4]
mov eax, dword [edi + 0x199c]
addss xmm1, xmm0
subss xmm1, dword [eax + 0x3c]
mov eax, dword [esp + 0x88]
cmp byte [esp + 0x44], 0
movaps xmm0, xmm4
addss xmm0, dword [eax + 0xcc]
addss xmm1, dword [eax + 0xc]
movss xmm6, dword [eax + 0xc8]
movss xmm2, dword [eax + 0xcc]
movss xmm5, dword [esp + 0x2c]
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x30], xmm6
movss dword [esp + 0x50], xmm6
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x58], xmm1
movss dword [esp + 0x5c], xmm0
je 0x1005cba5
movss xmm0, dword [eax + 0x3c]
mulss xmm0, dword [0x100a9b90]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x100a9bcc]
subss xmm6, xmm0
addss xmm0, xmm1
movss dword [esp + 0x30], xmm6
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x100a9c44]
movss dword [esp + 0x50], xmm6
jmp 0x1005cbac
movaps xmm0, xmm5
mulss xmm0, xmm7
movss xmm1, dword [edi + 0x18bc]
addss xmm0, xmm1
movss dword [esp + 0x48], xmm0
xorps xmm0, xmm0
comiss xmm3, xmm0
jbe 0x1005cbd0
mulss xmm5, xmm7
addss xmm5, xmm3
jmp 0x1005cbd3
xorps xmm5, xmm5
addss xmm5, xmm1
movss dword [esp + 0x84], xmm4
movss xmm1, dword [esp + 0x4c]
lea ecx, [esp + 0x80]
movss dword [esp + 0x80], xmm5
call fcn.1000ea30
cmp byte [esp + 0x44], 0
movaps xmm0, xmmword [esp + 0x50]
jne 0x1005cc44
movss xmm0, dword [edi + 0x1554]
addss xmm5, xmm6
movss xmm1, dword [esp + 0x28]
addss xmm0, xmm0
movss dword [esp + 0x60], xmm6
movss dword [esp + 0x64], xmm1
addss xmm0, xmm5
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x6c], xmm0
movaps xmm0, xmmword [esp + 0x60]
mov eax, dword [esp + 0x18]
movaps xmmword [esp + 0x60], xmm0
test eax, 0x100
je 0x1005cc72
mov edx, eax
mov byte [esp + 0x74], 1
shr edx, 8
and edx, 0xffffff01
mov byte [esp + 0xe], 1
mov dword [esp + 0x1c], edx
jmp 0x1005cdb0
mov ecx, dword [0x10123f50]
mov dword [esp + 0x1c], ecx
cmp dword [ecx + 0x1aa8], 0
mov edx, dword [ecx + 0x199c]
mov dword [esp + 0x78], edx
mov edx, dword [edx + 0x158]
je 0x1005cd36
test byte [ecx + 0x1aa8], 1
je 0x1005ccd2
mov al, byte [ecx + 0x1aa4]
mov ecx, edx
mov dword [esp + 0x74], eax
movzx eax, al
push eax
push dword [esp + 0x14]
call fcn.1000cb10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x1aa8], 0
jmp 0x1005cd55
push 0xffffffffffffffff
push dword [esp + 0x14]
mov ecx, edx
call fcn.1000ca40
cmp eax, 0xffffffff
jne 0x1005cd1d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov al, byte [eax + 0x1aa4]
mov ecx, dword [ecx + 0x158]
mov dword [esp + 0x74], eax
movzx eax, al
push eax
push dword [esp + 0x14]
call fcn.1000cb10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x1aa8], 0
jmp 0x1005cd55
test eax, eax
mov eax, dword [esp + 0x1c]
setne cl
mov dword [esp + 0x74], ecx
mov dword [eax + 0x1aa8], 0
jmp 0x1005cd55
shr eax, 5
mov ecx, edx
and eax, 1
push eax
push dword [esp + 0x14]
call fcn.1000ca40
test eax, eax
mov eax, dword [esp + 0x1c]
setne cl
mov dword [esp + 0x74], ecx
cmp byte [eax + 0x2d0c], 0
mov edx, dword [esp + 0x18]
je 0x1005cd99
test dl, 0x10
jne 0x1005cd99
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
movzx ecx, cl
mov dword [esp + 0x78], 1
mov eax, dword [eax + 0x100]
sub eax, dword [edx + 0x2d2c]
cmp eax, dword [edx + 0x2d30]
mov edx, dword [esp + 0x18]
cmovl ecx, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
mov eax, edx
mov byte [esp + 0xe], cl
shr eax, 8
and al, 1
mov byte [esp + 0x1c], al
test cl, cl
je 0x1005cde1
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x1b0c], 0
jne 0x1005cde1
and eax, 0x2008
cmp eax, 0x2000
jne 0x1005cde1
mov edx, dword [esp + 0x88]
mov ecx, dword [edx + 0x104]
mov eax, dword [edx + 0x100]
bts ecx, eax
mov dword [edx + 0x104], ecx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x60]
push 0
call fcn.1000eb40
mov ecx, dword [esp + 0x8c]
add esp, 4
movaps xmm0, xmmword [esp + 0x50]
or dword [ecx + 0x10c], 2
movups xmmword [ecx + 0x120], xmm0
test al, al
jne 0x1005ced6
mov eax, dword [esp + 0x74]
test al, al
je 0x1005d6ae
test byte [esp + 0x18], 8
jne 0x1005d6ae
mov ecx, dword [0x10123f50]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov edx, dword [ecx + 0x199c]
lea esi, [edx + 0x1c4]
mov byte [edx + 0x7c], 1
mov eax, dword [ecx + 0x199c]
movss xmm0, dword [ecx + 0x156c]
addss xmm0, dword [eax + 0x1b4]
movss dword [eax + 0x1b4], xmm0
addss xmm0, dword [eax + 0xc]
addss xmm0, dword [eax + 0x1bc]
movss dword [eax + 0xc8], xmm0
inc dword [edx + 0x100]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x1005ceb0
inc ecx
test edi, edi
je 0x1005ce9e
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1005cea3
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001f340
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x74]
inc dword [esi]
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov edx, 0x440
mov eax, ecx
and eax, 4
mov dword [esp + 0x80], eax
mov eax, 0x400
cmove edx, eax
mov eax, ecx
and eax, 0x40
mov dword [esp + 0x78], eax
je 0x1005cf0f
mov eax, ecx
and eax, 0x80
or eax, 0x400
shr eax, 6
or edx, eax
mov al, cl
lea ecx, [esp + 0x60]
and al, 1
mov byte [esp + 0x17], al
mov eax, edx
or eax, 0x1000
cmp byte [esp + 0x1c], 0
cmovne eax, edx
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [esp + 0x17]
push eax
call fcn.1004b2b0
mov edx, dword [0x10123f50]
xor cl, cl
add esp, 0xc
cmp byte [esp + 0x1c], cl
jne 0x1005d114
test al, al
je 0x1005d039
mov eax, dword [esp + 0x18]
test al, 0xc0
je 0x1005cf73
mov ecx, dword [esp + 0x10]
cmp dword [edi + 0x1ab4], ecx
je 0x1005cf73
xor cl, cl
jmp 0x1005cf75
mov cl, 1
test al, al
jns 0x1005d00b
movss xmm2, dword [esp + 0x60]
mov eax, dword [edx + 0x199c]
movaps xmm3, xmm2
addss xmm3, dword [esp + 0x48]
movss xmm1, dword [edx + 0x1564]
add eax, 0x1d0
movss xmm4, dword [esp + 0x64]
movss xmm5, dword [esp + 0x6c]
movss xmm0, dword [edx + 0x1568]
maxss xmm2, dword [eax]
minss xmm3, dword [eax + 8]
maxss xmm4, dword [eax + 4]
minss xmm5, dword [eax + 0xc]
subss xmm2, xmm1
addss xmm3, xmm1
movss xmm1, dword [edx + 0xe0]
subss xmm4, xmm0
addss xmm5, xmm0
comiss xmm1, xmm2
jb 0x1005d007
movss xmm0, dword [edx + 0xe4]
comiss xmm0, xmm4
jb 0x1005d007
comiss xmm3, xmm1
jbe 0x1005d007
comiss xmm5, xmm0
jbe 0x1005d007
cmp byte [edi + 0x1b0f], 0
jne 0x1005d007
mov al, 1
jmp 0x1005d009
xor al, al
or cl, al
cmp dword [esp + 0x78], 0
je 0x1005d018
or cl, byte [edi + 0x3dd]
cmp byte [edi + 0x1d08], 0
mov eax, dword [esp + 0x74]
je 0x1005d03d
test al, al
movzx ecx, cl
mov dword [esp + 0x78], 0
cmovne ecx, dword [esp + 0x78]
jmp 0x1005d03d
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
cmp dword [edi + 0x1ab0], edx
mov edx, dword [0x10123f50]
jne 0x1005d09b
cmp byte [edi + 0x1b29], 0
je 0x1005d09b
cmp dword [edi + 0x1b34], 0
jne 0x1005d09b
test al, al
je 0x1005d09b
mov byte [edx + 0x1b29], 0
mov cl, 1
cmp byte [edx + 0x1b29], 0
jne 0x1005d087
cmp byte [edx + 0x1b11], 0
jne 0x1005d087
mov byte [esp + 0x16], 0
jmp 0x1005d091
mov edx, dword [0x10123f50]
mov byte [esp + 0x16], cl
mov al, byte [esp + 0x16]
mov byte [edx + 0x1b10], al
mov eax, dword [esp + 0x10]
cmp dword [edi + 0x1ab0], eax
mov eax, dword [esp + 0x74]
jne 0x1005d0e7
cmp byte [edi + 0x1b29], 0
je 0x1005d0e7
cmp dword [edi + 0x1b34], 1
jne 0x1005d0e7
test al, al
jne 0x1005d0e7
mov byte [edx + 0x1b29], al
test al, al
jne 0x1005d0dd
cmp byte [edx + 0x1b11], al
jne 0x1005d0dd
xor cl, cl
mov byte [edx + 0x1b10], cl
jmp 0x1005d0eb
mov cl, 1
mov byte [edx + 0x1b10], cl
jmp 0x1005d0eb
test cl, cl
je 0x1005d114
mov edx, dword [esp + 0x88]
test al, al
sete al
mov byte [esp + 0xe], al
mov ecx, dword [edx + 0x158]
movzx eax, al
push eax
push dword [esp + 0x14]
call fcn.1000cb10
mov edx, dword [0x10123f50]
cmp dword [esp + 0x80], 0
je 0x1005d14e
mov ecx, dword [edx + 0x199c]
mov eax, dword [edx + 0x19a8]
cmp eax, dword [ecx + 0x108]
jne 0x1005d139
mov byte [edx + 0x19ac], 1
mov eax, dword [edx + 0x19bc]
cmp eax, dword [ecx + 0x108]
jne 0x1005d14e
mov byte [edx + 0x19cd], 1
cmp byte [esp + 0x23], 0
mov al, byte [esp + 0xf]
je 0x1005d164
test al, al
je 0x1005d164
mov ecx, 0x1a
jmp 0x1005d16e
xor ecx, ecx
test al, al
setne cl
add ecx, 0x18
movss xmm7, dword [0x100a9bcc]
movaps xmm1, xmm7
call fcn.1000c960
cmp byte [esp + 0x44], 0
movss xmm1, dword [esp + 0x48]
movss xmm2, dword [esp + 0x30]
movaps xmm0, xmm1
movss xmm4, dword [esp + 0x28]
addss xmm0, xmm2
movss xmm3, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
movss dword [esp + 0x88], xmm0
movaps xmm0, xmm4
addss xmm0, xmm3
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x8c], xmm0
je 0x1005d3ef
push dword [esp + 0x5c]
movss xmm2, dword [edi + 0x154c]
mov dl, 1
push dword [esp + 0x5c]
mov ecx, eax
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.1000d770
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push 2
call fcn.1000de70
movss xmm0, dword [esp + 0x40]
xor ecx, ecx
addss xmm0, dword [esp + 0x44]
movss xmm1, dword [0x100a9bcc]
add esp, 0x14
cmp byte [esp + 0xe], cl
setne cl
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esp + 0x7c], xmm0
push dword [esp + 0x7c]
lea ecx, [ecx*2 + 1]
push dword [esp + 0x7c]
call fcn.1000dad0
add esp, 8
cmp byte [edi + 0x2d0c], 0
je 0x1005d342
mov ax, word [0x100a6da8]
lea edx, [esp + 0x78]
mov word [esp + 0x74], ax
lea ecx, [esp + 0x88]
mov al, byte [0x100a6daa]
mov byte [esp + 0x76], al
lea eax, [esp + 0x7b]
push eax
mov dword [esp + 0x7c], 0x23230a
call fcn.1001c780
mov edx, dword [esp + 0x28]
or eax, 0xffffffff
add esp, 4
mov dword [esp + 0x80], 0
test esi, esi
mov dword [esp + 0x84], 0
mov edi, edx
cmove esi, eax
cmp edx, esi
jae 0x1005d2c8
mov cl, byte [edi]
test cl, cl
je 0x1005d2c8
cmp cl, 0x23
jne 0x1005d2c3
cmp byte [edi + 1], cl
je 0x1005d2c8
inc edi
cmp edi, esi
jb 0x1005d2b3
mov eax, edi
sub eax, edx
je 0x1005d325
mov esi, dword [0x10123f50]
lea eax, [esp + 0x80]
push 0
push eax
lea eax, [esp + 0x98]
mov ecx, dword [esi + 0x199c]
push eax
push edi
push edx
mov ecx, dword [ecx + 0x26c]
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0xa0]
call fcn.1000d4e0
add esp, 0x18
cmp byte [esi + 0x2d0c], 0
je 0x1005d325
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x88]
push edi
call fcn.1001c780
add esp, 4
lea eax, [esp + 0x76]
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0x8c]
call fcn.1001c780
add esp, 4
jmp 0x1005d601
mov edx, dword [esp + 0x24]
or eax, 0xffffffff
test esi, esi
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov edi, edx
cmove esi, eax
cmp edx, esi
jae 0x1005d385
nop word [eax + eax]
mov cl, byte [edi]
test cl, cl
je 0x1005d385
cmp cl, 0x23
jne 0x1005d380
cmp byte [edi + 1], cl
je 0x1005d385
inc edi
cmp edi, esi
jb 0x1005d370
mov eax, edi
sub eax, edx
je 0x1005d601
mov esi, dword [0x10123f50]
lea eax, [esp + 0x80]
push 0
push eax
lea eax, [esp + 0x98]
mov ecx, dword [esi + 0x199c]
push eax
push edi
push edx
mov ecx, dword [ecx + 0x26c]
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0xa0]
call fcn.1000d4e0
add esp, 0x18
cmp byte [esi + 0x2d0c], 0
je 0x1005d601
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x88]
push edi
call fcn.1001c780
add esp, 4
jmp 0x1005d601
cmp byte [esp + 0xf], 0
jne 0x1005d401
cmp byte [esp + 0x17], 0
je 0x1005d497
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x54]
push 0xf
mov dword [esp + 0x88], ecx
mov ecx, dword [edx + 0x199c]
push ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [ecx + 0x26c]
mov dword [esp], 0
push dword [esp + 0x80]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.10044bd0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push 2
call fcn.1000de70
mov edx, dword [0x10123f50]
add esp, 4
movss xmm1, dword [esp + 0x48]
movss xmm2, dword [esp + 0x30]
movss xmm3, dword [esp + 0x4c]
movss xmm4, dword [esp + 0x28]
movss xmm7, dword [0x100a9bcc]
test dword [esp + 0x18], 0x200
je 0x1005d55b
movss xmm0, dword [edi + 0x18bc]
xor ecx, ecx
mulss xmm0, dword [0x100a9b90]
mulss xmm1, dword [0x100a9b90]
addss xmm0, xmm3
addss xmm1, xmm2
addss xmm0, xmm4
movss dword [esp + 0x90], xmm1
movaps xmm1, xmm7
movss dword [esp + 0x94], xmm0
call fcn.1000c960
mov ecx, eax
mov eax, dword [edx + 0x199c]
mov dword [esp + 0x80], ecx
mov eax, dword [eax + 0x26c]
mov dword [esp + 0x78], eax
test ecx, 0xff000000
je 0x1005d5c4
movss xmm2, dword [edx + 0x18bc]
xorps xmm3, xmm3
mulss xmm2, dword [0x100a9b78]
push 7
push ecx
lea ecx, [esp + 0x98]
mov dword [esp], 0x40afede0
push ecx
mov ecx, eax
call fcn.100442a0
mov eax, dword [esp + 0x78]
mov ecx, eax
push dword [esp + 0x80]
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.10043d60
mov eax, dword [esp + 0x78]
mov dword [eax + 0x54], 0
jmp 0x1005d5c4
cmp byte [esp + 0x1c], 0
jne 0x1005d5c4
movss xmm0, dword [esp + 0x2c]
xor ecx, ecx
cmp byte [esp + 0xe], cl
addss xmm0, xmm2
movss xmm1, dword [0x100a9ba4]
setne cl
movss dword [esp + 0x90], xmm0
movss xmm0, dword [edi + 0x18bc]
lea ecx, [ecx*2 + 1]
mulss xmm0, dword [0x100a9b68]
addss xmm0, xmm3
addss xmm0, xmm4
movss dword [esp + 0x94], xmm0
push dword [esp + 0x94]
push dword [esp + 0x94]
call fcn.1000dad0
add esp, 8
cmp byte [edi + 0x2d0c], 0
je 0x1005d5e3
push 0
mov edx, 0x1009f5e0
lea ecx, [esp + 0x8c]
call fcn.1001c780
add esp, 4
push dword [esp + 0x8c]
mov ecx, dword [esp + 0x28]
mov edx, esi
push dword [esp + 0x8c]
push 0
call fcn.1000d3a0
add esp, 0xc
mov al, byte [esp + 0xe]
test al, al
je 0x1005d6ae
test byte [esp + 0x18], 8
jne 0x1005d6ae
mov ecx, dword [0x10123f50]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov edx, dword [ecx + 0x199c]
lea esi, [edx + 0x1c4]
mov byte [edx + 0x7c], 1
mov eax, dword [ecx + 0x199c]
movss xmm0, dword [ecx + 0x156c]
addss xmm0, dword [eax + 0x1b4]
movss dword [eax + 0x1b4], xmm0
addss xmm0, dword [eax + 0xc]
addss xmm0, dword [eax + 0x1bc]
movss dword [eax + 0xc8], xmm0
inc dword [edx + 0x100]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jne 0x1005d69c
inc ecx
test edi, edi
je 0x1005d68a
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1005d68f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001f340
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
mov dword [ecx + edx*4], eax
mov al, byte [esp + 0xe]
inc dword [esi]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret