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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10238634]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [0x1023bb74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x64], esi
call fcn.10042660
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
mov edi, eax
mov dword [ebp - 0x7c], edi
sete cl
mov byte [ebp - 0x5a], cl
test eax, eax
jne 0x1003d02c
push dword [ebp - 0x78]
push dword [ebp - 0x9c]
call fcn.10041030
mov edi, eax
add esp, 8
mov dword [ebp - 0x7c], edi
mov eax, dword [ebp - 0x78]
mov ecx, eax
mov edx, eax
and ecx, 0xc0200
or edx, 6
cmp ecx, 0xc0200
lea ecx, [esi + 0x1b88]
cmovne edx, eax
mov dword [ebp - 0x6c], ecx
cmp dword [ecx], 0
mov eax, dword [esi + 0x1b48]
mov dword [ebp - 0x84], eax
mov eax, dword [edi + 0x268]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x94], eax
jne 0x1003d07b
cmp byte [esi + 0x1b55], 0
je 0x1003d07b
mov al, 1
jmp 0x1003d07d
xor al, al
mov byte [edi + 0x9e], al
mov eax, dword [ebp - 0x84]
dec eax
cmp dword [edi + 0x268], eax
mov ah, byte [edi + 0xb5]
setl al
mov byte [ebp - 0x55], ah
mov byte [ebp - 0x90], al
test edx, 0x4000000
je 0x1003d0e8
mov eax, dword [esi + 0x1cf8]
lea esi, [eax + eax*8]
mov eax, dword [ebp - 0x64]
mov edx, dword [eax + 0x1cf4]
mov eax, dword [edi + 0xa8]
cmp edi, dword [edx + esi*4 + 4]
setne cl
cmp eax, dword [edx + esi*4]
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
setne al
mov ah, byte [ebp - 0x55]
or cl, al
mov al, byte [ebp - 0x90]
or al, cl
mov byte [ebp - 0x90], al
test al, al
jne 0x1003d0f8
test ah, ah
jg 0x1003d0f8
mov byte [edi + 0x9c], al
jmp 0x1003d122
mov byte [edi + 0x9c], 1
mov al, byte [edi + 0xb8]
or al, 8
mov byte [edi + 0xb8], al
mov al, byte [edi + 0xba]
or byte [edi + 0xb9], 8
or al, 8
mov byte [edi + 0xba], al
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x94], eax
je 0x1003d16c
mov dword [edi + 0x14], edx
mov dword [edi + 0x268], eax
xor eax, eax
movsd xmm0, qword [esi + 0x1b40]
cvtpd2ps xmm0, xmm0
movss dword [edi + 0x26c], xmm0
mov word [edi + 0xa4], ax
mov ax, word [esi + 0x1ba0]
mov word [edi + 0xa6], ax
inc dword [esi + 0x1ba0]
jmp 0x1003d172
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx], 0
jne 0x1003d17e
xor eax, eax
jmp 0x1003d18a
mov eax, dword [esi + 0x1b90]
mov esi, dword [ecx]
mov eax, dword [eax + esi*4 - 4]
mov esi, dword [ebp - 0x94]
cmp esi, dword [ebp - 0x84]
je 0x1003d1a9
and edx, 0x5000000
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x74], edx
jmp 0x1003d1b2
mov eax, dword [edi + 0x328]
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0xcc]
lea edx, [edi + 0xcc]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x1003d223
mov ecx, dword [edx + 4]
cmp eax, ecx
jne 0x1003d20c
inc eax
mov dword [ebp - 0x6c], eax
test ecx, ecx
je 0x1003d1e8
mov eax, ecx
cdq
sub eax, edx
lea edx, [edi + 0xcc]
sar eax, 1
add eax, ecx
jmp 0x1003d1ed
mov eax, 8
mov ecx, dword [ebp - 0x6c]
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.100506b0
mov eax, dword [edi + 0xcc]
lea edx, [edi + 0xcc]
mov dword [ebp - 0x78], eax
mov ecx, dword [edx + 8]
mov esi, dword [ebp - 0x78]
mov eax, dword [edi + 0x10]
mov dword [ecx + esi*4], eax
mov esi, dword [ebp - 0x64]
inc dword [edx]
lea ecx, [esi + 0x1b88]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x1003d25d
inc edx
mov dword [ebp - 0x6c], edx
test eax, eax
je 0x1003d241
cdq
sub eax, edx
mov edx, dword [ebp - 0x6c]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1003d246
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.100506b0
mov edx, dword [esi + 0x1b88]
lea ecx, [esi + 0x1b88]
mov eax, dword [ecx + 8]
mov dword [eax + edx*4], edi
inc dword [ecx]
mov dword [esi + 0x1bac], edi
mov ecx, dword [0x1023bb74]
mov eax, dword [ecx + 0x1bac]
movzx eax, word [eax + 0xcc]
mov word [edi + 0x1e0], ax
movzx eax, word [ecx + 0x1ca4]
mov word [edi + 0x1e2], ax
movzx eax, word [ecx + 0x1cb0]
mov word [edi + 0x1e4], ax
movzx eax, word [ecx + 0x1cbc]
mov word [edi + 0x1e6], ax
movzx eax, word [ecx + 0x1cc8]
mov word [edi + 0x1e8], ax
movzx eax, word [ecx + 0x1ce0]
mov word [edi + 0x1ea], ax
movzx eax, word [ecx + 0x1cf8]
mov ecx, dword [ebp - 0x60]
mov word [edi + 0x1ec], ax
mov eax, ecx
and eax, 0x4000000
mov dword [esi + 0x1bac], 0
mov dword [ebp - 0x78], eax
je 0x1003d322
mov eax, dword [esi + 0x1cf8]
lea ecx, [esi + 0x1cf8]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x1cf4]
mov dword [eax + edx*4 + 4], edi
lea esi, [eax + edx*4]
push esi
call fcn.10050480
mov eax, dword [esi]
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov dword [edi + 0xa8], eax
cmp byte [ebp - 0x55], 0
jle 0x1003d33a
test ecx, 0x1000000
jne 0x1003d33a
mov dword [edi + 0x33c], 0
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x84]
je 0x1003d3c7
mov edx, dword [ebp - 0x74]
mov dword [edi + 0x328], edx
mov dword [edi + 0x334], edi
mov dword [edi + 0x330], edi
mov dword [edi + 0x32c], edi
test edx, edx
je 0x1003d39d
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x1003d381
mov eax, dword [edx + 0x32c]
mov dword [edi + 0x32c], eax
test ecx, 0x8000000
jne 0x1003d39d
test ecx, 0x5000000
je 0x1003d39d
mov eax, dword [edx + 0x330]
mov dword [edi + 0x330], eax
test dword [edi + 0x14], 0x800000
je 0x1003d3c7
mov ecx, edi
nop dword [eax + eax]
mov eax, dword [ecx + 0x328]
mov ecx, eax
mov dword [edi + 0x334], ecx
test dword [eax + 0x14], 0x800000
jne 0x1003d3b0
test byte [esi + 0x1c30], 1
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 0x56], 0
je 0x1003d47f
mov ecx, dword [esi + 0x1c34]
movsx eax, byte [edi + 0xb8]
and eax, ecx
setne byte [ebp - 0x57]
test ecx, eax
je 0x1003d46e
movss xmm1, dword [esi + 0x1c4c]
movss xmm0, dword [esi + 0x1c48]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x10215b68]
jbe 0x1003d46e
mov eax, dword [esi + 0x1c40]
mov ecx, dword [esi + 0x1c44]
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], ecx
mov eax, dword [esi + 0x1c48]
mov ecx, dword [esi + 0x1c4c]
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], ecx
movzx ecx, byte [edi + 0xb8]
mov eax, dword [edi + 0xb8]
and ecx, 0xf1
and eax, 0xffffff00
or ecx, eax
mov dword [edi + 0xb8], ecx
jmp 0x1003d47f
push ecx
lea eax, [esi + 0x1c40]
push eax
push edi
call fcn.1004e200
add esp, 0xc
mov eax, dword [esi + 0x1c30]
xorps xmm1, xmm1
test al, 2
je 0x1003d4e3
movsx eax, byte [edi + 0xb9]
lea ecx, [esi + 0x1c50]
mov edx, dword [esi + 0x1c38]
and eax, edx
je 0x1003d4b2
movss xmm0, dword [ecx]
comiss xmm0, xmm1
jbe 0x1003d4b2
mov byte [ebp - 0x58], 1
jmp 0x1003d4ba
mov byte [ebp - 0x58], 0
test eax, eax
je 0x1003d4cb
movss xmm0, dword [esi + 0x1c54]
comiss xmm0, xmm1
mov byte [ebp - 0x56], 1
ja 0x1003d4cf
mov byte [ebp - 0x56], 0
push edx
push ecx
push edi
call fcn.1004e320
mov eax, dword [esi + 0x1c30]
add esp, 0xc
xorps xmm1, xmm1
test al, al
jns 0x1003d51c
movss xmm0, dword [esi + 0x1c60]
comiss xmm0, xmm1
jb 0x1003d500
movss dword [edi + 0x74], xmm0
mov dword [edi + 0x7c], 0
movss xmm0, dword [esi + 0x1c64]
comiss xmm0, xmm1
jb 0x1003d51c
movss dword [edi + 0x78], xmm0
mov dword [edi + 0x80], 0
test byte [esi + 0x1c30], 4
je 0x1003d539
mov eax, dword [esi + 0x1c58]
mov ecx, dword [esi + 0x1c5c]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
jmp 0x1003d555
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x84]
je 0x1003d555
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov ecx, dword [esi + 0x1c30]
test cl, 8
je 0x1003d5b0
mov edx, dword [esi + 0x1c3c]
mov al, byte [esi + 0x1c68]
mov byte [ebp - 0x59], al
test edx, edx
je 0x1003d57e
movsx eax, byte [edi + 0xba]
test edx, eax
je 0x1003d5b0
movzx ecx, byte [edi + 0xba]
mov eax, dword [edi + 0xb8]
and ecx, 0xf1
shl ecx, 0x10
and eax, 0xff00ffff
or ecx, eax
mov al, byte [ebp - 0x59]
mov dword [edi + 0xb8], ecx
mov byte [edi + 0x99], al
mov ecx, dword [esi + 0x1c30]
test cl, 0x20
je 0x1003d5be
push edi
call fcn.10042830
add esp, 4
cmp byte [edi + 0x9c], 0
je 0x1003d5ea
mov al, byte [edi + 0xb8]
and al, 0xf7
mov byte [edi + 0xb8], al
mov al, byte [edi + 0xba]
and byte [edi + 0xb9], 0xf7
and al, 0xf7
mov byte [edi + 0xba], al
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x84]
je 0x1003ee7b
mov eax, dword [ebp - 0x60]
and eax, 0x3000000
mov byte [edi + 0x96], 1
cmp dword [ebp - 0xa0], 0
mov dword [ebp - 0x98], eax
setne al
mov byte [edi + 0x9f], al
mov dword [edi + 0x240], 0xff7fffff
mov dword [edi + 0x244], 0xff7fffff
mov dword [edi + 0x248], 0x7f7fffff
mov dword [edi + 0x24c], 0x7f7fffff
mov eax, dword [edi + 0xd0]
cmp eax, 1
jge 0x1003d687
test eax, eax
je 0x1003d66a
cdq
sub eax, edx
lea edx, [edi + 0xcc]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x1003d675
mov ecx, 8
lea edx, [edi + 0xcc]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.100506b0
mov dword [edi + 0xcc], 1
mov ecx, dword [edi + 0x294]
call fcn.100587e0
mov dword [edi + 0x1a8], 0xffffffff
cmp byte [edi + 0x36c], 0
je 0x1003d78b
mov byte [edi + 0x36c], 0
mov ecx, dword [edi + 0x294]
push dword [edi + 0x364]
add ecx, 0xc
call fcn.10050630
mov eax, dword [edi + 0x294]
mov ecx, dword [edi + 0x368]
add eax, 0x18
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x88], eax
cmp ecx, dword [eax + 4]
jle 0x1003d777
mov eax, dword [0x1023bb74]
test eax, eax
je 0x1003d6fe
inc dword [eax + 0x370]
push dword [0x1023bc80]
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
call dword [0x102365d8]
mov dword [ebp - 0x68], eax
add esp, 8
mov eax, dword [ebp - 0x88]
mov edx, dword [eax + 8]
test edx, edx
je 0x1003d76b
mov ecx, dword [eax]
lea ecx, [ecx + ecx*4]
shl ecx, 2
push ecx
push edx
push dword [ebp - 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1003d755
mov eax, dword [0x1023bb74]
test eax, eax
je 0x1003d755
dec dword [eax + 0x370]
push dword [0x1023bc80]
push ecx
call dword [0x102365dc]
mov eax, dword [ebp - 0x88]
add esp, 8
mov ecx, dword [ebp - 0x68]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 4], ecx
mov dword [edi + 0x368], 0
mov dword [edi + 0x364], 0
cmp dword [esi + 0x1e20], 0
je 0x1003d88a
test dword [edi + 0x14], 0x80000
jne 0x1003d88a
cmp dword [ebp - 0xa4], 0
je 0x1003d88a
mov eax, dword [edi + 0xc]
mov ecx, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x9c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003d7e0
test dl, dl
je 0x1003d7dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003d7e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003d7c0
xor eax, eax
jmp 0x1003d7e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003d88a
mov ecx, dword [ebp - 0x9c]
mov edx, dword [edi + 0x58]
mov dword [ebp - 0x6c], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x88], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d802
sub ecx, dword [ebp - 0x88]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
cmp edx, eax
jae 0x1003d871
test ecx, ecx
je 0x1003d832
mov eax, dword [0x1023bb74]
test eax, eax
je 0x1003d832
dec dword [eax + 0x370]
push dword [0x1023bc80]
push ecx
call dword [0x102365dc]
mov eax, dword [0x1023bb74]
add esp, 8
test eax, eax
je 0x1003d851
inc dword [eax + 0x370]
push dword [0x1023bc80]
push dword [ebp - 0x88]
call dword [0x102365d8]
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], eax
push eax
push dword [ebp - 0x9c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi + 0xc], eax
add esp, 0xc
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0x58], eax
lea eax, [edi + 0x38]
push eax
lea ecx, [edi + 0x30]
push ecx
push edi
call fcn.10040130
mov al, byte [edi + 0xb4]
add esp, 0xc
test al, al
jle 0x1003d8ad
dec al
mov byte [edi + 0xb4], al
mov al, byte [edi + 0xb5]
test al, al
jle 0x1003d8bf
dec al
mov byte [edi + 0xb5], al
mov al, byte [edi + 0xb6]
test al, al
jle 0x1003d8d1
dec al
mov byte [edi + 0xb6], al
cmp dword [ebp - 0xa4], 0
mov al, byte [ebp - 0x58]
mov cl, byte [ebp - 0x56]
jne 0x1003d8ef
test al, al
je 0x1003d8e8
test cl, cl
jne 0x1003d8ef
mov byte [edi + 0xb5], 1
cmp byte [ebp - 0x90], 0
mov edx, dword [ebp - 0x60]
je 0x1003d94d
test edx, 0x6000000
je 0x1003d94d
mov byte [edi + 0xb5], 1
test dl, 0x40
je 0x1003d94d
test al, al
jne 0x1003d921
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0
test cl, cl
jne 0x1003d933
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
mov ecx, dword [0x1023bb74]
mov dword [ecx + 0x1bac], edi
mov eax, dword [edi + 0x1a8]
cmp eax, 0xffffffff
je 0x1003d972
imul eax, eax, 0x228
add eax, dword [ecx + 0x1ef0]
jmp 0x1003d974
xor eax, eax
mov dword [ecx + 0x1ee4], eax
mov eax, dword [0x1023bb74]
movss xmm0, dword [eax + 0x1944]
mov eax, dword [edi + 0x328]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x1003d9a1
mulss xmm0, dword [eax + 0x28c]
mov eax, edx
movss dword [ecx + 0x1954], xmm0
and eax, 0x1000000
movss dword [ecx + 0x1940], xmm0
mov dword [ebp - 0x68], eax
je 0x1003d9c8
mov eax, dword [esi + 0x1544]
mov dword [edi + 0x54], eax
jmp 0x1003d9ef
test edx, 0x6000000
je 0x1003d9e2
test edx, 0x8000000
jne 0x1003d9e2
movss xmm0, dword [esi + 0x154c]
jmp 0x1003d9ea
movss xmm0, dword [esi + 0x1528]
movss dword [edi + 0x54], xmm0
mov eax, dword [esi + 0x151c]
mov ecx, dword [esi + 0x1520]
mov dword [edi + 0x48], eax
mov eax, edx
and eax, 0x5010000
mov dword [edi + 0x4c], ecx
cmp eax, 0x1000000
jne 0x1003da41
movss xmm0, dword [edi + 0x54]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1003da41
test edx, 0x400
je 0x1003da32
movss xmm0, dword [esi + 0x1520]
jmp 0x1003da35
xorps xmm0, xmm0
mov dword [edi + 0x48], 0
movss dword [edi + 0x4c], xmm0
movss xmm0, dword [edi + 0x48]
maxss xmm0, dword [esi + 0x1560]
maxss xmm0, dword [esi + 0x1c88]
movss dword [edi + 0x160], xmm0
mov eax, dword [esi + 0x1c8c]
mov dword [edi + 0x164], eax
test dl, 0x21
jne 0x1003dae4
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.1004e490
cmp dword [esi + 0x1bb0], edi
jne 0x1003daba
cmp dword [esi + 0x1bcc], 0
jne 0x1003daba
cmp dword [esi + 0x1bd0], 0
jne 0x1003daba
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10045120
add esp, 0xc
test al, al
je 0x1003daba
cmp byte [esi + 0x3dd], 0
je 0x1003daba
mov byte [edi + 0x9a], 1
cmp byte [edi + 0x9a], 0
je 0x1003daeb
cmp byte [edi + 0x99], 0
push edi
sete al
mov byte [edi + 0x99], al
call fcn.10045db0
push edi
call fcn.10042830
add esp, 8
jmp 0x1003daeb
mov byte [edi + 0x99], 0
lea eax, [edi + 0x38]
mov byte [edi + 0x9a], 0
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.1003fec0
mov al, byte [ebp - 0x5a]
add esp, 0xc
test byte [ebp - 0x60], 0x40
mov byte [ebp - 0x59], al
je 0x1003db49
cmp byte [edi + 0x99], 0
jne 0x1003db49
cmp byte [ebp - 0x58], 0
jne 0x1003db2c
movss xmm0, dword [ebp - 0x2c]
movss dword [edi + 0x28], xmm0
mov byte [ebp - 0x5a], 1
cmp byte [ebp - 0x56], 0
jne 0x1003dbec
movss xmm0, dword [ebp - 0x28]
movss dword [edi + 0x2c], xmm0
mov byte [ebp - 0x59], 1
jmp 0x1003dbec
mov al, byte [edi + 0xac]
test al, al
jg 0x1003db60
cmp byte [edi + 0xad], 0
jle 0x1003dbec
cmp byte [ebp - 0x58], 0
jne 0x1003db8d
test al, al
jle 0x1003db8d
cmp byte [edi + 0xaf], 0
je 0x1003db7f
movss xmm0, dword [edi + 0x28]
maxss xmm0, dword [ebp - 0x2c]
jmp 0x1003db84
movss xmm0, dword [ebp - 0x2c]
movss dword [edi + 0x28], xmm0
mov byte [ebp - 0x5a], 1
cmp byte [ebp - 0x56], 0
jne 0x1003dbbf
cmp byte [edi + 0xad], 0
jle 0x1003dbbf
cmp byte [edi + 0xaf], 0
je 0x1003dbb1
movss xmm0, dword [edi + 0x2c]
maxss xmm0, dword [ebp - 0x28]
jmp 0x1003dbb6
movss xmm0, dword [ebp - 0x28]
movss dword [edi + 0x2c], xmm0
mov byte [ebp - 0x59], 1
cmp byte [edi + 0x99], 0
jne 0x1003dbec
test dword [edi + 0x14], 0x100
mov ecx, dword [0x1023bb74]
jne 0x1003dbec
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x2eac]
jb 0x1003dbec
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2eac], eax
lea eax, [edi + 0x28]
push eax
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.100402b0
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
cmp byte [edi + 0x99], 0
je 0x1003dc47
cmp dword [ebp - 0x68], 0
jne 0x1003dc47
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.1004e490
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [eax + 4]
movss dword [ebp - 0x6c], xmm0
jmp 0x1003dc55
mov ecx, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x70]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [0x1023bb74]
test cl, 1
je 0x1003dc76
xorps xmm1, xmm1
jmp 0x1003dcad
mov eax, dword [0x1023bb74]
movss xmm0, dword [eax + 0x1944]
mov eax, dword [edi + 0x328]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x1003dc9d
mulss xmm0, dword [eax + 0x28c]
movss xmm1, dword [edx + 0x1554]
addss xmm1, xmm1
addss xmm1, xmm0
test ecx, 0x400
je 0x1003dcf6
mov eax, dword [0x1023bb74]
movss xmm0, dword [eax + 0x1944]
mov eax, dword [edi + 0x328]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x1003dcdc
mulss xmm0, dword [eax + 0x28c]
movss xmm2, dword [edx + 0x1554]
addss xmm0, dword [edi + 0x164]
addss xmm2, xmm2
addss xmm2, xmm0
jmp 0x1003dcf9
xorps xmm2, xmm2
cmp byte [ebp - 0x90], 0
addss xmm2, xmm1
movss dword [ebp - 0x88], xmm2
je 0x1003dd4a
mov eax, dword [ebp - 0x60]
and eax, 0xc000000
mov dword [edi + 0xb0], 0xffffffff
cmp eax, 0x4000000
jne 0x1003dd4a
cmp byte [ebp - 0x57], 0
jne 0x1003dd4a
mov eax, dword [esi + 0x1cf8]
mov ecx, dword [esi + 0x1d00]
lea edx, [eax + eax*8]
mov eax, dword [ecx + edx*4 - 0x10]
mov ecx, dword [ecx + edx*4 - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
cmp dword [ebp - 0x68], 0
je 0x1003dd9d
mov ecx, dword [ebp - 0x74]
add ecx, 0x194
mov ax, word [ecx]
mov word [edi + 0xa4], ax
lea eax, [ebp - 0x7c]
push eax
call fcn.10050360
mov edx, dword [ebp - 0x78]
mov al, byte [ebp - 0x57]
test edx, edx
jne 0x1003dda3
test al, al
jne 0x1003dda3
cmp dword [ebp - 0x98], 0x3000000
je 0x1003dda3
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx + 0xd8]
mov ecx, dword [ecx + 0xdc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x1003dda0
mov edx, dword [ebp - 0x78]
mov al, byte [ebp - 0x57]
movss xmm1, dword [edi + 0xbc]
ucomiss xmm1, dword [0x10215be8]
lahf
test ah, 0x44
jnp 0x1003de06
cmp byte [edi + 0xb5], 0
jne 0x1003de06
movss xmm0, dword [edi + 0x20]
lea eax, [ebp - 0x80]
mulss xmm0, dword [edi + 0xc4]
push 0
push eax
push edi
subss xmm1, xmm0
movss xmm0, dword [edi + 0xc0]
movss dword [ebp - 0x80], xmm1
movss xmm1, dword [edi + 0x24]
mulss xmm1, dword [edi + 0xc8]
subss xmm0, xmm1
movss dword [ebp - 0x7c], xmm0
call fcn.1004e200
add esp, 0xc
jmp 0x1003de4e
mov ecx, dword [ebp - 0x60]
test ecx, 0x10000000
jne 0x1003de36
test edx, edx
je 0x1003de1e
test al, al
jne 0x1003de1e
cmp byte [ebp - 0x55], al
jg 0x1003de36
test ecx, 0x2000000
je 0x1003de51
test al, al
jne 0x1003de51
cmp dword [ebp - 0x98], 0x3000000
je 0x1003de51
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.10041d80
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x60]
cmp byte [ebp - 0x57], 0
mov edx, dword [0x1023bb74]
movss xmm2, dword [esi + 0x15bc]
maxss xmm2, dword [esi + 0x15c4]
movss xmm3, dword [esi + 0x15c0]
mov eax, dword [edx + 0x1d0c]
maxss xmm3, dword [esi + 0x15c8]
mov eax, dword [eax]
movss xmm0, dword [eax + 8]
movss xmm6, dword [eax + 4]
movaps xmm4, xmm0
addss xmm4, dword [eax + 0x10]
movaps xmm5, xmm6
movss dword [ebp - 0x6c], xmm0
addss xmm5, dword [eax + 0xc]
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x44], xmm6
movss dword [ebp - 0x38], xmm4
movss dword [ebp - 0x3c], xmm5
movss xmm7, dword [eax + 0x14]
addss xmm7, dword [eax + 0x1c]
subss xmm7, xmm2
addss xmm2, dword [eax + 0x14]
movss dword [ebp - 0x7c], xmm7
movss xmm7, dword [eax + 0x18]
addss xmm7, dword [eax + 0x20]
movss xmm0, dword [ebp - 0x7c]
movss dword [ebp - 0x24], xmm2
movss dword [ebp - 0x1c], xmm0
subss xmm7, xmm3
addss xmm3, dword [eax + 0x18]
movss dword [ebp - 0x18], xmm7
movss dword [ebp - 0x20], xmm3
jne 0x1003dfbb
cmp dword [ebp - 0x68], 0
jne 0x1003dfbb
cmp byte [edi + 0xac], 0
jg 0x1003dfbb
cmp byte [edi + 0xad], 0
jg 0x1003dfbb
subss xmm5, xmm6
xorps xmm0, xmm0
comiss xmm5, xmm0
jbe 0x1003dfbb
subss xmm4, dword [ebp - 0x6c]
comiss xmm4, xmm0
jbe 0x1003dfbb
cmp byte [edx + 0xb5], 0
movss xmm1, dword [edi + 0x24]
je 0x1003df84
test byte [edi + 0x14], 1
jne 0x1003df84
movss xmm0, dword [edx + 0x1944]
mov eax, dword [edi + 0x328]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x1003df74
mulss xmm0, dword [eax + 0x28c]
movss xmm1, dword [edx + 0x1554]
addss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [edi + 0x1c]
subss xmm3, xmm1
subss xmm2, dword [edi + 0x20]
comiss xmm3, xmm0
ja 0x1003df9e
movaps xmm3, xmm7
minss xmm3, xmm0
movss xmm0, dword [edi + 0x18]
comiss xmm2, xmm0
ja 0x1003dfb1
movss xmm2, dword [ebp - 0x7c]
minss xmm2, xmm0
movss dword [edi + 0x18], xmm2
movss dword [edi + 0x1c], xmm3
cmp dword [ebp - 0x68], 0
cvttss2si eax, dword [edi + 0x18]
movd xmm0, eax
cvttss2si eax, dword [edi + 0x1c]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
je 0x1003dfed
movss xmm2, dword [esi + 0x1540]
jmp 0x1003e00d
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x1003e005
movss xmm2, dword [esi + 0x1548]
jmp 0x1003e00d
movss xmm2, dword [esi + 0x1524]
xor dl, dl
movss dword [edi + 0x50], xmm2
mov dword [ebp - 0x68], edx
cmp byte [ebp - 0x90], dl
je 0x1003e048
test ecx, 0x1000
jne 0x1003e048
cmp dword [ebp - 0x78], 0
je 0x1003e033
mov byte [ebp - 0x68], 1
jmp 0x1003e048
cmp dword [ebp - 0x98], 0
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0x68], edx
movss xmm1, dword [esi + 0x1940]
xorps xmm0, xmm0
addss xmm2, dword [0x100fc7b8]
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x7c], 0xffffffff
xor eax, eax
cmp byte [esi + 0xb4], al
movaps xmm0, xmm1
mulss xmm1, dword [0x10215b80]
setne al
mulss xmm0, dword [0x10215ba8]
inc eax
cmp byte [edi + 0x99], 0
addss xmm2, xmm1
mov dword [ebp - 0x6c], eax
maxss xmm0, xmm2
cvttss2si esi, xmm0
jne 0x1003e0c1
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.1004f1a0
add esp, 0x18
test al, al
je 0x1003e0c1
mov cl, 1
mov dl, cl
jmp 0x1003e0c7
mov dl, byte [ebp - 0x5a]
mov cl, byte [ebp - 0x59]
mov al, byte [ebp - 0x7c]
mov byte [edi + 0xa0], al
cmp byte [edi + 0x99], 0
jne 0x1003e243
cmp dword [ebp - 0xa4], 0
lea eax, [ebp - 0x2c]
movss xmm2, dword [edi + 0x208]
movss xmm3, dword [edi + 0x20c]
subss xmm2, dword [edi + 0x200]
subss xmm3, dword [edi + 0x204]
movss xmm4, dword [edi + 0x2c]
movss xmm5, dword [edi + 0x28]
subss xmm4, dword [ebp - 0x88]
addss xmm2, dword [edi + 0x8c]
addss xmm3, dword [edi + 0x90]
jne 0x1003e13b
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x1003e161
movss xmm0, dword [edi + 0x48]
movss xmm1, dword [edi + 0x4c]
addss xmm0, xmm0
addss xmm1, xmm1
addss xmm0, dword [edi + 0x30]
addss xmm1, dword [edi + 0x34]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x28], xmm1
movss xmm6, dword [eax]
movss xmm1, dword [eax + 4]
test dl, dl
jne 0x1003e171
movaps xmm5, xmm2
test cl, cl
jne 0x1003e178
movaps xmm4, xmm3
mov edx, dword [ebp - 0x60]
test edx, 0x4000
jne 0x1003e191
comiss xmm1, xmm4
jbe 0x1003e18d
test dl, 8
je 0x1003e191
xor al, al
jmp 0x1003e193
mov al, 1
mov byte [edi + 0x95], al
test edx, 0x8000
jne 0x1003e1db
test al, al
je 0x1003e1b2
mov eax, dword [ebp - 0x64]
movss xmm0, dword [eax + 0x1588]
jmp 0x1003e1b5
xorps xmm0, xmm0
subss xmm5, xmm0
comiss xmm6, xmm5
jbe 0x1003e1cc
mov eax, edx
and eax, 0x808
cmp eax, 0x800
je 0x1003e1db
mov eax, dword [ebp - 0x64]
xorps xmm1, xmm1
mov byte [edi + 0x94], 0
jmp 0x1003e21d
mov byte [edi + 0x94], 1
cmp byte [edi + 0x95], 0
jne 0x1003e212
comiss xmm1, xmm4
jbe 0x1003e1f9
test dl, 8
jne 0x1003e1f9
mov al, 1
jmp 0x1003e1fb
xor al, al
mov byte [edi + 0x95], al
cmp byte [edi + 0x94], 0
jne 0x1003e212
mov eax, dword [ebp - 0x64]
xorps xmm1, xmm1
jmp 0x1003e21d
mov eax, dword [ebp - 0x64]
movss xmm1, dword [eax + 0x1588]
cmp byte [edi + 0x95], 0
xorps xmm0, xmm0
je 0x1003e231
movss xmm0, dword [eax + 0x1588]
movss dword [edi + 0x8c], xmm0
movss dword [edi + 0x90], xmm1
jmp 0x1003e246
mov edx, dword [ebp - 0x60]
mov eax, edx
and eax, 0x5000000
mov dword [ebp - 0x7c], eax
cmp eax, 0x1000000
jne 0x1003e26d
cmp dword [ebp - 0x98], 0x3000000
je 0x1003e26d
mov eax, dword [ebp - 0x74]
add eax, 0x240
jmp 0x1003e270
lea eax, [ebp - 0x44]
test byte [edi + 0x14], 1
movups xmm0, xmmword [eax]
mov ecx, dword [0x1023bb74]
movss xmm5, dword [edi + 0x18]
movss xmm6, dword [edi + 0x1c]
movaps xmm3, xmm5
addss xmm3, dword [edi + 0x20]
movaps xmm4, xmm6
addss xmm4, dword [edi + 0x24]
movups xmmword [ebp - 0x24], xmm0
je 0x1003e2a2
xorps xmm2, xmm2
jmp 0x1003e2d4
movss xmm0, dword [ecx + 0x1944]
mov eax, dword [edi + 0x328]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x1003e2c4
mulss xmm0, dword [eax + 0x28c]
movss xmm2, dword [ecx + 0x1554]
addss xmm2, xmm2
addss xmm2, xmm0
movaps xmm1, xmm5
mov ecx, dword [ebp - 0x64]
addss xmm1, dword [edi + 0x28]
movss dword [ebp - 0x54], xmm5
addss xmm2, xmm6
movss xmm0, dword [edi + 0x1c]
movss dword [ebp - 0x50], xmm0
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x48], xmm2
movss dword [edi + 0x1f0], xmm5
movss dword [edi + 0x1f4], xmm6
movss dword [edi + 0x1f8], xmm3
movss dword [edi + 0x1fc], xmm4
movss xmm1, dword [edi + 0x1f0]
movss xmm0, dword [edi + 0x1f4]
movss xmm3, dword [ebp - 0x24]
movss xmm4, dword [ebp - 0x20]
maxss xmm1, xmm3
movss xmm7, dword [ebp - 0x1c]
maxss xmm0, xmm4
movss xmm6, dword [ebp - 0x18]
movss dword [edi + 0x1f0], xmm1
movss dword [edi + 0x1f4], xmm0
movss xmm0, dword [edi + 0x1fc]
movss xmm1, dword [edi + 0x1f8]
minss xmm0, xmm6
minss xmm1, xmm7
movss dword [edi + 0x1fc], xmm0
movss xmm0, dword [ebp - 0x88]
movss dword [edi + 0x1f8], xmm1
mov eax, dword [edi + 0x18]
mov dword [edi + 0x200], eax
mov eax, edx
addss xmm0, dword [edi + 0x1c]
and eax, 0x401
movss dword [edi + 0x204], xmm0
movss xmm0, dword [edi + 0x20]
addss xmm0, dword [edi + 0x18]
subss xmm0, dword [edi + 0x8c]
movss dword [edi + 0x208], xmm0
movss xmm0, dword [edi + 0x24]
addss xmm0, dword [edi + 0x1c]
subss xmm0, dword [edi + 0x90]
movss dword [edi + 0x20c], xmm0
cmp eax, 1
jne 0x1003e3e5
movss xmm5, dword [edi + 0x54]
jmp 0x1003e3ed
movss xmm5, dword [ecx + 0x155c]
movss xmm0, dword [edi + 0x48]
movss xmm2, dword [0x100fc778]
mulss xmm0, xmm2
cvttss2si eax, xmm0
movss xmm0, dword [edi + 0x200]
addss xmm0, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [edi + 0x54]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x210], xmm0
movss xmm0, dword [edi + 0x204]
addss xmm0, xmm2
addss xmm0, xmm5
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x214], xmm0
movss xmm0, dword [edi + 0x48]
mulss xmm0, xmm2
movss xmm1, dword [edi + 0x208]
addss xmm1, xmm2
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm0, dword [edi + 0x54]
subss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x218], xmm0
movss xmm0, dword [edi + 0x20c]
addss xmm0, xmm2
subss xmm0, dword [edi + 0x54]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x21c], xmm0
movss xmm0, dword [edi + 0x214]
comiss xmm4, xmm0
jbe 0x1003e4c6
movaps xmm1, xmm4
jmp 0x1003e4cd
movaps xmm1, xmm6
minss xmm1, xmm0
movss xmm2, dword [edi + 0x210]
comiss xmm3, xmm2
jbe 0x1003e4df
movaps xmm0, xmm3
jmp 0x1003e4e6
movaps xmm0, xmm7
minss xmm0, xmm2
movss dword [edi + 0x210], xmm0
movss dword [edi + 0x214], xmm1
movss xmm0, dword [edi + 0x21c]
comiss xmm4, xmm0
ja 0x1003e50a
movaps xmm4, xmm6
minss xmm4, xmm0
movss xmm0, dword [edi + 0x218]
comiss xmm3, xmm0
ja 0x1003e51e
movaps xmm3, xmm7
minss xmm3, xmm0
movss dword [edi + 0x218], xmm3
xorps xmm2, xmm2
movss dword [edi + 0x21c], xmm4
movss xmm0, dword [edi + 0x20]
comiss xmm0, xmm2
jbe 0x1003e54d
test edx, 0x2000040
jne 0x1003e54d
mulss xmm0, dword [0x10215b8c]
jmp 0x1003e55d
movss xmm0, dword [ecx + 0x1940]
mulss xmm0, dword [0x10215bd0]
cvttss2si eax, xmm0
push edi
movd xmm0, eax
lea eax, [ebp - 0x2c]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 0x270], xmm0
movss xmm1, dword [edi + 0x48]
movss xmm0, dword [edi + 0x208]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x200]
addss xmm1, dword [edi + 0x30]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x6c], xmm0
movss xmm1, dword [edi + 0x4c]
movss xmm0, dword [edi + 0x20c]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x204]
addss xmm1, dword [edi + 0x34]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x70], xmm0
call fcn.1003fb50
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x74], 0x7f7fffff
mov dword [edi + 0x78], 0x7f7fffff
mov ecx, dword [edi + 0x294]
mov eax, dword [eax + 0x193c]
mov eax, dword [eax + 0x30]
push dword [eax + 4]
call fcn.100567c0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1004a960
add esp, 0xc
test dword [ebp - 0x60], 0x8000000
je 0x1003e63d
call fcn.10043760
cmp edi, eax
jne 0x1003e63d
cmp byte [edi + 0xb5], 0
jg 0x1003e63d
mov dl, 1
jmp 0x1003e63f
xor dl, dl
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x1e1c]
test ecx, ecx
je 0x1003e658
cmp edi, dword [ecx + 0x32c]
jne 0x1003e658
mov cl, 1
jmp 0x1003e65a
xor cl, cl
mov byte [ebp - 0x55], cl
test dl, dl
jne 0x1003e669
test cl, cl
je 0x1003e771
movss xmm0, dword [eax + 0x1e4c]
push ecx
movzx eax, dl
add eax, 0x34
movss dword [esp], xmm0
push eax
call fcn.10042cf0
add esp, 8
push 0
push ecx
mov ecx, dword [edi + 0x294]
mov dword [esp], 0
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10052d50
cmp byte [ebp - 0x55], 0
mov eax, dword [ebp - 0x64]
je 0x1003e771
cmp edi, dword [eax + 0x1e1c]
jne 0x1003e771
movss xmm4, dword [edi + 0x1c]
movss xmm0, dword [edi + 0x18]
movaps xmm6, xmm4
movss xmm5, dword [edi + 0x20]
movaps xmm3, xmm0
movss xmm2, dword [edi + 0x24]
addss xmm5, xmm0
movss xmm1, dword [eax + 0x1940]
addss xmm4, xmm2
movss xmm0, dword [ebp - 0x44]
subss xmm3, xmm1
subss xmm6, xmm1
addss xmm5, xmm1
addss xmm4, xmm1
comiss xmm0, xmm3
movss dword [ebp - 0x24], xmm3
movss dword [ebp - 0x20], xmm6
movss dword [ebp - 0x1c], xmm5
movss dword [ebp - 0x18], xmm4
jb 0x1003e72b
movss xmm0, dword [ebp - 0x40]
comiss xmm0, xmm6
jb 0x1003e72b
comiss xmm5, dword [ebp - 0x3c]
jb 0x1003e72b
comiss xmm4, dword [ebp - 0x38]
jae 0x1003e771
movss xmm0, dword [eax + 0x1524]
push 0
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x1e28]
mulss xmm0, dword [0x10214f60]
movss dword [esp], xmm0
push 0x33
call fcn.10042cf0
mov ecx, dword [edi + 0x294]
add esp, 8
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10052d50
cmp dword [ebp - 0x7c], 0x1000000
mov byte [ebp - 0x55], 0
jne 0x1003e7b8
cmp dword [ebp - 0x98], 0x3000000
je 0x1003e7b8
mov edx, dword [edi + 0x294]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x1003e7b8
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x294]
cmp dword [eax + 0x18], 0
jle 0x1003e7b8
mov byte [ebp - 0x55], 1
mov dword [edi + 0x294], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x1e18]
test ecx, ecx
jne 0x1003e7cb
mov ecx, dword [eax + 0x1d10]
cmp byte [ebp - 0x68], 0
jne 0x1003e7e9
test ecx, ecx
je 0x1003e7e3
mov eax, dword [edi + 0x330]
cmp eax, dword [ecx + 0x330]
je 0x1003e7e9
mov byte [ebp - 0x7c], 0
jmp 0x1003e7ed
mov byte [ebp - 0x7c], 1
movd xmm0, esi
lea eax, [ebp - 0x14]
push ecx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x54]
push dword [ebp - 0x7c]
push eax
push edi
call fcn.1004c350
add esp, 0x18
cmp byte [ebp - 0x55], 0
je 0x1003e823
lea eax, [edi + 0x298]
mov dword [edi + 0x294], eax
mov esi, dword [ebp - 0x64]
cmp dword [esi + 0x1e1c], edi
jne 0x1003e926
movss xmm0, dword [edi + 0x18]
movss xmm1, dword [edi + 0x1c]
movaps xmm4, xmm0
movss xmm5, dword [edi + 0x20]
movaps xmm3, xmm1
movss xmm6, dword [edi + 0x24]
addss xmm5, xmm0
movss xmm2, dword [esi + 0x1940]
addss xmm6, xmm1
movss xmm7, dword [edi + 0x50]
subss xmm4, xmm2
movss xmm0, dword [ebp - 0x44]
subss xmm3, xmm2
maxss xmm7, dword [esi + 0x1524]
addss xmm5, xmm2
addss xmm6, xmm2
comiss xmm0, xmm4
movss dword [ebp - 0x34], xmm4
movss dword [ebp - 0x30], xmm3
movss dword [ebp - 0x2c], xmm5
movss dword [ebp - 0x28], xmm6
jb 0x1003e8e8
movss xmm0, dword [ebp - 0x40]
comiss xmm0, xmm3
jb 0x1003e8e8
comiss xmm5, dword [ebp - 0x3c]
jb 0x1003e8e8
comiss xmm6, dword [ebp - 0x38]
jb 0x1003e8e8
xorps xmm2, xmmword [0x100fc7a0]
subss xmm2, dword [0x100fc7b8]
movaps xmm0, xmm2
subss xmm4, xmm2
subss xmm3, xmm2
addss xmm0, xmm5
addss xmm2, xmm6
movss dword [ebp - 0x34], xmm4
movss dword [ebp - 0x30], xmm3
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x28], xmm2
movss xmm7, dword [edi + 0x50]
movss xmm0, dword [esi + 0x1e28]
push ecx
mov dword [esp], 0x40400000
push 0xffffffffffffffff
sub esp, 8
movss dword [esp + 4], xmm7
movss dword [esp], xmm0
push 0x33
call fcn.10042cf0
mov ecx, dword [edi + 0x294]
add esp, 8
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10052c70
mov ecx, dword [ebp - 0x60]
xorps xmm4, xmm4
movss xmm3, dword [edi + 0x40]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x1003e97a
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
jne 0x1003e959
movss xmm3, dword [edi + 0x30]
jmp 0x1003e95c
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x48]
movss xmm0, dword [edi + 0x20]
addss xmm1, xmm1
subss xmm0, xmm1
subss xmm0, dword [edi + 0x8c]
maxss xmm3, xmm0
movss xmm2, dword [edi + 0x44]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x1003e9bc
test dl, dl
je 0x1003e993
movss xmm2, dword [edi + 0x34]
jmp 0x1003e996
xorps xmm2, xmm2
movss xmm0, dword [edi + 0x4c]
movss xmm1, dword [edi + 0x24]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, dword [ebp - 0x88]
subss xmm1, dword [edi + 0x90]
maxss xmm2, xmm1
movss xmm1, dword [edi + 0x48]
maxss xmm1, dword [edi + 0x54]
movss xmm0, dword [edi + 0x200]
subss xmm0, dword [edi + 0x64]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x220], xmm0
movss xmm1, dword [edi + 0x4c]
movss xmm0, dword [edi + 0x204]
subss xmm0, dword [edi + 0x68]
maxss xmm1, dword [edi + 0x54]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x224], xmm0
addss xmm3, dword [edi + 0x220]
movss dword [edi + 0x228], xmm3
addss xmm2, dword [edi + 0x224]
movss dword [edi + 0x22c], xmm2
movups xmm0, xmmword [edi + 0x220]
movss xmm2, dword [ebp - 0x88]
movups xmmword [edi + 0x230], xmm0
movss xmm0, dword [edi + 0x18]
subss xmm0, dword [edi + 0x64]
addss xmm0, dword [edi + 0x48]
movss dword [edi + 0x250], xmm0
movss xmm0, dword [edi + 0x1c]
subss xmm0, dword [edi + 0x68]
addss xmm0, dword [edi + 0x4c]
addss xmm0, xmm2
movss dword [edi + 0x254], xmm0
movss xmm1, dword [edi + 0x40]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x1003eaa8
movss xmm0, dword [edi + 0x48]
movss xmm1, dword [edi + 0x20]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, dword [edi + 0x8c]
addss xmm1, dword [edi + 0x250]
movss dword [edi + 0x258], xmm1
movss xmm1, dword [edi + 0x44]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x1003eae4
movss xmm0, dword [edi + 0x4c]
movss xmm1, dword [edi + 0x24]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, xmm2
subss xmm1, dword [edi + 0x90]
addss xmm1, dword [edi + 0x254]
push dword [ebp - 0x90]
movss dword [edi + 0x25c], xmm1
movss xmm0, dword [edi + 0x48]
addss xmm0, xmm4
subss xmm0, dword [edi + 0x64]
movss dword [edi + 0x118], xmm0
mov dword [edi + 0x120], 0
mov dword [edi + 0x11c], 0
addss xmm2, dword [edi + 0x4c]
movss xmm0, dword [edi + 0x118]
addss xmm0, xmm4
subss xmm2, dword [edi + 0x68]
addss xmm0, dword [edi + 0x18]
addss xmm2, dword [edi + 0x1c]
movss dword [edi + 0xe8], xmm0
movss dword [edi + 0xec], xmm2
mov eax, dword [edi + 0xe8]
mov ecx, dword [edi + 0xec]
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], ecx
mov eax, dword [edi + 0xe8]
mov ecx, dword [edi + 0xec]
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], ecx
mov eax, dword [edi + 0xe8]
mov ecx, dword [edi + 0xec]
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], ecx
mov eax, dword [edi + 0xe8]
mov ecx, dword [edi + 0xec]
mov dword [edi + 0xf8], eax
mov dword [edi + 0xfc], ecx
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
mov ecx, dword [edi + 0x10c]
mov eax, dword [edi + 0x108]
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ecx
mov dword [edi + 0x114], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x14c], 0
mov eax, dword [edi + 0x154]
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], 0
mov byte [edi + 0x15c], 0
movss xmm0, dword [edi + 0x70]
comiss xmm0, xmm4
push ecx
lea ecx, [edi + 0x168]
seta al
mov byte [edi + 0x15d], al
mov byte [edi + 0x15e], 0
movss xmm0, dword [esi + 0x1560]
movss dword [esp], xmm0
push 3
call fcn.1007a8e0
mov dword [edi + 0x18c], 0
lea eax, [edi + 0x194]
mov dword [edi + 0x190], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1003ec91
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x194]
call fcn.100506b0
lea eax, [edi + 0x194]
mov dword [eax], 0
lea eax, [edi + 0x274]
mov dword [edi + 0x1a0], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x1a4], 0
mov dword [edi + 0x1ac], 1
test eax, eax
je 0x1003ecc6
mov eax, dword [eax + 0x1ac]
jmp 0x1003eccb
mov eax, 1
mov dword [edi + 0x1b0], eax
mov dword [edi + 0x1b8], 0xffffffff
mov dword [edi + 0x1b4], 0xffffffff
mov eax, dword [edi + 0x270]
mov dword [edi + 0x1c0], eax
lea eax, [edi + 0x1c8]
mov dword [edi + 0x1c4], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1003ed2a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1c8]
call fcn.100506b0
lea eax, [edi + 0x1c8]
mov dword [eax], 0
lea eax, [edi + 0x1d4]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1003ed5f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1d4]
call fcn.100506b0
lea eax, [edi + 0x1d4]
mov dword [eax], 0
mov al, byte [edi + 0xac]
test al, al
jle 0x1003ed77
dec al
mov byte [edi + 0xac], al
mov al, byte [edi + 0xad]
test al, al
jle 0x1003ed89
dec al
mov byte [edi + 0xad], al
cmp byte [ebp - 0x68], 0
je 0x1003eda0
push edi
call fcn.10042830
push 0
push edi
call fcn.100462c0
add esp, 0xc
test byte [ebp - 0x60], 1
jne 0x1003edf1
movss xmm0, dword [ebp - 0x54]
lea eax, [ebp - 0x24]
addss xmm0, dword [edi + 0x54]
push dword [ebp - 0xa0]
push dword [ebp - 0x9c]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x4c]
subss xmm0, dword [edi + 0x54]
push eax
push edi
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x48]
movss dword [ebp - 0x18], xmm0
call fcn.1004cf30
add esp, 0x10
xor eax, eax
mov dword [edi + 0x260], eax
mov eax, dword [0x1023bb74]
movss xmm2, dword [ebp - 0x54]
movss xmm4, dword [ebp - 0x4c]
movss xmm3, dword [ebp - 0x48]
movss xmm1, dword [eax + 0x1578]
movss xmm0, dword [eax + 0x157c]
subss xmm2, xmm1
movss xmm5, dword [eax + 0xe4]
addss xmm4, xmm1
movss xmm1, dword [ebp - 0x50]
addss xmm3, xmm0
subss xmm1, xmm0
comiss xmm5, xmm2
jb 0x1003ee5d
movss xmm0, dword [eax + 0xe8]
comiss xmm0, xmm1
jb 0x1003ee5d
comiss xmm4, xmm5
jbe 0x1003ee5d
comiss xmm3, xmm0
jbe 0x1003ee5d
mov ecx, 1
jmp 0x1003ee5f
xor ecx, ecx
mov eax, dword [edi + 0x5c]
mov dword [edi + 0x124], eax
mov dword [edi + 0x128], ecx
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [edi + 0x12c], xmm0
jmp 0x1003eedf
mov ecx, dword [0x1023bb74]
mov dword [ecx + 0x1bac], edi
mov eax, dword [edi + 0x1a8]
cmp eax, 0xffffffff
je 0x1003eea0
imul eax, eax, 0x228
add eax, dword [ecx + 0x1ef0]
jmp 0x1003eea2
xor eax, eax
mov dword [ecx + 0x1ee4], eax
mov eax, dword [0x1023bb74]
movss xmm0, dword [eax + 0x1944]
mov eax, dword [edi + 0x328]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x1003eecf
mulss xmm0, dword [eax + 0x28c]
movss dword [ecx + 0x1954], xmm0
movss dword [ecx + 0x1940], xmm0
mov ecx, dword [esi + 0x1cd4]
mov eax, dword [esi + 0x1cdc]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi + 0x1bc], eax
mov eax, dword [ebp - 0x60]
and eax, 0x1000000
mov dword [ebp - 0xa0], eax
je 0x1003ef10
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x158]
jmp 0x1003ef12
xor eax, eax
mov dword [edi + 0x158], eax
lea eax, [edi + 0x218]
push 1
push eax
lea eax, [edi + 0x210]
push eax
call fcn.1004a960
mov eax, dword [ebp - 0x94]
add esp, 0xc
mov byte [edi + 0x98], 0
inc word [edi + 0xa2]
mov dword [esi + 0x1c30], 0
cmp eax, dword [ebp - 0x84]
je 0x1003f064
cmp dword [ebp - 0xa0], 0
je 0x1003efea
test byte [ebp - 0x60], 0x40
jne 0x1003efb1
cmp byte [edi + 0xac], 0
jg 0x1003efb1
cmp byte [edi + 0xad], 0
jg 0x1003efb1
cmp byte [esi + 0x2ef0], 0
jne 0x1003efb1
movss xmm0, dword [edi + 0x1f0]
comiss xmm0, dword [edi + 0x1f8]
jae 0x1003efaa
movss xmm0, dword [edi + 0x1f4]
comiss xmm0, dword [edi + 0x1fc]
jb 0x1003efb1
mov byte [edi + 0xb4], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x1003efea
cmp byte [eax + 0x99], 0
jne 0x1003efca
cmp byte [eax + 0xb4], 0
jle 0x1003efda
mov byte [edi + 0xb4], 1
cmp byte [eax + 0x99], 0
jne 0x1003efe3
cmp byte [eax + 0xb5], 0
jle 0x1003efea
mov byte [edi + 0xb5], 1
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x1518]
jb 0x1003effd
mov byte [edi + 0xb4], 1
cmp byte [edi + 0xb4], 0
jg 0x1003f01c
cmp byte [edi + 0xb5], 0
jg 0x1003f01c
cmp byte [edi + 0xb6], 0
jg 0x1003f01c
xor cl, cl
jmp 0x1003f01e
mov cl, 1
xor al, al
mov byte [edi + 0x9d], cl
cmp byte [edi + 0x99], al
jne 0x1003f03a
cmp byte [edi + 0x96], al
je 0x1003f03a
test cl, cl
je 0x1003f05e
cmp byte [edi + 0xac], 0
jg 0x1003f05e
cmp byte [edi + 0xad], 0
jg 0x1003f05e
cmp byte [edi + 0xb5], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0x9b], al
cmp byte [edi + 0x9b], 0
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.100ed1ec
mov esp, ebp
pop ebp
ret