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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
mov ebx, dword [esp + 0xf0]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0xfc]
mov eax, ebx
push edi
mov edi, dword [esp + 0xf8]
shl eax, 0x10
mov dword [esp + 0x20], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
test edi, edi
je 0x1012bcc5
test esi, esi
je 0x1012bcc5
lea eax, [ebx - 2]
cmp eax, 0x1e
ja 0x1012bcc5
mov ebx, dword [edi]
mov dword [esp + 0x38], ebx
test ebx, ebx
jne 0x1012b43e
mov dword [esp + 0x20], 6
mov ecx, ebx
push dword [esp + 0x48]
push ecx
call fcn.100d3720
mov ecx, dword [esp + 0xec]
add esp, 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101eafcd
add esp, 0xd8
ret
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi]
imul eax, dword [esi + 4]
lea eax, [eax + eax*2]
shl eax, 2
push eax
push ebx
call fcn.100d36c0
add esp, 0xc
mov ecx, eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x48], ecx
jne 0x1012b412
mov edx, dword [edi + 4]
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
test edi, edi
je 0x1012bcb8
test eax, eax
je 0x1012bcb8
test edx, edx
je 0x1012bb32
movq xmm1, qword [0x10256980]
mov esi, dword [edx + 8]
mov dword [esp + 0x34], esi
test esi, esi
je 0x1012bb17
movups xmm0, xmmword [esi]
xor ecx, ecx
mov byte [esp + 0x13], 0
xor ebx, ebx
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x98], xmm0
xor ebp, ebp
xor edi, edi
movups xmm0, xmmword [esi + 0x10]
xor edx, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ecx
movups xmmword [esp + 0xa8], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [esp + 0xb8], xmm0
mov eax, dword [esp + 0xb8]
sub eax, 1
je 0x1012b590
sub eax, 1
je 0x1012b530
sub eax, 1
jne 0x1012b604
mov ecx, dword [esp + 0xb4]
mov al, 1
mov ebp, dword [esp + 0xb0]
mov byte [esp + 0x13], al
mov dword [esp + 0x28], ecx
jmp 0x1012b534
mov al, cl
mov ebp, ecx
mov ebx, ecx
mov ecx, ebp
test al, al
je 0x1012b572
mov eax, dword [esp + 0xa8]
mov edx, ecx
cmp eax, ebp
mov edi, ebx
cmovl edx, eax
cmp eax, ecx
mov dword [esp + 0x24], edx
cmovg ecx, eax
mov eax, dword [esp + 0xac]
cmp eax, dword [esp + 0x28]
cmovl edi, eax
cmp eax, ebx
mov dword [esp + 0x1c], edi
cmovg ebx, eax
mov al, byte [esp + 0x13]
jmp 0x1012b596
mov edx, dword [esp + 0xa8]
mov al, 1
mov edi, dword [esp + 0xac]
mov ecx, edx
mov dword [esp + 0x24], edx
mov ebx, edi
mov dword [esp + 0x1c], edi
jmp 0x1012b596
xor edx, edx
mov al, cl
xor edi, edi
mov dword [esp + 0x14], ecx
mov ebp, ebx
test al, al
je 0x1012b5ce
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0x24]
cmovl edx, eax
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esp + 0x9c]
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmovl edi, eax
cmp eax, ebx
mov ebx, ecx
cmovg ebp, eax
jmp 0x1012b5e0
mov edx, dword [esp + 0x98]
mov ebx, edx
mov edi, dword [esp + 0x9c]
mov ebp, edi
mov ecx, dword [esp + 0xa4]
cmp ecx, ebp
mov eax, dword [esp + 0xa0]
cmovg ebp, ecx
cmp eax, ebx
cmovg ebx, eax
cmp ecx, edi
cmovl edi, ecx
cmp eax, edx
cmovl edx, eax
jmp 0x1012b606
mov ebx, ecx
lea eax, [edx - 0x3f]
cdq
lea ecx, [ebp + 0x3f]
and edx, 0x3f
add eax, edx
sar eax, 6
sub eax, dword [esp + 0xfc]
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x3f]
mov ebx, dword [esp + 0xfc]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, ebx
mov dword [esp + 0x6c], eax
lea eax, [edi - 0x3f]
cdq
and edx, 0x3f
add edx, eax
sar edx, 6
sub edx, ebx
mov dword [esp + 0x1c], edx
mov ecx, ecx
test ecx, ecx
jns 0x1012b654
add ecx, 0x3f
sar ecx, 6
mov edi, dword [esp + 0x18]
lea eax, [ecx + ebx]
mov dword [esp + 0x8c], eax
cmp edx, eax
jge 0x1012bb04
mov ecx, dword [esp + 0x6c]
mov eax, edx
mov ebp, dword [esp + 0x4c]
mov esi, edx
imul eax, edi
shl esi, 6
add esi, 0x20
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
nop word [eax + eax]
mov ebx, ebp
mov dword [esp + 0x70], ebx
cmp ebp, ecx
jge 0x1012bae1
mov eax, dword [0x1025693c]
shl ebp, 6
add ebp, 0x20
mov dword [esp + 0x28], ebp
nop dword [eax]
mov ecx, dword [0x10256938]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x10256988]
movq qword [esp + 0xc0], xmm1
mov dword [esp + 0xc8], ecx
test ebx, ebx
js 0x1012babd
cmp ebx, edi
jge 0x1012babd
cmp esi, 0x20
jl 0x1012babd
cmp edx, dword [esp + 0x40]
jge 0x1012babd
mov ecx, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x84], edi
mov eax, dword [ecx + 0x20]
sub eax, 1
je 0x1012b764
sub eax, 1
je 0x1012b745
sub eax, 1
je 0x1012b726
mov esi, dword [esp + 0xc0]
mov edi, 6
jmp 0x1012b9bd
lea eax, [esp + 0xc0]
push eax
push esi
push ebp
push ecx
call fcn.1012ac70
mov esi, dword [esp + 0xd0]
add esp, 0x10
jmp 0x1012b9b1
lea eax, [esp + 0xc0]
push eax
push esi
push ebp
push ecx
call fcn.1012a7b0
mov esi, dword [esp + 0xd0]
add esp, 0x10
jmp 0x1012b9b1
mov ebp, dword [ecx + 4]
mov edi, dword [ecx + 0xc]
mov ebx, dword [ecx]
sub edi, ebp
mov esi, dword [ecx + 8]
mov eax, edi
imul eax, edi
sub esi, ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
cdq
and edx, 0x3f
lea ecx, [edx + eax]
mov eax, esi
imul eax, esi
sar ecx, 6
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add ecx, eax
mov eax, dword [esp + 0x28]
sub eax, ebx
imul eax, esi
mov esi, dword [esp + 0x14]
push ecx
cdq
and edx, 0x3f
lea ecx, [edx + eax]
mov eax, esi
sub eax, ebp
sar ecx, 6
imul eax, edi
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add ecx, eax
push ecx
call fcn.100cd020
mov edi, eax
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x24], edi
mov ecx, eax
mov dword [esp + 0x58], ecx
mov edx, esi
cmp edi, 0x10000
jle 0x1012b7fc
mov edi, 0x10000
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], esi
test edi, edi
jns 0x1012b80e
xor edi, edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x50]
shl eax, 0xa
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x24]
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 + 0x90], eax
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x90]
shl eax, 0xa
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x24]
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 + 0x94], eax
sub ebx, dword [esp + 0x58]
sub ebp, dword [esp + 0x5c]
shl ebx, 0xa
shl ebp, 0xa
add ebx, esi
add ebp, dword [esp + 0x94]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
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 + 0x74], eax
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x50]
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 + 0x78], eax
sub esi, dword [esp + 0x78]
sets al
lea eax, [eax*2 - 1]
mov byte [esp + 0xc8], al
lea eax, [esp + 0x64]
push eax
call fcn.100d1e10
add esp, 4
mov esi, eax
mov dword [esp + 0xc0], esi
test edi, edi
je 0x1012b92a
cmp edi, 0x10000
je 0x1012b92a
mov edi, 0x10000
jmp 0x1012b99b
lea eax, [esp + 0x50]
push eax
call fcn.100d1e90
lea eax, [esp + 0x68]
push eax
call fcn.100d1e90
add esp, 8
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
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 + 0x7c], eax
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x64]
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 + 0x80], eax
sub edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc4], edi
mov edi, dword [esp + 0x84]
movq xmm1, qword [0x10256980]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1012bcaf
cmp dword [esp + 0xec], 1
jne 0x1012b9da
neg byte [esp + 0xc8]
cmp esi, dword [esp + 0x3c]
jg 0x1012bab0
cmp byte [esp + 0xf1], 0
je 0x1012b9f4
mov eax, dword [esp + 0x30]
jmp 0x1012ba00
mov eax, dword [esp + 0x40]
sub eax, edx
dec eax
imul eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
add eax, ebx
lea eax, [eax + eax*2]
cmp byte [ecx + eax*4 + 8], 0
lea edi, [ecx + eax*4]
je 0x1012ba99
mov ecx, dword [edi]
mov eax, ecx
sub eax, esi
jns 0x1012ba23
mov eax, esi
sub eax, ecx
cmp eax, 0x20
jg 0x1012ba95
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0xd8]
movq xmm0, qword [esp + 0xc0]
mov dword [esp + 0xe0], eax
mov eax, dword [edi + 8]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xc4]
cdq
mov esi, eax
movq qword [esp + 0xd8], xmm0
movq xmm0, qword [edi]
xor esi, edx
movq qword [esp + 0xcc], xmm0
sub esi, edx
mov eax, dword [esp + 0xd0]
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0xcc]
cmp eax, esi
cmovg ecx, edx
movq xmm0, qword [ecx]
mov eax, dword [ecx + 8]
jmp 0x1012baa9
cmp ecx, esi
jle 0x1012bab0
movq xmm0, qword [esp + 0xc0]
mov eax, dword [esp + 0xc8]
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [0x1025693c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
inc ebx
mov edx, dword [esp + 0x1c]
add ebp, 0x40
mov dword [esp + 0x70], ebx
mov dword [esp + 0x28], ebp
cmp ebx, ecx
jl 0x1012b6b0
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x4c]
inc edx
add esi, 0x40
add eax, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
cmp edx, dword [esp + 0x8c]
jl 0x1012b690
mov esi, dword [esp + 0x34]
mov esi, dword [esi + 0x24]
mov dword [esp + 0x34], esi
test esi, esi
jne 0x1012b4b0
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x1012b4a1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
test eax, eax
jle 0x1012bcaf
lea eax, [edi + edi*2]
shl eax, 2
mov dword [esp + 0x34], eax
mov eax, ecx
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
or bl, 0xff
test ecx, ecx
je 0x1012bb66
setns bl
lea ebx, [ebx*2 - 1]
test edi, edi
jle 0x1012bc98
cmp byte [esp + 0xf0], 0
mov esi, eax
je 0x1012bc03
mov dword [esp + 0x2c], edi
mov al, byte [esi + 8]
mov edx, dword [esp + 0x3c]
test al, al
jne 0x1012bb91
mov dword [esi], edx
jmp 0x1012bb93
mov bl, al
mov ecx, dword [esi]
cmp ecx, edx
movsx eax, bl
cmovg ecx, edx
imul eax, ecx
push edx
neg eax
push eax
mov dword [esi], eax
call fcn.100cd020
mov edi, eax
add esp, 8
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
sar ecx, 9
test edi, edi
jle 0x1012bbcb
cmp ecx, 0x7f
mov eax, 0x7f
cmovg ecx, eax
test edi, edi
jns 0x1012bbdb
cmp ecx, 0x80
mov eax, 0x80
cmovg ecx, eax
mov al, 0x80
lea edx, [ecx + 0x80]
sub al, cl
test edi, edi
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
add esi, 0xc
mov byte [ebp], cl
inc ebp
sub dword [esp + 0x2c], 1
jne 0x1012bb82
jmp 0x1012bc81
mov dword [esp + 0x2c], edi
mov al, byte [esi + 8]
mov edx, dword [esp + 0x3c]
test al, al
jne 0x1012bc16
mov dword [esi], edx
jmp 0x1012bc18
mov bl, al
mov ecx, dword [esi]
cmp ecx, edx
movsx eax, bl
cmovg ecx, edx
imul eax, ecx
push edx
push eax
mov dword [esi], eax
call fcn.100cd020
mov edi, eax
add esp, 8
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
sar ecx, 9
test edi, edi
jle 0x1012bc4e
cmp ecx, 0x7f
mov eax, 0x7f
cmovg ecx, eax
test edi, edi
jns 0x1012bc5e
cmp ecx, 0x80
mov eax, 0x80
cmovg ecx, eax
mov al, 0x80
lea edx, [ecx + 0x80]
sub al, cl
test edi, edi
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
add esi, 0xc
mov byte [ebp], cl
inc ebp
sub dword [esp + 0x2c], 1
jne 0x1012bc07
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0xf4]
mov eax, dword [esp + 0x30]
add ebp, edi
add eax, edx
sub dword [esp + 0x40], 1
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], eax
jne 0x1012bb55
mov ecx, dword [esp + 0x38]
jmp 0x1012b414
mov dword [esp + 0x20], 0x13
jmp 0x1012b412
mov dword [esp + 0x20], 6
jmp 0x1012b414