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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c8
mov eax, dword [0x100b7018]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
cmp dword [esi + 0x58], 0
jge 0x10046cfe
test byte [esi + 4], 2
lea eax, [esp + 0x74]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x74], 0x80000000
push eax
mov dword [esp + 0x7c], 0x1b00d9
je 0x10046cf2
mov dword [esp + 0x7c], 0x20002
call fcn.1004a400
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
test ecx, ecx
je 0x10046d4e
mov eax, dword [0x10124700]
test eax, eax
je 0x10046d45
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10046d6d
mov eax, dword [0x10124700]
test eax, eax
je 0x10046d64
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edi
lea edx, [edi + 8]
mov dword [esp + 0x48], ecx
test ecx, ecx
jle 0x10046dca
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x10046dca
mov ecx, dword [0x10124700]
test ecx, ecx
je 0x10046db2
inc dword [ecx + 0x370]
imul eax, eax, 0xc4
push eax
call fcn.10078c13
add esp, 4
mov dword [esp + 0x40], eax
mov edx, 8
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x10046e05
cmp eax, 8
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jle 0x10046e05
mov eax, dword [0x10124700]
test eax, eax
je 0x10046df0
inc dword [eax + 0x370]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.10078c13
add esp, 4
mov dword [esp + 0x3c], eax
mov edi, eax
imul ecx, dword [esp + 0x48], 0xc4
push ecx
push 0
push dword [esp + 0x48]
call fcn.100708b0
mov eax, dword [esp + 0x50]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call fcn.100708b0
add esp, 0xc
mov dword [esp + 0x1c], 0
cmp dword [esi + 0x4c], 0
jle 0x10046f84
mov eax, dword [esp + 0x40]
xor edx, edx
add eax, 0xa4
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
nop word [eax + eax]
mov ecx, dword [esi + 0x54]
add ecx, edx
mov dword [eax - 4], 0xffffffff
xor edx, edx
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x34], edx
jle 0x10046fe9
mov edi, dword [esp + 0x34]
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x10046eab
mov eax, dword [esp + 0x2c]
or esi, esi
mov ecx, dword [edi + 0x3c]
mov eax, dword [eax + 0x70]
cmp eax, dword [ecx + edx*4]
jne 0x10046ea3
mov eax, dword [esp + 0x24]
mov esi, edx
mov dword [eax - 4], edx
inc edx
mov eax, esi
cmp edx, dword [edi + 0x34]
jl 0x10046e82
mov edi, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x10046fe9
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1003c0e0
mov ecx, dword [esp + 0x24]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [esp + 0x14], ecx
call fcn.1003c3b0
add esp, 4
test eax, eax
je 0x10046fe9
mov eax, dword [esp + 0x10]
mov edx, 0x100a7ecc
mov esi, dword [esp + 0x24]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x10046f3f
nop dword [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x10046f3b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10046f20
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [esp + 0x1c]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [esp + 0x24], esi
inc eax
mov esi, dword [esp + 0x34]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [esp + 0x18]
add edx, 0x74
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
jl 0x10046e60
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x24], esi
test eax, eax
jle 0x1004730a
mov edx, dword [esp + 0x40]
add edx, 0xa8
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], edx
nop dword [eax + eax]
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [esp + 0x20], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
cmp ecx, eax
jle 0x10047025
test eax, eax
je 0x10046ff3
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x10046ffb
mov byte [esp + 0x2b], 0
jmp 0x100482ec
mov dword [esp + 0x14], 8
cmp dword [esp + 0x14], ecx
lea eax, [edx + 4]
mov dword [esp + 0x1c], eax
mov eax, ecx
cmovg eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10020170
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x10047028
lea eax, [edx + 4]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [edx + 0xc]
call fcn.100708b0
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [esp + 0x14], ecx
cmp dword [ecx], 0
jne 0x100470a8
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [esp + 0x10], eax
cmp esi, eax
jle 0x10047091
test eax, eax
je 0x10047077
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x10]
jmp 0x1004707c
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10020170
mov ecx, dword [esp + 0x14]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call fcn.100708b0
add esp, 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x18], eax
cmp word [eax], 0
je 0x10047168
nop dword [eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x10047164
movzx edi, word [eax]
cmp edi, ecx
ja 0x1004714f
mov eax, dword [esp + 0x2c]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [esp + 0x3c]
sar esi, 5
mov dword [esp + 0x10], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x1004713e
mov ecx, dword [esp + 0xc]
mov edx, edi
add ecx, 0xffffff58
call fcn.1003c8c0
mov edx, dword [esp + 0xc]
test eax, eax
je 0x10047142
inc dword [edx]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
or dword [eax + esi*4], ecx
mov eax, dword [esp + 0x2c]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x100470d4
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
cmp word [eax], 0
jne 0x100470c0
mov edi, dword [esp + 0x3c]
add edx, 0xc4
sub dword [esp + 0x38], 1
mov dword [esp + 0xc], edx
jne 0x10046fb0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xb8
mov dword [esp + 0x18], eax
nop
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x100471fb
mov eax, dword [0x10124700]
test eax, eax
je 0x100471a7
inc dword [eax + 0x370]
lea eax, [edi*4]
push eax
call fcn.10078c13
mov edx, dword [esi + 8]
add esp, 4
mov dword [esp + 0x10], eax
test edx, edx
je 0x100471f5
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call fcn.10070330
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x100471e8
mov eax, dword [0x10124700]
test eax, eax
je 0x100471e8
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [esp + 0x1c], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
cmp ecx, eax
jae 0x100472bb
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x2c], eax
nop
mov ecx, dword [ecx]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x100472a1
xor edx, edx
mov edi, 1
mov dword [esp + 0x38], edx
test edi, ecx
je 0x10047291
mov ecx, dword [esi + 4]
and eax, 0xffffffe0
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x10047277
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x10047265
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, ecx
jmp 0x1004726a
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10020170
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
inc edx
rol edi, 1
mov dword [esp + 0x38], edx
cmp edx, 0x20
jl 0x10047235
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, 0x20
add ecx, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
cmp ecx, edx
jb 0x10047220
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x100472ef
mov eax, dword [0x10124700]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x100472df
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [esp + 0x18], 1
jne 0x10047190
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
jmp 0x1004730c
xor esi, esi
cmp dword [esp + 0x44], 0
jle 0x10047366
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x38], eax
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x10047356
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x10124700]
test eax, eax
je 0x10047343
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x38], eax
sub edi, 1
jne 0x10047320
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x1004738a
mov eax, dword [0x10124700]
test eax, eax
je 0x10047379
dec dword [eax + 0x370]
push edi
call fcn.10078b01
add esp, 4
mov dword [esp + 0x3c], 0
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
test esi, esi
jle 0x10047403
cmp esi, 8
mov eax, esi
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x10047409
mov ecx, dword [0x10124700]
test ecx, ecx
je 0x100473b9
inc dword [ecx + 0x370]
shl eax, 4
push eax
call fcn.10078c13
mov edx, dword [0x10124700]
add esp, 4
cmp esi, 8
mov dword [esp + 0x24], eax
mov edi, eax
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test edx, edx
je 0x100473e8
inc dword [edx + 0x370]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call fcn.10078c13
add esp, 4
mov dword [esp + 0x2c], eax
jmp 0x10047409
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, esi
shl eax, 4
push eax
push 0
push edi
call fcn.100708b0
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [esp + 0x34]
call fcn.100708b0
mov ecx, dword [esp + 0x54]
xor eax, eax
xor edx, edx
mov dword [esp + 0x24], eax
add esp, 0xc
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x100477ba
mov edi, dword [esp + 0x40]
add edi, 0x98
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x100477a0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
shl eax, 4
add eax, dword [esp + 0x24]
mov dword [edi - 4], eax
lea eax, [edx*8]
sub eax, edx
add dword [esp + 0x18], esi
add edx, esi
mov dword [esp + 0x38], edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x34]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov eax, dword [edx + 0x10]
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x100aabec]
jbe 0x1004753e
mov eax, dword [edi - 0x7c]
mov edi, dword [edi - 0x94]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [esp + 0x1c]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
mov edi, dword [esp + 0x1c]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
movd xmm0, eax
jmp 0x10047564
mov edx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x100ab070]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x54], eax
movss dword [esp + 0x20], xmm1
cmp dword [edi + 0x20], eax
jle 0x10047798
mov dword [esp + 0x4c], eax
nop
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.1003c8c0
mov ecx, dword [esp + 0x44]
mov edx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x70], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x64], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0x6c]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [esp + 0x60], xmm0
call fcn.1003ccd0
add esp, 0x10
test eax, eax
jne 0x10047614
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], esi
jmp 0x1004771c
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [esp + 0x24]
mulss xmm0, dword [esp + 0x6c]
addss xmm0, dword [0x100aabec]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.1008c7a0
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x74]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x58]
cvttss2si esi, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.1008c7a0
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mulss xmm0, dword [esp + 0x6c]
addss xmm0, dword [0x100aabec]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.100895e0
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0x78]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x58]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x6c], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.100895e0
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
movzx edx, ax
mov eax, dword [esp + 0x44]
mov ecx, edx
sub edx, dword [esp + 0x1c]
sub ecx, esi
mov esi, dword [esp + 0x4c]
dec cx
movss xmm1, dword [esp + 0x20]
dec dx
add cx, word [eax + 0x14]
mov eax, dword [edi - 4]
add cx, word [esp + 0x64]
mov word [esi + eax + 4], cx
mov eax, dword [esp + 0x44]
add dx, word [eax + 0x18]
mov eax, dword [edi - 4]
add dx, word [esp + 0x50]
mov word [esi + eax + 6], dx
mov eax, dword [edi - 4]
mov edx, dword [esp + 0xc]
movzx ecx, word [esi + eax + 6]
movzx eax, word [esi + eax + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], eax
add edx, ecx
mov dword [esp + 0xc], edx
cmp eax, dword [edi + 0x20]
jl 0x10047590
jmp 0x1004779c
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x74
add edi, 0xc4
sub dword [esp + 0x10], 1
mov dword [esp + 0x1c], edi
jne 0x10047470
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test eax, eax
jg 0x1004782e
movd xmm0, edx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x100477e5
sqrtsd xmm0, xmm0
jmp 0x100477ea
call fcn.1008c6a0
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x100aade4]
jb 0x1004780a
mov eax, 0x1000
jmp 0x1004782e
comiss xmm0, dword [0x100aaddc]
jb 0x1004781a
mov eax, 0x800
jmp 0x1004782e
comiss xmm0, dword [0x100aadd0]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.100708b0
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x10124700]
test eax, eax
je 0x10047862
inc dword [eax + 0x370]
push 0x30
call fcn.10078c13
mov ecx, dword [0x10124700]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
sub eax, dword [esp + 0x20]
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x1004788e
inc dword [ecx + 0x370]
shl eax, 3
push eax
call fcn.10078c13
add esp, 4
test esi, esi
je 0x1004791e
test eax, eax
je 0x1004790c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0xcc], eax
mov eax, 0x8000
sub eax, ecx
mov dword [esp + 0xb8], ecx
push eax
mov ecx, esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc8], 1
mov dword [esp + 0xc0], 0
call fcn.1003b450
add esp, 0xc
jmp 0x10047946
mov eax, dword [0x10124700]
test eax, eax
je 0x1004791b
dec dword [eax + 0x370]
push esi
jmp 0x10047933
test eax, eax
je 0x1004793b
mov ecx, dword [0x10124700]
test ecx, ecx
je 0x10047932
dec dword [ecx + 0x370]
push eax
call fcn.10078b01
add esp, 4
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc], eax
mov esi, dword [edi + 0x40]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
test esi, esi
jle 0x10047987
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x10047987
mov eax, dword [0x10124700]
test eax, eax
je 0x10047977
inc dword [eax + 0x370]
shl ecx, 4
push ecx
call fcn.10078c13
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call fcn.100708b0
mov eax, dword [edi + 0x40]
add esp, 0xc
test eax, eax
jle 0x100479cf
mov edx, dword [edi + 0x48]
mov edi, eax
mov ecx, dword [esp + 0x18]
add ecx, 6
add edx, 6
nop
movzx eax, word [edx - 2]
lea edx, [edx + 0x1c]
mov word [ecx - 2], ax
lea ecx, [ecx + 0x10]
movzx eax, word [edx - 0x1c]
mov word [ecx - 0x10], ax
sub edi, 1
jne 0x100479b0
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push esi
call fcn.1003b8f0
add esp, 4
test esi, esi
jle 0x10047a34
mov edx, dword [esp + 0x18]
xor esi, esi
mov eax, dword [esp + 0x14]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x10047a25
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [ecx + esi + 8], ax
mov ecx, dword [edi + 0x48]
movzx eax, word [edx]
mov word [ecx + esi + 0xa], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [esp + 0x14], eax
jne 0x100479f1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10047a55
mov ecx, dword [0x10124700]
test ecx, ecx
je 0x10047a4c
dec dword [ecx + 0x370]
push eax
call fcn.10078b01
add esp, 4
mov esi, dword [esp + 0x48]
test esi, esi
jle 0x10047ad3
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xa8
mov dword [esp + 0x20], eax
nop
mov eax, dword [esi]
test eax, eax
je 0x10047ac2
mov edx, dword [esi - 0x14]
mov ecx, dword [esp + 0xc]
push eax
call fcn.1003b8f0
xor ecx, ecx
add esp, 4
mov dword [esp + 0x10], ecx
cmp dword [esi], ecx
jle 0x10047ac2
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x10047ab6
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc ecx
add edx, 0x10
mov dword [esp + 0x10], ecx
cmp ecx, dword [esi]
jl 0x10047a92
add esi, 0xc4
sub dword [esp + 0x20], 1
jne 0x10047a70
mov esi, dword [esp + 0x48]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x10047b01
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
mov ecx, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x100aaca4]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x10124700]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x10047b45
inc dword [eax + 0x370]
push ecx
call fcn.10078c13
mov ecx, dword [edi + 0x1c]
add esp, 4
imul ecx, dword [edi + 0x20]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call fcn.100708b0
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0xa8], eax
test esi, esi
jle 0x10047d13
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x4c], eax
mov edx, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x54], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x10047cec
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [esp + 0xa8]
call fcn.10041b70
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x100aaca4]
movss dword [esp + 0x30], xmm1
lahf
test ah, 0x44
jnp 0x10047cd6
xor esi, esi
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ab000]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1008b0b0
movss xmm1, dword [esp + 0x30]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xc8], dl
inc esi
cmp esi, 0x100
jb 0x10047be0
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x10047cda
lea ecx, [edx + 4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
nop dword [eax]
cmp dword [ecx + 8], 0
je 0x10047cbe
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [esp + 0x10], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x10047cb2
mov eax, dword [esp + 0x10]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x10047ca7
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [esp + eax + 0xc8]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10047c90
mov eax, dword [esp + 0x10]
dec edi
add edx, eax
test edi, edi
jg 0x10047c80
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
inc eax
add ecx, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edx + 0xa8]
jl 0x10047c50
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov dword [ecx + 0x94], 0
add eax, 0x74
add ecx, 0xc4
sub edx, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x54], edx
jne 0x10047b94
mov esi, dword [esp + 0xa0]
jmp 0x10047d17
mov esi, dword [esp + 0xc]
cmp dword [esp + 0xc4], 0
je 0x10047d30
mov eax, dword [0x10124700]
test eax, eax
je 0x10047d30
dec dword [eax + 0x370]
push dword [esp + 0xc4]
call fcn.10078b01
add esp, 4
test esi, esi
je 0x10047d52
mov eax, dword [0x10124700]
test eax, eax
je 0x10047d52
dec dword [eax + 0x370]
push esi
call fcn.10078b01
mov ecx, dword [esp + 0x28]
add esp, 4
test ecx, ecx
je 0x10047d83
mov eax, dword [0x10124700]
test eax, eax
je 0x10047d72
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x1004829a
mov ecx, dword [esp + 0x40]
xor edx, edx
movss xmm3, dword [0x100aac68]
add ecx, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
jmp 0x10047db4
mov edi, dword [esp + 0x34]
cmp dword [ecx + 0xa4], 0
je 0x10048223
mov esi, dword [ecx]
mov eax, dword [edi + 0x54]
mov edi, dword [ecx + 0x18]
add eax, edx
mov dword [esp + 0x54], eax
mov eax, dword [eax + 0x70]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 7]
mov dword [esp + 0x20], 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 [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
add dx, cx
movsx ecx, dx
sub eax, ecx
mov dword [esp + 0x30], ecx
cmp byte [esi + 0x3c], 0
movd xmm0, eax
lea eax, [edi + 0x48]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x6c], eax
divss xmm1, xmm0
movss dword [esp + 0x68], xmm1
jne 0x10047f23
mov ecx, edi
call fcn.10048710
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov dword [edi + 0x10], eax
xorps xmm5, xmm5
xor eax, eax
mov edx, dword [esp + 0x34]
mov dword [edi + 0x3c], esi
movd xmm0, ecx
mov ecx, dword [esp + 0x30]
movd xmm3, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], 0
movd xmm1, ecx
punpckldq xmm1, xmm3
movd xmm2, eax
punpckldq xmm2, xmm0
movd xmm0, ecx
xor ecx, ecx
cvtdq2ps xmm0, xmm0
mov dword [edi + 0x38], edx
movd xmm3, dword [esp + 0x30]
comiss xmm0, xmm5
movd xmm0, eax
cvtdq2ps xmm0, xmm0
seta cl
xor eax, eax
punpckldq xmm2, xmm1
lea ecx, [ecx*2 - 1]
comiss xmm0, xmm5
cvtdq2ps xmm4, xmm2
seta al
movss xmm2, dword [esp + 0x68]
movaps xmm1, xmm2
mov dword [esp + 0x68], 0
movd xmm0, dword [esp + 0x68]
lea eax, [eax*2 - 1]
unpcklps xmm2, xmm1
mulps xmm4, xmm2
movd xmm2, eax
mov eax, dword [esp + 0x6c]
punpckldq xmm2, xmm0
movd xmm1, ecx
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
movss xmm3, dword [0x100aac68]
cvtdq2ps xmm0, xmm2
addps xmm4, xmm0
cvttps2dq xmm0, xmm4
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
shufps xmm0, xmm0, 0x55
movss dword [edi + 0x4c], xmm0
jmp 0x10047f27
mov edx, dword [esp + 0x34]
movss xmm0, dword [eax]
inc word [edi + 0x40]
addss xmm0, xmm3
mov ecx, dword [esp + 0x44]
movss xmm2, dword [esi + 0x28]
movss dword [esp + 0x58], xmm2
mov dword [esp + 0x14], 0
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x2c]
movss dword [esp + 0x70], xmm0
jle 0x1004821f
mov dword [esp + 0x1c], 0
nop word [eax + eax]
mov eax, dword [ecx + 0xbc]
mov edi, dword [esp + 0x14]
movss xmm0, dword [esi + 0x34]
movss dword [esp + 0x4c], xmm0
mov eax, dword [eax + edi*4]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x94]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
movss xmm1, dword [eax + ecx + 0x10]
comiss xmm0, xmm1
ja 0x10047fc4
movss xmm0, dword [esi + 0x38]
minss xmm0, xmm1
movss dword [esp + 0x4c], xmm0
mov edi, dword [esp + 0x20]
ucomiss xmm1, xmm0
movss dword [esp + 0x10], xmm2
lahf
test ah, 0x44
jnp 0x10047ffa
cmp byte [esi + 0x1c], 0
subss xmm0, xmm1
mulss xmm0, xmm3
je 0x10047ff0
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movd xmm0, dword [edx + 0x1c]
movss xmm1, dword [0x100aaca4]
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [edx + 0x20]
mov edx, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + ecx]
divss xmm1, xmm0
movss xmm0, dword [edx + ecx + 8]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edx + ecx + 0xc]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [edx + ecx + 0x14]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [edx + ecx + 0x18]
movss dword [esp + 0x38], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0xc], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x90], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 6]
lea ecx, [edi + 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x94], xmm0
movd xmm0, eax
mov eax, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
inc eax
push eax
mulss xmm0, xmm1
movss dword [esp + 0x9c], xmm0
call fcn.1004a350
mov eax, dword [edi + 0x20]
xorps xmm6, xmm6
movss xmm0, dword [esp + 0x30]
mov esi, dword [edi + 0x28]
addss xmm0, xmm6
movss xmm3, dword [0x100aac68]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x68]
mov word [esi + edx*8 - 0x28], ax
addss xmm0, dword [esp + 0x10]
movss dword [esi + edx*8 - 0x20], xmm0
movss xmm0, dword [esp + 0x6c]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x70]
movss dword [esi + edx*8 - 0x1c], xmm0
movss xmm0, dword [esp + 0x64]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x10]
movss dword [esi + edx*8 - 0x18], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x70]
movss dword [esi + edx*8 - 0x14], xmm0
movss xmm0, dword [esp + 0xc]
movss dword [esi + edx*8 - 0x10], xmm0
movss xmm0, dword [esp + 0x90]
movss dword [esi + edx*8 - 0xc], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esi + edx*8 - 8], xmm0
movss xmm0, dword [esp + 0x98]
movss dword [esi + edx*8 - 4], xmm0
mov eax, dword [edi + 0x3c]
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [eax + 0x20]
movss dword [esi + edx*8 - 0x24], xmm0
mov eax, dword [edi + 0x3c]
cmp byte [eax + 0x1c], 0
je 0x1004819e
addss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + edx*8 - 0x24], xmm0
mov eax, dword [edi + 0x38]
mov byte [edi + 0x54], 1
movss xmm0, dword [esi + edx*8 - 4]
subss xmm0, dword [esi + edx*8 - 0xc]
movd xmm1, dword [eax + 0x20]
cvtdq2ps xmm1, xmm1
add dword [esp + 0x1c], 0x1c
movss xmm2, dword [esp + 0x58]
mulss xmm1, xmm0
movss xmm0, dword [esi + edx*8 - 8]
subss xmm0, dword [esi + edx*8 - 0x10]
addss xmm1, dword [0x100aacf8]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x54]
cvttss2si ecx, xmm1
movd xmm1, dword [eax + 0x1c]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
addss xmm1, dword [0x100aacf8]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
add dword [edi + 0x50], ecx
mov ecx, dword [esp + 0x44]
cmp eax, dword [ecx + 0xa4]
jl 0x10047f80
mov edx, dword [esp + 0x18]
add ecx, 0xc4
add edx, 0x74
sub dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], edx
jne 0x10047db0
mov esi, dword [esp + 0x40]
add esi, 0xb4
nop dword [eax]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1004826f
mov eax, dword [0x10124700]
test eax, eax
je 0x10048266
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x1004828d
mov eax, dword [0x10124700]
test eax, eax
je 0x10048284
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
add esi, 0xc4
sub dword [esp + 0x48], 1
jne 0x10048250
mov ecx, dword [esp + 0x34]
call fcn.10048350
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x2b], 1
test ecx, ecx
je 0x100482c8
mov eax, dword [0x10124700]
test eax, eax
je 0x100482bf
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x100482e8
mov eax, dword [0x10124700]
test eax, eax
je 0x100482df
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
add esp, 4
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x10048308
mov eax, dword [0x10124700]
test eax, eax
je 0x100482ff
dec dword [eax + 0x370]
push edi
call fcn.10078b01
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10048329
mov ecx, dword [0x10124700]
test ecx, ecx
je 0x10048320
dec dword [ecx + 0x370]
push eax
call fcn.10078b01
add esp, 4
mov ecx, dword [esp + 0x1cc]
mov al, byte [esp + 0x2b]
pop edi
pop esi
xor ecx, esp
call fcn.1006e641
mov esp, ebp
pop ebp
ret