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

Disassembly:
sub esp, 0x17c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x14], eax
add eax, 0x3abf0
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x3bb8]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
push ebx
push esi
cmp byte [eax + 0x4d], cl
mov esi, dword [esp + 0x1ac]
sete cl
mov dword [esp + 0x28], esi
push edi
mov edi, dword [esp + 0x194]
mov eax, dword [edi + 0x10b8]
lea edx, [edi + 0xe0]
lea ecx, [ecx*2 + 1]
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], ecx
mov ecx, dword [edx + 0xfdc]
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x10171b8c
movzx ecx, byte [ecx + 0x88]
jmp 0x10171b8e
xor ecx, ecx
test eax, eax
je 0x10171b9b
movzx eax, byte [eax + 0x88]
jmp 0x10171b9d
xor eax, eax
add eax, ecx
mov ecx, dword [edi + 0x1b5e8]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0xfd0]
mov dword [esp + 0x18], ecx
lea ebx, [ecx + 0x2e008]
mov dword [esp + 0x50], ebx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
test eax, eax
je 0x10171c18
xor edi, edi
test eax, eax
jle 0x10171c03
mov edx, ebx
lea esi, [ecx + 0x2c008]
mov ebx, ecx
nop dword [eax]
mov dword [edx], edi
lea esi, [esi + 8]
mov eax, dword [esi - 8]
lea edx, [edx + 0x10]
mov ecx, dword [esi - 4]
inc edi
mov dword [edx - 8], eax
mov dword [edx - 4], ecx
mov eax, dword [ebx]
cmp edi, eax
jl 0x10171be0
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
push 0x101671c0
push 0x10
push eax
push ebx
call fcn.105265a0
mov edi, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x19c]
mov ecx, dword [esp + 0x198]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov byte [esi + 0xcc], 0xff
mov dword [edi + 0x1b5e0], 0
movzx esi, byte [eax + 0x5d038]
mov eax, dword [edi + 0x1b5dc]
mov edi, dword [esp + 0x14]
mov dl, byte [edi + 0x86]
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x19c]
test esi, esi
je 0x10171cd6
cmp ecx, 0xffffffff
jne 0x10171c73
cmp edx, 0x7fffffff
je 0x10171cd6
mov ecx, dword [esp + 0x20]
mov cl, byte [ecx + 0x3abf0]
test cl, cl
je 0x10171c8d
cmp cl, 2
je 0x10171c8d
cmp byte [esp + 0xf], 0
ja 0x10171cd6
mov edx, dword [esi*4 + 0x1081366c]
mov ecx, 0x29
mov esi, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x198]
mov dword [eax + 0xd0], ecx
mov ecx, dword [esp + 0x19c]
mov dword [eax + 0xd4], ecx
mov ecx, dword [esp + 0x10]
mov byte [eax + 0x40e0], 0xff
mov eax, dword [ecx + 0x1b5e0]
inc eax
cmp eax, edx
cmovge eax, edx
mov dword [ecx + 0x1b5e0], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [eax + 0x5d0c4]
cmp ecx, eax
cmovge ecx, eax
mov dword [edx], ecx
test ecx, ecx
jle 0x10171d05
mov eax, dword [ebx]
mov ebx, edx
mov esi, dword [ebx + eax*8 + 0x2c008]
mov edi, dword [ebx + eax*8 + 0x2c00c]
jmp 0x10171d0f
or esi, 0xffffffff
mov edi, closesocket
mov ebx, edx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], closesocket
mov dword [eax], 0xffffffff
mov dword [eax + 4], closesocket
mov eax, dword [ebx]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x5cf28]
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], closesocket
test eax, eax
je 0x10171d79
movaps xmm0, xmmword [0x10813730]
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], 2
mov eax, dword [esp + eax*4 + 0x90]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x5cf2c]
mov dword [esp + 0x74], closesocket
test eax, eax
je 0x10171da5
movaps xmm0, xmmword [0x108136b0]
movups xmmword [esp + 0x90], xmm0
mov eax, dword [esp + eax*4 + 0x90]
mov dword [esp + 0x74], eax
push 0x30
lea eax, [esp + 0x158]
mov dword [esp + 0x48], 0
push 0
push eax
call fcn.10513d40
xor eax, eax
add esp, 0xc
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x48], eax
jle 0x10172975
mov edx, edi
mov ecx, esi
call fcn.10511ed0
movsd qword [esp + 0x90], xmm0
xor eax, eax
mov edi, dword [esp + 0x14]
add eax, eax
mov ecx, 0x29
mov eax, dword [ebx + eax*8 + 0x2e008]
imul esi, eax, 0xa4
mov dword [esp + 0x24], eax
add esi, 4
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
mov bl, byte [esi + 5]
mov edx, dword [eax + edi*8 + 0x2c00c]
mov ecx, dword [eax + edi*8 + 0x2c008]
call fcn.10511ed0
mulsd xmm0, qword [0x1059ba68]
comisd xmm0, xmmword [esp + 0x90]
ja 0x10172975
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x44], eax
jle 0x10171e66
movzx eax, bl
mov eax, dword [esp + eax*4 + 0x120]
cmp bl, 0xd
je 0x10171e5d
cmp eax, 1
jmp 0x10171e60
cmp eax, 2
jge 0x1017295e
mov eax, dword [esp + 0x10]
mov byte [eax + 0x23b80], 0
mov cl, byte [esi + 0x14]
mov dl, byte [esi + 0x15]
cmp cl, 1
jl 0x10171f32
lea eax, [ecx - 1]
cmp al, 7
jbe 0x10171f34
mov ecx, dword [esp + 0x30]
xor eax, eax
mov esi, dword [esp + 0x40]
mov dword [esi + 0x1000], eax
cmp dl, 1
jl 0x10171f5a
lea eax, [edx - 1]
cmp al, 7
jbe 0x10171f5c
xor eax, eax
mov ecx, esi
xor esi, esi
mov dword [ecx + 0x1004], eax
mov eax, dword [esp + 0x14]
mov edi, eax
cmp byte [eax + 0x15], 0
jle 0x10171f7e
lea edx, [ecx + 0x44]
nop
movsx eax, byte [edi + 0x14]
lea edx, [edx + 0x538]
lea ecx, [esi + eax*2]
add ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x1a4]
movups xmm0, xmmword [ecx + eax*4]
movups xmmword [edx - 0x54c], xmm0
mov eax, dword [ecx + eax*4 + 0x10]
mov dword [edx - 0x53c], eax
movsx eax, byte [edi + 0x15]
lea ecx, [esi + eax*2]
inc esi
add ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x1a4]
movups xmm0, xmmword [ecx + eax*4]
movups xmmword [edx - 0x538], xmm0
mov eax, dword [ecx + eax*4 + 0x10]
mov dword [edx - 0x528], eax
cmp esi, dword [esp + 0x70]
jl 0x10171ed0
jmp 0x10171fb8
mov cl, 1
movzx eax, cl
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + eax*4 + 0xd8]
cmp eax, 0xffffffff
je 0x10171e8f
shl eax, 4
add eax, 0x10c
add eax, ecx
jmp 0x10171e91
mov dl, 1
movzx eax, dl
mov eax, dword [ecx + eax*4 + 0xd8]
cmp eax, 0xffffffff
je 0x10171eaf
shl eax, 4
add eax, 0x10c
add eax, ecx
jmp 0x10171eb1
xor edx, edx
lea esi, [ecx + 0x30]
movsx eax, byte [edi + 0x14]
lea esi, [esi + 0x538]
lea ecx, [edx + eax*2]
inc edx
add ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x1a4]
movups xmm0, xmmword [ecx + eax*4]
movups xmmword [esi - 0x538], xmm0
mov eax, dword [ecx + eax*4 + 0x10]
mov dword [esi - 0x528], eax
cmp edx, dword [esp + 0x70]
jl 0x10171f83
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x58], closesocket
mov esi, dword [ecx + 0x5ce70]
mov eax, dword [eax + edi*4 + 0x29004]
mov dword [esp + 0x34], eax
test esi, esi
je 0x10172159
mov ecx, dword [esp + 0x10]
movups xmm0, xmmword [0x10813700]
mov dword [esp + 0xcc], 2
mov dword [esp + 0xd0], 1
imul dword [ecx + 0x31cc]
movups xmmword [esp + 0xbc], xmm0
movups xmm0, xmmword [0x10813760]
mov ecx, dword [esp + 0x18]
add eax, 0x100
mov dword [esp + 0xb4], 0x64
movups xmmword [esp + 0xa4], xmm0
adc edx, 0
mov dword [esp + 0xb8], 0x8c
shrd eax, edx, 9
mov dword [esp + 0x24], eax
mov eax, dword [ecx + edi*8 + 0x2a008]
mov ecx, dword [ecx + edi*8 + 0x2a00c]
shld ecx, eax, 7
sar edx, 9
shl eax, 7
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
adc edx, ecx
mov dword [esp + 0x58], edx
mov edx, 4
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x28], eax
cmp esi, 2
jg 0x101720b9
mov ecx, dword [esp + 0x10]
mov eax, 0x13f
sub eax, dword [ecx + 0x31bc]
mov ecx, 1
add eax, eax
sar eax, 8
cmp eax, 1
cmovl eax, ecx
lea edx, [eax*4]
mov eax, dword [esp + 0x1a0]
mov edi, dword [esp + 0x2c]
movzx ecx, byte [eax + 0x108082a4]
mov eax, dword [esp + 0x10]
add ecx, 7
mov eax, dword [eax + 0x243a4]
shl eax, cl
mov ecx, dword [edi + 0xc]
mov edi, dword [esp + 0x4c]
test ecx, ecx
jl 0x1017210c
jg 0x101720eb
cmp edi, eax
jbe 0x1017210c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + esi*4 + 0xa4]
cmp dword [ecx + 0x31bc], eax
mov ecx, dword [esp + 0x28]
jl 0x1017210c
imul edx, dword [esp + esi*4 + 0xbc]
jmp 0x10172119
cmp esi, 1
jg 0x10172119
sar edx, 2
lea edx, [edx + edx*2]
add edx, edx
cmp edi, 0xffffffff
jne 0x1017212c
cmp ecx, 0x7fffffff
jne 0x1017212c
or eax, edi
mov edx, ecx
jmp 0x10172143
mov eax, 0x10
imul edx
push ecx
push edi
push edx
push eax
call fcn.10511b50
shrd eax, edx, 6
sar edx, 6
cmp dword [esp + 0x58], edx
jg 0x1017295e
jl 0x10172159
cmp dword [esp + 0x24], eax
ja 0x1017295e
mov esi, dword [esp + 0x30]
xor edx, edx
mov edi, dword [esp + 0x40]
mov ecx, 2
mov eax, dword [esi + 0x3bb8]
cmp byte [eax + 0x4d], dl
cmovne ecx, edx
push ecx
push edx
push dword [esp + 0x1a8]
push edx
push dword [esp + 0x1bc]
push dword [esp + 0x1bc]
push edi
push esi
call fcn.101152f0
mov eax, dword [esp + 0x34]
add esp, 0x20
cmp byte [eax + 0x1c], 1
jne 0x101721aa
push edi
push esi
call fcn.101148c0
add esp, 8
inc dword [esp + 0x44]
cmp bl, 0x10
je 0x101721cc
cmp bl, 0x18
je 0x101721cc
cmp bl, 0x13
je 0x101721cc
cmp bl, 0x14
je 0x101721cc
cmp bl, 0x15
je 0x101721cc
cmp bl, 0x16
jne 0x101721d4
mov dword [esp + 0x50], 1
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
movzx eax, bl
inc dword [esp + eax*4 + 0x120]
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x134]
push esi
push eax
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0xf0]
push eax
push dword [esp + 0x1b8]
push edi
push dword [esp + 0x40]
call fcn.10222400
add esp, 0x24
test eax, eax
je 0x1017295e
cmp byte [esp + 0xfc], 0
mov eax, dword [esp + 0x54]
je 0x1017223b
mov eax, dword [edi + eax*8 + 0x7c3c]
jmp 0x10172249
mov eax, dword [edi + eax*8 + 0x7c38]
add eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x110]
add eax, esi
imul dword [edi + 0x31cc]
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x10c]
add edi, 0x100
adc esi, 0
shld ecx, eax, 7
shrd edi, esi, 9
shl eax, 7
sar esi, 9
add edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], edi
adc esi, ecx
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x28], edi
cmp dword [eax + 0x5ce6c], 1
jne 0x10172435
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x60], edx
movzx eax, byte [eax + 0x88]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4 + 0x7c38]
add eax, dword [esp + 0x12c]
add eax, dword [esp + 0x104]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
je 0x10172440
cmp dword [esp + 0x34], edi
jne 0x10172308
cmp edx, ecx
je 0x10172440
test eax, eax
je 0x10172440
cmp eax, 1
je 0x10172440
cmp eax, 2
je 0x10172440
cmp eax, 0x10
je 0x10172440
cmp eax, 0x11
je 0x10172440
mov ecx, dword [esp + 0x3c]
imul eax, eax, 0x70
mov dword [esp + 0x4c], eax
mov eax, dword [eax + ecx + 0x5370]
mov dword [esp + 0x84], eax
cmp eax, 0x1900
jge 0x10172440
mov ecx, dword [esp + 0x34]
sub ecx, edi
sbb edx, dword [esp + 0x1c]
call fcn.10511ed0
movd xmm1, dword [esp + 0x7c]
cvtdq2pd xmm1, xmm1
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
inc eax
mov dword [ecx + edx + 0x5370], eax
mov ecx, edi
divsd xmm0, xmm1
mov edx, dword [esp + 0x1c]
movsd qword [esp + 0x7c], xmm0
call fcn.10511ed0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
addsd xmm0, qword [edi + eax + 0x5378]
movsd qword [edi + eax + 0x5378], xmm0
movsd xmm0, qword [esp + 0x7c]
addsd xmm0, qword [edi + eax + 0x5380]
movsd qword [edi + eax + 0x5380], xmm0
call fcn.10511ed0
mov eax, dword [esp + 0x3c]
movaps xmm1, xmm0
addsd xmm1, qword [edi + eax + 0x5388]
movsd qword [edi + eax + 0x5388], xmm1
movaps xmm1, xmm0
mulsd xmm1, xmm0
addsd xmm1, qword [edi + eax + 0x5390]
movsd qword [edi + eax + 0x5390], xmm1
movsd xmm1, qword [esp + 0x7c]
mulsd xmm1, xmm0
addsd xmm1, qword [edi + eax + 0x5398]
movsd qword [edi + eax + 0x5398], xmm1
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xdc]
imul dword [ecx + 0x31cc]
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x28]
add edi, 0x100
mov edx, dword [esp + 0x1c]
adc ecx, 0
shld edx, eax, 7
shrd edi, ecx, 9
shl eax, 7
sar ecx, 9
add edi, eax
mov dword [esp + 0x60], edi
adc ecx, edx
mov dword [esp + 0xec], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0xf0], ecx
cmp ecx, dword [esp + 0x68]
jg 0x101724b1
jl 0x1017249c
cmp edi, dword [esp + 0x64]
jae 0x101724b1
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
mov dword [edx], eax
mov dword [edx + 4], esi
mov eax, dword [esp + 0x14]
mov dl, byte [eax + 0x15]
mov al, byte [eax + 0x14]
cmp bl, 0xd
jae 0x101724cf
movzx eax, bl
mov dh, byte [eax + 0x1081323c]
mov byte [esp + 0xf], dh
jmp 0x10172517
cmp bl, 0x11
jae 0x101724eb
movzx ecx, bl
movsx eax, al
mov dh, byte [eax + ecx*8 + 0x108131e4]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xf], dh
jmp 0x10172517
cmp bl, 0x19
jae 0x10172512
cmp dl, 0xff
je 0x10172512
movsx eax, al
movzx ecx, bl
lea ecx, [eax + ecx*8]
movsx eax, dl
mov dh, byte [eax + ecx*8 + 0x10812e30]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xf], dh
jmp 0x10172517
mov byte [esp + 0xf], 0xff
mov eax, dword [esp + 0x20]
xor ebx, ebx
movzx esi, byte [eax + 0x5d038]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x1b5dc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dl, byte [eax + 0x86]
test esi, esi
je 0x10172710
cmp edi, 0xffffffff
jne 0x10172555
cmp ecx, 0x7fffffff
je 0x10172710
mov eax, dword [esp + 0x30]
mov al, byte [eax]
test al, al
je 0x1017256b
cmp al, 2
je 0x1017256b
test dl, dl
jne 0x10172710
mov eax, dword [esp + 0x10]
mov esi, dword [esi*4 + 0x1081366c]
mov dword [esp + 0x38], esi
mov edx, dword [eax + 0x1b5e0]
test edx, edx
je 0x101725e3
xor ebx, ebx
test edx, edx
jle 0x101725a8
mov eax, dword [esp + 0x1c]
add eax, 0xd0
cmp dword [eax + 4], ecx
jg 0x101725a8
jl 0x1017259e
cmp dword [eax], edi
ja 0x101725a8
inc ebx
add eax, 0x40e8
cmp ebx, edx
jl 0x10172593
cmp ebx, esi
je 0x10172710
lea eax, [esi - 1]
cmp ebx, eax
jge 0x101725e3
mov ecx, dword [esp + 0x1c]
imul eax, ebx, 0x40e8
add ecx, eax
mov eax, esi
sub eax, ebx
imul eax, eax, 0x40e8
sub eax, 0x40e8
push eax
push ecx
lea eax, [ecx + 0x40e8]
push eax
call fcn.105137c0
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, 0x29
mov esi, dword [esp + 0x14]
imul edx, ebx, 0x40e8
add eax, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xd0], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xd4], ecx
mov cl, byte [esp + 0xf]
mov byte [eax + 0x40e0], cl
mov eax, dword [esp + 0x30]
mov al, byte [eax]
test al, al
je 0x101726e6
cmp al, 2
je 0x101726e6
push dword [esp + 0x40]
call fcn.10140180
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x88], 0
je 0x10172661
movzx ecx, byte [esp + 0xf]
cmp byte [ecx + ecx*2 + 0x10813470], 0xd
jb 0x10172661
mov ecx, 1
jmp 0x10172663
xor ecx, ecx
movups xmm0, xmmword [esp + 0xdc]
mov esi, dword [esp + 0x1c]
movups xmmword [edx + esi + 0xa8], xmm0
movups xmm0, xmmword [esp + 0xec]
movups xmmword [edx + esi + 0xb8], xmm0
movq xmm0, qword [esp + 0xfc]
movq qword [edx + esi + 0xc8], xmm0
cmp byte [esp + 0xfc], 0
jne 0x101726ab
test ecx, ecx
jne 0x101726ab
xor eax, eax
jmp 0x101726b0
mov eax, 4
mov ecx, dword [esp + 0x10]
lea eax, [eax + edi*8]
mov ecx, dword [eax + ecx + 0x7c38]
add ecx, dword [esp + 0x104]
imul eax, ebx, 0x40e8
mov dword [eax + esi + 0xd8], ecx
mov eax, dword [esp + 0x12c]
imul ecx, ebx, 0x40e8
mov dword [ecx + esi + 0xdc], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0xec]
mov eax, dword [esi + 0x1b5e0]
inc eax
cmp eax, ecx
cmovl ecx, eax
mov dword [esi + 0x1b5e0], ecx
mov ecx, dword [esp + 0xf0]
jmp 0x10172714
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
cmp ecx, dword [ebx + 4]
jg 0x1017294d
jl 0x1017272b
cmp edi, dword [ebx]
jae 0x1017294d
mov eax, dword [esi + 0x10b0]
mov edx, dword [esi + 0x10b8]
mov ebx, dword [eax]
mov eax, dword [esi + 0x10bc]
test eax, eax
je 0x1017274c
movzx esi, byte [eax + 0x88]
jmp 0x1017274e
xor esi, esi
test edx, edx
je 0x1017275b
movzx eax, byte [edx + 0x88]
jmp 0x1017275d
xor eax, eax
add eax, esi
cmp byte [ebx + 0x88], 0
mov dword [esp + 0x38], eax
je 0x10172782
movzx eax, byte [esp + 0xf]
cmp byte [eax + eax*2 + 0x10813470], 0xd
jb 0x10172782
mov edx, 1
jmp 0x10172784
xor edx, edx
mov esi, dword [esp + 0x2c]
mov al, byte [esp + 0xf]
movups xmm0, xmmword [esp + 0xdc]
mov byte [esi + 0xcc], al
mov eax, dword [esp + 0x88]
mov dword [esi + 4], ecx
mov ecx, 0x29
mov dword [esi], edi
lea edi, [esi + 0x18]
mov esi, ebx
mov ebx, dword [esp + 0x2c]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0xec]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0xfc]
movq qword [eax + 0x20], xmm0
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + 0xfc]
movzx eax, cl
mov dword [ebx + 0xc8], edx
mov dword [ebx + 0xc4], eax
test cl, cl
jne 0x101727f5
test edx, edx
jne 0x101727f5
xor eax, eax
jmp 0x101727fa
mov eax, 4
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
movups xmm0, xmmword [esp + 0x104]
mov edi, dword [esp + 0x8c]
lea eax, [eax + ecx*8]
mov eax, dword [eax + esi + 0x7c38]
add eax, dword [esp + 0x104]
movups xmmword [ebx + 0x3258], xmm0
mov dword [ebx + 0xbc], eax
movups xmm0, xmmword [esp + 0x114]
mov eax, dword [esp + 0x12c]
mov dword [ebx + 0xc0], eax
lea eax, [esi + 0x23b81]
movups xmmword [ebx + 0x3268], xmm0
movq xmm0, qword [esp + 0x124]
movq qword [ebx + 0x3278], xmm0
push dword [edi + 0x144]
push eax
push dword [edi + 0x100]
call fcn.105137c0
push dword [edi + 0x144]
push dword [esi + 0x10c8]
push dword [edi + 0x140]
call fcn.105137c0
mov eax, dword [esp + 0x3c]
add esp, 0x18
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x5cf24]
test ecx, ecx
je 0x1017294d
cmp dword [esp + 0x5c], 0
jne 0x1017294d
cmp byte [ebx + 0xa0], 0
jne 0x10172913
cmp byte [esp + 0xfc], 0
jne 0x10172913
cmp byte [ebx + 0x2d], 0
jle 0x1017294d
mov eax, dword [esi + 0x31bc]
movups xmm0, xmmword [0x10813720]
shl eax, 2
sar eax, 8
movups xmmword [esp + 0xbc], xmm0
movups xmm0, xmmword [0x10813710]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
movups xmmword [esp + 0xcc], xmm0
mov eax, dword [esp + eax*4 + 0xac]
mov ecx, dword [ecx]
cmp eax, ecx
cmovl ecx, eax
jmp 0x10172949
mov eax, dword [esi + 0x31bc]
movups xmm0, xmmword [0x10813740]
mov dword [esp + 0xb4], 9
lea eax, [eax + eax*4]
sar eax, 8
movups xmmword [esp + 0xa4], xmm0
mov ecx, dword [esp + eax*4 + 0xa4]
mov eax, dword [esp + 0x18]
cmp ecx, dword [eax]
cmovge ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x44], eax
jle 0x1017295e
cmp dword [esp + 0x50], 0
jne 0x10172975
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x48]
jl 0x10171de5
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x17c
ret