Function at 0x1009b530
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x1d0]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1dc]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1e0]
push ebx
mov ebx, dword [esp + 0x1f8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1e8]
push ebp
mov ebp, dword [esp + 0x1dc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1f0]
push esi
mov esi, dword [esp + 0x1d8]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 0x100], eax
mov eax, dword [esi + 0x3eee0]
push edi
push 0xa4
push 0
mov edi, dword [eax + 0x28]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x138]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebx
call fcn.10513d40
lea eax, [esp + 0x13c]
mov dword [esp + 0xdc], 0
mov dword [esp + 0x104], eax
add esp, 0xc
lea eax, [esp + 0xf8]
mov dword [ebp + 0xfd0], eax
mov eax, dword [esi + 0x917c0]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x78]
mov al, byte [eax + 0x105feda8]
movzx ecx, al
mov byte [esp + 0x54], al
mov eax, dword [ecx*4 + 0x105fee38]
mov dword [esp + 0xc4], eax
imul eax, eax
mov dword [esp + 0x5c], eax
movzx eax, byte [edx + 0x105fec1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x1a78]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1008]
mov eax, dword [eax + 0x8c]
shr eax, 3
and eax, 1
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
add eax, 0x133a0
mov dword [esp + 0xe4], eax
mov eax, dword [esi + 0x3add8]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x34]
cdq
idiv dword [esp + 0x60]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa8]
add eax, 8
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x10c], eax
je 0x1009b6c4
shr ebx, 1
mov dword [esp + 0x38], ebx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xa8], ebx
jle 0x1009c2a4
lea eax, [ecx*4 + 0x105ff108]
shl ecx, 7
mov dword [esp + 0xf4], eax
lea eax, [ecx + 0x107edf00]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x60]
shl eax, 2
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x34]
imul eax, dword [esp + 0x3c]
lea eax, [edi + eax*4]
mov dword [esp + 0x44], eax
nop
mov eax, ebx
and eax, 0x8000000f
jns 0x1009b730
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x1009b752
push dword [esp + 0xd0]
mov eax, dword [esi + 0x8f34c]
push dword [esp + 0xa4]
push dword [esp + 0xec]
call eax
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov ebx, dword [esi + 0x3adf4]
imul ebx, dword [esp + 0x34]
mov byte [esp + 0x1b], 0
movzx eax, byte [ecx + 0x105fec1c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x3ade8]
movzx ebp, byte [ecx + 0x105fec34]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0xa4], htons
movzx esi, byte [eax + 0x105fec1c]
mov eax, dword [esp + 0x34]
cdq
lea edi, [ebx*4]
idiv esi
mov ecx, eax
mov eax, dword [esp + 0x14]
imul ecx, dword [eax + 0x3ade4]
mov eax, dword [esp + 0x1c]
cdq
idiv esi
mov edx, dword [esp + 0x14]
add ecx, eax
imul ecx, ecx, 0xa4
mov eax, dword [edx + 0x3adec]
add ecx, dword [edx + 0x3addc]
mov dword [edi + eax], ecx
mov eax, dword [edx + 0x3adec]
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [edi + 0xfd0], eax
mov eax, dword [edx + 0x3adf8]
add eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [edi + 0xfe8], eax
mov eax, dword [edx + 0x3adf4]
mov dword [edi + 0xfec], eax
mov eax, dword [edx + 0x3ade8]
movzx esi, byte [eax + 0x105fec1c]
mov eax, dword [esp + 0x34]
cdq
idiv esi
mov ecx, eax
mov eax, dword [esp + 0x14]
imul ecx, dword [eax + 0x3abd8]
mov eax, dword [esp + 0x1c]
cdq
idiv esi
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
add ecx, eax
imul eax, ecx, 0x54
add esi, ebp
mov ecx, dword [esp + 0x7c]
add eax, dword [edx + 0x3abd0]
mov dword [ecx + 0x3174], eax
mov eax, dword [edx + 0x3add8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + 0x3add4]
add ecx, ebx
cmp ecx, eax
cmovge ecx, eax
cmp esi, edx
push ecx
cmovge esi, edx
lea eax, [edi + 0xfb8]
push esi
push ebx
push dword [esp + 0x28]
push ebp
push dword [esp + 0x48]
push eax
push edi
call fcn.10075640
mov eax, dword [esp + 0x34]
xor ecx, ecx
add esp, 0x20
mov eax, dword [eax + 0x3e7a8]
cmp byte [eax + 0x4d], cl
sete cl
lea ecx, [ecx*2 + 1]
lea eax, [ebx*4]
mov dword [esp + 0x20], ecx
lea esi, [edi + 0x84]
mov dword [esp + 0x48], eax
shl ebp, 2
mov edi, ecx
mov ecx, dword [esi - 0x70]
lea esi, [esi + 0x538]
mov edx, eax
mov ebx, ebp
sar edx, cl
mov ecx, dword [esi - 0x5a4]
sar ebx, cl
mov ecx, 4
cmp dl, cl
movzx eax, dl
cmova ecx, eax
movzx eax, bl
mov byte [esi - 0x538], cl
mov ecx, 4
cmp bl, cl
cmova ecx, eax
mov eax, dword [esp + 0x48]
mov byte [esi - 0x537], cl
sub edi, 1
jne 0x1009b8b3
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x78]
mov eax, dword [ebp + 0xfd0]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [ebp + 0xfd0]
mov eax, dword [eax]
mov byte [eax + 0x1c], 0
cmp byte [ebp + 0xfd4], 0
je 0x1009b92a
mov dword [ebp + 0xfdc], 0
cmp byte [ebp + 0xfd5], 0
je 0x1009b93d
mov dword [ebp + 0xfd8], 0
mov edi, dword [esp + 0xc4]
xor bl, bl
mov byte [esp + 0xdc], bl
nop dword [eax]
push 0
mov eax, dword [esp + 0x18]
push 0
push 0
push 0x80
push dword [esp + 0x48]
mov ecx, dword [eax + 0x3e7a8]
push dword [esp + 0x50]
mov esi, dword [esp + 0xbc]
push dword [esp + 0x5c]
movzx eax, byte [ecx + 0x3d]
push 5
push 0
push 0
push dword [esp + 0x104]
push dword [esp + 0x80]
push edi
push edi
push eax
push dword [ecx + 0x1c]
push ebp
call fcn.100f8590
push 0x80
push dword [esp + 0x80]
push dword [esp + 0x88]
push dword [esp + 0x94]
push edi
push dword [esp + 0xc8]
push edi
push edi
push dword [esp + 0xd0]
push dword [esp + 0xdc]
call fcn.101072e0
add esp, 0x6c
push dword [esp + 0x50]
push edi
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x84]
push dword [esp + 0x68]
push 0
call fcn.1015b4b0
push dword [esp + 0x78]
push dword [esp + 0x70]
call dword [0x10b4904c]
add esp, 0x24
movzx edx, bl
mov ecx, esi
cmp eax, ecx
cmovl ecx, eax
cmp eax, esi
mov dword [esp + 0xa4], ecx
movzx ecx, byte [esp + 0x1b]
cmovge edx, ecx
inc bl
mov byte [esp + 0xdc], bl
mov al, dl
mov byte [esp + 0x1b], al
cmp bl, 0xd
jb 0x1009b950
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
push 0
push 0
push 0
push 0x80
push ebx
push dword [esp + 0x50]
mov byte [esp + 0x114], al
mov eax, dword [esp + 0x2c]
push esi
push 5
push 0
mov ecx, dword [eax + 0x3e7a8]
push 0
push dword [esp + 0x124]
push dword [esp + 0x80]
movzx eax, byte [ecx + 0x3d]
push edi
push edi
push eax
push dword [ecx + 0x1c]
push ebp
call fcn.100f8590
push 0x80
push ebx
push dword [esp + 0x88]
push esi
mov esi, dword [esp + 0xc0]
push edi
push dword [esp + 0xc8]
push edi
push edi
push esi
push dword [esp + 0xdc]
call fcn.101072e0
add esp, 0x6c
push dword [esp + 0x50]
push edi
push dword [esp + 0x78]
push esi
push dword [esp + 0x84]
mov esi, dword [esp + 0x68]
push esi
push 0
call fcn.1015b4b0
mov eax, dword [esp + 0x110]
mov ecx, dword [eax]
mov eax, 1
mov cl, byte [ecx + 0x105fec9c]
shl eax, cl
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x130]
push eax
push 0
push 0
push 0
push esi
call fcn.101071f0
mov eax, dword [ebp + 0x1008]
add esp, 0x30
test byte [eax + 0x8c], 8
lea eax, [esp + 0x114]
push eax
push dword [esp + 0xb8]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0xc4]
push dword [esp + 0x50]
push dword [esp + 0x90]
push dword [esp + 0x98]
push dword [esp + 0x6c]
je 0x1009bb4e
call fcn.1007c690
jmp 0x1009bb53
call fcn.1007d200
mov esi, dword [esp + 0x34]
add esp, 0x20
cmp dword [esi + 0x3eec4], 0
je 0x1009bc3c
movzx eax, word [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov esi, 1
test eax, eax
je 0x1009bc0b
movsd xmm0, qword [0x1059ba78]
call fcn.10526310
mov ebp, dword [esp + 0x20]
mov edi, esi
movsd qword [esp + 0x64], xmm0
nop dword [eax + eax]
mov eax, dword [esp + 0xb4]
sub esp, 8
mov ecx, dword [esp + 0x48]
mov eax, dword [eax]
movsx eax, word [eax + ebx*2]
mov eax, dword [ecx + eax*4]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
movd xmm0, esi
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10521318
fdiv qword [esp + 0x6c]
xor eax, eax
add esp, 8
test esi, esi
setg al
inc ebx
inc eax
add edi, eax
fstp qword [esp + 0xac]
cvttsd2si ecx, qword [esp + 0xac]
add edi, ecx
cmp ebx, ebp
jl 0x1009bba0
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0xc4]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x60]
mov ebx, dword [esp + 0x14]
shl esi, 9
mov ecx, dword [ebx + 0x6d674]
imul ecx, dword [esp + 0xa0]
add ecx, eax
mov eax, dword [ebx + 0x917b0]
mov ebx, dword [esp + 0x38]
mov dword [eax + ecx*4], esi
mov esi, dword [esp + 0x14]
movzx eax, word [esp + 0x2c]
push 0
push eax
push 0x80
push ebx
push dword [esp + 0x64]
push 0
push 0
push dword [esp + 0xd4]
push ebp
call fcn.1015ad50
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
cdq
add esp, 0x24
idiv dword [esp + 0x60]
mov ecx, dword [esi + 0x6d674]
imul ecx, dword [esp + 0xa0]
mov esi, dword [esi + 0x917ac]
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x10], esi
movlpd qword [esp + 0xac], xmm0
add ecx, eax
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc8], 0
movlpd qword [esp + 0x48], xmm0
lea ebx, [ecx*8]
mov dword [esp + 0x84], eax
sub ebx, ecx
mov dword [esp + 0x58], ebx
mov dword [esi + ebx*8 + 0x18], 0x10001
mov dword [esi + ebx*8 + 0x10], 0
mov dword [esi + ebx*8 + 0x14], 0
mov dword [esi + ebx*8 + 8], 0
mov dword [esi + ebx*8 + 0xc], 0
mov dword [esi + ebx*8 + 0x20], 0
mov dword [esi + ebx*8 + 0x24], 0
test edi, edi
jle 0x1009bfd1
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x20]
movlpd qword [esp + 0xec], xmm0
mov esi, dword [esp + 0xf0]
movlpd qword [esp + 0xd4], xmm0
mov ebx, dword [esp + 0xd8]
mov edi, dword [esp + 0xd4]
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x9c], 1
mov dword [esp + 0x98], 1
mov dword [esp + 0xcc], 0
nop dword [eax]
xor ebp, ebp
mov dword [esp + 0xc0], ebp
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0xbc], ebp
mov ebp, dword [esp + 0x9c]
shl dword [esp + 0xbc], 7
movzx ebp, bp
mov dword [esp + 0xe0], ebp
mov ebp, dword [esp + 0x98]
movzx ebp, bp
mov dword [esp + 0xe8], ebp
mov ebp, dword [esp + 0xc0]
jmp 0x1009bdf4
mov edi, dword [esp + 0x48]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xcc]
add eax, ebp
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0xbc]
add eax, ebp
add edx, eax
mov dword [esp + 0x9c], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x48], esi
mov eax, dword [eax + 0x1008]
test byte [eax + 0x8c], 8
je 0x1009be50
movzx esi, word [ecx + ecx]
movzx ebx, word [edx + edx]
jmp 0x1009be56
movzx esi, byte [ecx]
movzx ebx, byte [edx]
xor ecx, ecx
mov ebp, dword [esp + 0x10]
add dword [esp + 0x88], esi
mov edi, esi
mov eax, esi
adc dword [esp + 0x84], ecx
add dword [esp + 0x90], ebx
adc dword [esp + 0x8c], ecx
sub edi, ebx
sub eax, ebx
sbb ecx, ecx
add dword [esp + 0x28], eax
mov eax, esi
adc dword [esp + 0x94], ecx
imul eax, esi
cdq
add eax, dword [esp + 0x20]
mov ecx, edx
mov edx, dword [esp + 0x58]
adc ecx, dword [esp + 0x48]
mov dword [esp + 0xec], eax
mov dword [esp + 0xd4], ecx
mov dword [ebp + edx*8 + 8], eax
mov eax, ebp
mov dword [eax + edx*8 + 0xc], ecx
mov eax, ebx
imul eax, ebx
cdq
add eax, dword [esp + 0x9c]
mov ecx, edx
mov edx, dword [esp + 0x58]
adc ecx, dword [esp + 0x98]
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], ecx
mov dword [ebp + edx*8 + 0x10], eax
mov eax, ebp
mov dword [eax + edx*8 + 0x14], ecx
mov eax, dword [esp + 0xe8]
movsx ecx, ax
cmp ecx, esi
movzx edx, cx
movzx eax, si
cmovle edx, eax
movzx ecx, dx
mov edx, dword [esp + 0x58]
movzx eax, cx
mov dword [esp + 0x98], eax
mov eax, ebp
mov dword [esp + 0xe8], ecx
mov word [eax + edx*8 + 0x18], cx
mov eax, dword [esp + 0xe0]
movsx edx, ax
cmp edx, ebx
movzx esi, dx
movzx ecx, bx
mov ebx, ebp
mov ebp, dword [esp + 0xc0]
cmovle esi, ecx
mov ecx, dword [esp + 0x58]
movzx edx, si
mov esi, dword [esp + 0xd4]
imul edi, edi
movzx eax, dx
mov dword [esp + 0x9c], eax
mov word [ebx + ecx*8 + 0x1a], dx
mov dword [esp + 0xe0], edx
mov eax, edi
mov edi, dword [esp + 0xc4]
cdq
add eax, dword [esp + 0xac]
mov dword [ebx + ecx*8 + 0x20], eax
adc edx, dword [esp + 0x64]
inc ebp
mov dword [ebx + ecx*8 + 0x24], edx
mov ecx, dword [esp + 0xec]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc0], ebp
cmp ebp, edi
jl 0x1009bdf0
mov ecx, dword [esp + 0xc8]
mov ebx, dword [esp + 0x3c]
inc ecx
add dword [esp + 0xcc], ebx
cmp ecx, edi
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0xec]
jl 0x1009bda0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
jmp 0x1009c013
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x3ee3b], 0
je 0x1009c092
mov ecx, eax
call fcn.10511ed0
mov eax, dword [esp + 0x100]
mov dword [esp + 0x20], 0
addsd xmm0, qword [eax]
movsd qword [eax], xmm0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
xorps xmm0, xmm0
push eax
push dword [esp + 0x88]
movlpd qword [esp + 0x70], xmm0
push dword [esi + ebx*8 + 0x24]
push dword [esi + ebx*8 + 0x20]
push 0
push dword [esp + 0x90]
push dword [esp + 0x98]
push edi
call fcn.1009ac40
movd xmm0, dword [esp + 0x44]
add esp, 0x24
mov eax, dword [esp + 0x104]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
cdq
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x84]
push eax
push ecx
push eax
push ecx
call fcn.10511b50
push esi
push edi
push edx
push eax
call fcn.10511aa0
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + ebx*8 + 8]
sub ecx, eax
mov eax, ebp
mov eax, dword [eax + ebx*8 + 0xc]
sbb eax, edx
mov edx, ebp
mov dword [edx + ebx*8 + 0xc], eax
mov eax, dword [esp + 0x8c]
push eax
mov dword [edx + ebx*8 + 8], ecx
mov ecx, dword [esp + 0x94]
push ecx
push eax
push ecx
call fcn.10511b50
push esi
push edi
push edx
push eax
call fcn.10511aa0
mov ecx, dword [ebp + ebx*8 + 0x10]
sub ecx, eax
mov eax, ebp
mov eax, dword [eax + ebx*8 + 0x14]
sbb eax, edx
mov edx, ebp
mov dword [edx + ebx*8 + 0x14], eax
mov eax, dword [esp + 0x94]
push eax
mov dword [edx + ebx*8 + 0x10], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push ecx
call fcn.10511b50
push esi
push edi
push edx
push eax
call fcn.10511aa0
mov edi, ebp
mov ebp, dword [esp + 0x30]
sub dword [edi + ebx*8 + 0x20], eax
mov ecx, dword [edi + ebx*8 + 0x24]
mov eax, dword [esp + 0xa4]
sbb ecx, edx
cdq
xor esi, esi
mov dword [edi + ebx*8 + 0x28], eax
mov eax, dword [esp + 0x40]
mov dword [edi + ebx*8 + 0x24], ecx
mov dword [edi + ebx*8 + 0x2c], edx
lea ecx, [esi + 1]
mov edx, dword [esp + 0x5c]
mov dword [eax], 0
cmp edx, ecx
jle 0x1009c20d
cmp dword [esp + 0x108], 8
jb 0x1009c1ed
cmp dword [0x10b47804], 2
jl 0x1009c1ed
lea eax, [edx - 1]
and eax, 0x80000007
jns 0x1009c190
dec eax
or eax, 0xfffffff8
inc eax
sub edx, eax
xorps xmm1, xmm1
mov eax, dword [esp + 0x40]
xorps xmm2, xmm2
nop dword [eax]
movups xmm0, xmmword [eax + ecx*4]
pabsd xmm0, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [eax + ecx*4 + 0x10]
add ecx, 8
pabsd xmm0, xmm0
pmaxsd xmm2, xmm0
cmp ecx, edx
jl 0x1009c1a0
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd esi, xmm1
cmp ecx, dword [esp + 0x5c]
jge 0x1009c20d
mov ebp, dword [esp + 0x5c]
mov eax, dword [eax + ecx*4]
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
cmovg eax, esi
inc ecx
mov esi, eax
mov eax, dword [esp + 0x40]
cmp ecx, ebp
jl 0x1009c1f1
mov ebp, dword [esp + 0x30]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
movsd qword [edi + ebx*8 + 0x30], xmm0
mov ebx, dword [esp + 0x1c]
add ebx, dword [esp + 0x60]
mov eax, ebx
mov dword [esp + 0x1c], ebx
and eax, 0x8000000f
jns 0x1009c237
dec eax
or eax, 0xfffffff0
add eax, 1
je 0x1009c244
mov eax, dword [esp + 0xa8]
cmp ebx, eax
jl 0x1009c281
push dword [esp + 0x10c]
mov edi, dword [esp + 0xd4]
mov esi, dword [esp + 0x18]
push edi
push dword [esp + 0xa8]
push dword [esp + 0xf0]
mov eax, dword [esi + 0x8f350]
call eax
mov eax, dword [esp + 0xb8]
add esp, 0x10
inc edi
mov dword [esp + 0xd0], edi
jmp 0x1009c285
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x110]
add dword [esp + 0x44], ecx
cmp ebx, eax
jl 0x1009b720
mov dword [ebp + 0xfd0], 0
jmp 0x1009c2aa
mov dword [ebp + 0xfd0], ebx
mov ecx, dword [esp + 0x1d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x1c8
ret