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

Disassembly:
sub esp, 0x80
mov eax, dword [0x1032e6c0]
xor eax, esp
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x8c]
push esi
mov esi, dword [ebx + 0x58]
push edi
mov edi, dword [ebx + 0x54]
sar ecx, 0x10
mov edx, dword [esi + 0x28]
and ecx, 0xf
mov dword [esp + 0x3c], ebx
mov eax, dword [edi + 0x9c]
mov dword [esp + 0x10], eax
cmp dword [edx + 0xc], 0
mov dword [esp + 0x50], edi
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
je 0x1015a353
cmp dword [edx + 4], ecx
je 0x1015a36e
mov dword [edx + 4], ecx
movups xmm0, xmmword [esi + 0xc]
movups xmmword [edx + 8], xmm0
movq xmm0, qword [esi + 0x1c]
movq qword [edx + 0x18], xmm0
mov eax, dword [esi + 0x24]
mov dword [edx + 0x20], eax
mov dword [esp + 0x60], ebx
lea esi, [ebp + 4]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov eax, dword [edx + 0x10]
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], ecx
xor ecx, ecx
mov dword [ebp], ebx
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov dword [esi], eax
test eax, eax
jne 0x1015a3d4
push dword [esp + 0x98]
push esi
push ebx
call fcn.10156400
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x1015ac0b
mov eax, dword [esi]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], fcn.10156390
test ecx, ecx
jne 0x1015ac0b
mov esi, dword [esi]
xor ebx, ebx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x20], ecx
cmp edx, dword [esi + 4]
jb 0x1015a3fe
mov ecx, 6
mov dword [esp + 0x20], ecx
jmp 0x1015a504
mov eax, dword [esi + 8]
movzx edx, word [eax + edx*2]
and edx, 0x3fff
mov dword [esp + 0x28], edx
mov eax, dword [edx*4 + 0x102c1bb0]
mov ebx, dword [esi + edx*4 + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
mov eax, dword [eax*4 + 0x102c0f2c]
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x1015a504
mov eax, dword [esi]
mov ecx, dword [eax + 0x64]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
push dword [eax + 4]
push ecx
call fcn.10150060
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov ebx, eax
test ecx, ecx
jne 0x1015ac0b
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x24], esi
mov eax, dword [eax + 8]
test eax, eax
je 0x1015a4f8
push dword [esi]
push ebx
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x1015a4fc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1015a49b
push ebx
call eax
add esp, 4
push ebx
push dword [esp + 0x28]
call fcn.101500c0
mov ecx, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x1015a504
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xa0]
movzx edx, word [eax + ecx*2]
xor ecx, ecx
and edx, 0x3fff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
mov eax, dword [edx*4 + 0x102c1bb0]
mov ebx, dword [esi + edx*4 + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
mov eax, dword [eax*4 + 0x102c0f2c]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x1015a434
jmp 0x1015a504
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + edx*4 + 0x10], ebx
test ecx, ecx
jne 0x1015ac0b
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov esi, dword [eax*4 + 0x102c0f2c]
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1015a533
lea ecx, [esp + 0x60]
push ecx
push ebx
call eax
add esp, 8
jmp 0x1015a54e
movups xmm0, xmmword [esp + 0x60]
movups xmmword [ebx + 4], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [ebx + 0x14], xmm0
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1015a567
push ebx
push dword [esp + 0x4c]
call eax
add esp, 8
test eax, eax
jne 0x1015ac0d
mov eax, dword [esp + 0xa4]
and eax, 0xfffffffb
or eax, 0x2801
push eax
push dword [esp + 0xa4]
push dword [esp + 0x44]
call fcn.1014abc0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x1015ac07
cmp dword [esp + 0x74], 1
jne 0x1015a7e1
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x80]
mov al, byte [eax + 0x38]
test al, al
je 0x1015a5cb
jns 0x1015a7e1
mov eax, dword [esp + 0x98]
cmp byte [eax + 0x14], 0
jne 0x1015a7e1
mov eax, dword [ecx + 0x54]
mov esi, dword [ebp + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x40], esi
mov eax, dword [eax + 0x28]
add eax, 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
movzx eax, word [eax]
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0x16c]
mov dword [esp + 0x38], eax
movzx eax, word [ecx + 0x44]
mov ecx, eax
mov dword [esp + 0x7c], 0x10000
shl ecx, 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
test ax, ax
je 0x1015a7e1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov eax, dword [eax*4 + 0x102c0f2c]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1015a7e1
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push ebx
call eax
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp word [esp + 0x24], ax
mov eax, dword [esp + 0x44]
jne 0x1015a67e
test eax, eax
jle 0x1015a6ec
cmp eax, dword [esi + 0x170]
je 0x1015a6ec
push eax
push dword [esp + 0x40]
push ebp
call fcn.1015a0a0
mov dword [esp + 0x60], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x170], eax
mov eax, dword [esp + 0x18]
mov ax, word [eax]
mov word [esi + 0x16c], ax
mov eax, dword [esp + 0x5c]
add eax, 0x8000
shr eax, 0x10
cwde
mov dword [esi + 0x178], eax
mov eax, dword [esp + 0x38]
cmp word [esp + 0x24], ax
mov eax, dword [esp + 0x28]
jne 0x1015a70f
test eax, eax
jle 0x1015a7a2
cmp eax, dword [esi + 0x174]
je 0x1015a7a2
push eax
push dword [esp + 0x40]
push ebp
call fcn.1015a0a0
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], esi
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x174], eax
mov eax, dword [esp + 0x18]
mov ax, word [eax]
mov word [ecx + 0x16c], ax
mov eax, dword [esp + 0x54]
add eax, 0x8000
shr eax, 0x10
cwde
mov dword [ecx + 0x17c], eax
mov eax, dword [esp + 0x30]
push eax
sub eax, esi
sub eax, 0x80000
push eax
call fcn.10149760
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ecx + 0x180], eax
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x1c]
add esi, 0x6c
push dword [eax + 0x17c]
push dword [eax + 0x178]
push esi
call fcn.1014c200
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 0x180]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x88]
push eax
push esi
call fcn.1014c980
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 8]
mov byte [ebp + 0x10], al
test al, al
je 0x1015a830
movups xmm0, xmmword [ecx + 0xc]
lea esi, [ebp + 0x24]
movups xmmword [ebp + 0x14], xmm0
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x20]
movups xmm0, xmmword [ebp + 0x14]
mov dword [esi], eax
lea eax, [esp + 0x7c]
push eax
mov dword [esi + 4], ecx
movups xmmword [esp + 0x80], xmm0
call fcn.1014b460
add esp, 4
test eax, eax
jne 0x1015a830
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.1014e9b0
add esp, 8
cmp dword [edi + 0x48], 0x6f75746c
je 0x1015a846
mov dword [esp + 0x2c], 7
jmp 0x1015a9d8
cmp byte [ebp + 0x10], 0
je 0x1015a85e
push dword [ebp + 0x28]
lea eax, [edi + 0x6c]
push dword [ebp + 0x24]
push eax
call fcn.1014c9c0
add esp, 0xc
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 8]
mov dword [ebp + 0x2c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
add eax, dword [esp + 0x30]
mov dword [ebp + 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x38], eax
cmp word [edi + 0x6e], 0
je 0x1015a9d8
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x1015a8f0
mov eax, dword [esp + 0x4c]
push ebx
add eax, 0x14
push eax
push esi
push dword [esp + 0xac]
call ecx
mov esi, eax
mov dword [esp + 0x3c], eax
add esp, 0x10
test esi, esi
jne 0x1015ac07
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x74], 1
je 0x1015a9ad
mov eax, dword [esi + 0x38]
cmp eax, 1
jbe 0x1015a9ad
test byte [esi + 0xab4], 4
jne 0x1015a9ad
mov ecx, dword [esi + 0x40]
mov esi, dword [ebp + 0x34]
imul edi, eax, 0x2c
add edi, ecx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x24], eax
sub esi, dword [edi - 0x28]
mov eax, dword [edi - 0x24]
add eax, esi
mov dword [esp + 0x14], edi
cmp dword [esp + 0x24], 0x18
lea edi, [ecx - 8]
mov dword [esp + 0x10], esi
cmovge edi, ecx
cmp esi, 0x18
lea ecx, [eax + 8]
mov dword [esp + 0x38], edi
cmovge ecx, eax
mov eax, edi
mov edi, dword [esp + 0x50]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esp + 0x1c], ecx
mov dword [ebp + 0x2c], eax
lea esi, [ecx + 0x20]
mov ecx, eax
and esi, 0xffffffc0
mov dword [ebp + 0x34], esi
cmp eax, edx
jl 0x1015a984
cmp dword [esp + 0x24], 0
jle 0x1015a984
lea ecx, [eax - 0x40]
mov dword [ebp + 0x2c], ecx
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 0x24]
jg 0x1015a99a
cmp dword [esp + 0x10], 0
jle 0x1015a99a
lea eax, [esi + 0x40]
mov dword [ebp + 0x34], eax
sub ecx, dword [esp + 0x38]
mov dword [edi + 0x90], ecx
mov eax, dword [ebp + 0x34]
sub eax, dword [esp + 0x1c]
jmp 0x1015a9d2
mov edx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x34]
lea ecx, [edx + 0x20]
and ecx, 0xffffffc0
lea eax, [esi + 0x20]
and eax, 0xffffffc0
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x34], eax
sub ecx, edx
mov dword [edi + 0x90], ecx
mov eax, dword [ebp + 0x34]
sub eax, esi
mov dword [edi + 0x94], eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
je 0x1015aa7b
lea esi, [ebp + 0x14]
lea eax, [edi + 0x14]
push esi
push eax
call fcn.1014c980
lea eax, [esp + 0x38]
push esi
push eax
call fcn.1014e9b0
add esp, 0x10
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x1015aa93
neg eax
push 0
push eax
lea eax, [edi + 0x14]
push eax
call fcn.1014c9c0
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.1014c670
mov ecx, dword [esp + 0x8c]
add esp, 8
mov edi, dword [esp + 0x7c]
add ecx, 0x3f
mov edx, dword [esp + 0x88]
and edi, 0xffffffc0
mov eax, dword [esp + 0x50]
and ecx, 0xffffffc0
mov esi, dword [esp + 0x80]
add edx, 0x3f
and edx, 0xffffffc0
mov dword [esp + 0x84], ecx
sub ecx, edi
mov dword [esp + 0x7c], edi
mov dword [eax + 0x18], ecx
and esi, 0xffffffc0
mov eax, edx
mov dword [esp + 0x80], esi
sub eax, esi
mov dword [esp + 0x88], edx
mov esi, dword [esp + 0x50]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x30]
add eax, edi
mov dword [esi + 0x20], edi
and eax, 0xffffffc0
mov dword [esi + 0x24], edx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x34]
add eax, edx
and eax, 0xffffffc0
mov dword [esi + 0x30], eax
cmp dword [esp + 0x74], 1
je 0x1015ab9e
mov eax, dword [esi + 4]
test byte [eax + 8], 4
jne 0x1015ab4e
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0xa0]
cmp ecx, dword [eax + 4]
jae 0x1015ab9e
mov eax, dword [eax + 8]
mov ax, word [eax + ecx*2]
shr ax, 0xf
test al, al
je 0x1015ab9e
cmp byte [ebx + 0x20], 0
je 0x1015ab9e
mov eax, dword [ebx + 8]
lea edi, [esi + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
jmp 0x1015abad
cmp dword [esi + 0x28], 0
lea edi, [esi + 0x28]
je 0x1015abaf
mov eax, dword [ebp + 0x34]
sub eax, dword [ebp + 0x2c]
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
add eax, 0x20
mov dword [esi + 0x48], 0x6f75746c
and eax, 0xffffffc0
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x2c]
jmp 0x1015ac0d
mov eax, esi
jmp 0x1015ac0d
mov eax, ecx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026465b
add esp, 0x80
ret