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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3e7a8]
lea esi, [edi + 0x3abf0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], edi
push dword [edi + 0x16b84]
lea ecx, [edi + 0x5d04c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x44], ecx
mov cl, byte [eax + 0x4d]
mov al, byte [eax + 0x4c]
test cl, cl
mov byte [esp + 0xf], cl
mov ecx, 0
mov byte [esp + 0x1f], al
sete cl
movzx eax, al
mov dword [esp + 0x18], eax
lea eax, [edi + 0x18218]
push eax
lea ecx, [ecx*2 + 1]
mov dword [esp + 0x64], ecx
call fcn.1007e450
mov eax, dword [edi + 0x5d06c]
add esp, 8
mov ecx, dword [edi + 0x5d068]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x3bb8]
mov eax, dword [eax + 0x1c]
movzx eax, byte [eax + 0x107c88a0]
cmp ecx, eax
cmovg eax, ecx
xor ecx, ecx
mov dword [esp + 0x60], eax
lea eax, [edi + 0x91534]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x3624]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
push eax
xor eax, eax
test ecx, ecx
setg al
push eax
push esi
call fcn.100b47e0
push dword [esp + 0x38]
mov edi, dword [esp + 0x74]
push edi
call fcn.100b55a0
push dword [esp + 0x60]
mov esi, eax
push edi
call fcn.100b55a0
mov edi, eax
imul edi, esi
mov esi, dword [esp + 0x30]
push dword [esi]
call fcn.1006eaa0
shl edi, 6
push edi
push 0x10
call fcn.1006eaf0
add esp, 0x2c
mov dword [esi], eax
test eax, eax
jne 0x10151cd2
mov eax, dword [esp + 0x1c]
push str.Failed_to_allocate_rsi__unit_info
push 2
push dword [eax + 0x3ac1c]
call fcn.1006e850
add esp, 0xc
push edi
push 0x10
call fcn.1006eaf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10151cfc
mov eax, dword [esp + 0x1c]
push str.Failed_to_allocate_rusi
push 2
push dword [eax + 0x3ac1c]
call fcn.1006e850
add esp, 0xc
push edi
push 0
push esi
call fcn.10513d40
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x30]
add dword [esp + 0x10], 0x2c
inc ecx
mov edi, dword [esp + 0x5c]
mov dword [eax], esi
add eax, 4
mov esi, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
cmp ecx, edi
jl 0x10151c63
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
mov eax, dword [ecx + 0x5c7a4]
push 0
push 0
mov dword [ecx + 0x181fc], eax
add ecx, 0x3f3a4
push dword [esi + 0x1d0]
mov eax, dword [esp + 0x5c]
push 0x20
push dword [esp + 0x30]
mov dword [esp + 0x94], ecx
push dword [eax + 0x64]
push dword [eax + 0x60]
push dword [esi + 0x44]
push dword [esi + 0x40]
push ecx
call fcn.100b3b20
add esp, 0x34
test eax, eax
je 0x10151d95
push str.Failed_to_allocate_trial_restored_frame_buffer
push 2
push dword [esi + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18c], 0
mov dword [esp + 0x190], 0
cmp byte [eax + 0x5d07c], 0
jne 0x10151e22
cmp byte [esp + 0x1b], 0
jne 0x10151e22
push 0xc0000
push 0x20
call fcn.1006eaf0
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [ecx + 0x91540], eax
test eax, eax
jne 0x10151dee
push str.Failed_to_allocate_cpi__pick_lr_ctxt.dgd_avg
push 2
push dword [esi + 0x2c]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x1c]
push 0xc0000
push 0
mov eax, dword [eax + 0x91540]
push eax
mov dword [esp + 0x198], eax
call fcn.10513d40
mov eax, dword [esp + 0x198]
add esp, 0xc
add eax, 0x60000
mov dword [esp + 0x190], eax
mov edx, esi
mov ecx, edi
lea eax, [edx + 0x3610]
nop dword [eax]
mov dword [eax], 0
lea eax, [eax + 0x2c]
sub ecx, 1
jne 0x10151e30
mov edi, dword [esp + 0x40]
xor eax, eax
cmp dword [edi + 0x18], eax
setne al
mov dword [esp + 0x50], eax
cmp byte [esp + 0xb], cl
jne 0x10151e5e
cmp dword [edi + 0x14], ecx
jne 0x10151e5e
lea esi, [ecx + 2]
jmp 0x10151e60
xor esi, esi
mov cl, byte [edi + 0x30]
mov al, byte [edi + 0x31]
mov dword [esp + 0x4c], esi
test cl, cl
je 0x10151f3a
test al, al
je 0x10151f3a
mov byte [esp + 0x24], 1
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], al
mov al, 1
mov ecx, dword [esp + 0x50]
mov edi, ecx
mov byte [esp + 0x27], al
cmp ecx, esi
ja 0x10151f08
lea eax, [edi*4 + 0x28]
mov dword [esp + 0x10], eax
mov esi, dword [edx + 0xd8]
lea ecx, [esp + 0x48]
xor eax, eax
test edi, edi
push ecx
lea ecx, [esp + 0x48]
setne al
push ecx
push eax
push edx
mov dword [esp + 0x38], eax
call fcn.100b47e0
push dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
push 3
push 3
push dword [esi + eax*4 + 0x4e8]
mov eax, dword [esp + 0x30]
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [eax + esi + 0x4c8]
call fcn.100b4480
add dword [esp + 0x3c], 4
inc edi
mov esi, dword [esp + 0x78]
add esp, 0x2c
mov edx, dword [esp + 0xc]
cmp edi, esi
jle 0x10151ea2
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
movsd xmm0, qword [0x105fe930]
movsd qword [esp + 0x88], xmm0
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x60]
jl 0x1015241a
mov eax, dword [esp + 0x1c]
add eax, 0x3abf0
mov dword [esp + 0x44], eax
jmp 0x10151f64
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], al
test cl, cl
jne 0x10151e87
test al, al
jne 0x10151e87
jmp 0x10151e89
mov edx, dword [esp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x1a0], 0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x50], esi
ja 0x10152288
imul esi, ecx, 0x2c
lea eax, [esp + 0x1a0]
lea edi, [ecx*4 + 0x28]
add esi, 0x3620
add esi, edx
sub eax, 0x28
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], eax
jmp 0x10151ff4
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x70]
push eax
xor eax, eax
test ecx, ecx
setg al
push eax
push edx
call fcn.100b47e0
push dword [esp + 0x7c]
push dword [esp + 0x50]
call fcn.100b55a0
push dword [esp + 0x88]
mov esi, eax
push dword [esp + 0x58]
call fcn.100b55a0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov dword [edx - 0xc], ecx
mov ecx, eax
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
imul ecx, esi
mov dword [edx], esi
mov dword [edx - 8], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xb8], eax
lea eax, [edx + 0x15030]
mov dword [esp + 0xbc], eax
mov eax, dword [edx + edi + 0x9150c]
mov dword [esp + 0xcc], eax
lea eax, [edx + 0x5d04c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0xd0], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc0], ecx
lea ecx, [esp + 0x88]
mov esi, dword [edx + 0xd8]
setne al
push ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], eax
push ecx
push eax
push edx
call fcn.100b47e0
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xd8], eax
mov eax, dword [edi + edx]
mov dword [esp + 0xec], eax
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [esp + 0xf0], eax
mov eax, dword [edi + esi + 0x4c8]
mov dword [esp + 0xe4], eax
mov eax, dword [esi + ecx*4 + 0x4e8]
mov dword [esp + 0xe8], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x90]
push dword [esp + 0x48]
call fcn.10154030
mov esi, dword [esp + 0x80]
xor eax, eax
add esp, 0x40
cmp dword [esi - 8], 1
setg al
add eax, 3
mov dword [esp + 0x14], eax
movsd xmm1, qword [0x105fe930]
xor esi, esi
movsd qword [esp + 0x80], xmm1
mov ecx, eax
nop dword [eax]
cmp byte [esp + esi + 0x24], 0
jne 0x1015221c
mov eax, dword [esp + 0xc]
mov edx, dword [esp + esi*8 + 0xec]
mov eax, dword [eax + 0x3bb8]
mov eax, dword [eax + 0x48]
lea ecx, [eax*2 - 0x10]
mov eax, dword [esp + esi*8 + 0xe8]
call fcn.10511c50
mov ecx, eax
call fcn.10511ed0
mulsd xmm0, qword [0x105fe918]
mov ecx, dword [esp + esi*8 + 0x108]
mov edx, dword [esp + esi*8 + 0x10c]
shrd ecx, edx, 4
sar edx, 4
movsd qword [esp + 0x78], xmm0
call fcn.10511ed0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
movd xmm1, dword [ecx + 0x181fc]
mov ecx, dword [esp + 0x14]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
movsd xmm1, qword [esp + 0x78]
mulsd xmm0, qword [0x105fe8e8]
addsd xmm1, xmm0
movsd xmm0, qword [esp + 0x80]
comisd xmm0, xmm1
jbe 0x10152220
movsd qword [esp + 0x80], xmm1
mov dword [edi + eax], esi
jmp 0x10152220
mov eax, dword [esp + 0x20]
inc esi
cmp esi, ecx
jl 0x10152170
mov eax, dword [edi + eax]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
shl eax, 3
add ecx, dword [esp + eax + 0x108]
mov dword [esp + 0x10], ecx
adc esi, dword [esp + eax + 0x10c]
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + eax + 0xe8]
mov dword [esp + 0x30], ecx
adc edx, dword [esp + eax + 0xec]
add edi, 4
mov ecx, dword [esp + 0x58]
add dword [esp + 0x40], 0x2c
inc ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x58], ecx
cmp ecx, dword [esp + 0x4c]
jle 0x10151ff0
jmp 0x10152298
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x3bb8]
mov ecx, dword [ecx + 0x48]
lea ecx, [ecx*2 - 0x10]
call fcn.10511c50
mov ecx, eax
call fcn.10511ed0
mov ecx, dword [esp + 0x10]
mulsd xmm0, qword [0x105fe918]
shrd ecx, esi, 4
sar esi, 4
mov edx, esi
movsd qword [esp + 0x78], xmm0
call fcn.10511ed0
mov edx, dword [esp + 0x1c]
movd xmm1, dword [edx + 0x181fc]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
movsd xmm1, qword [esp + 0x78]
mulsd xmm0, qword [0x105fe8e8]
addsd xmm1, xmm0
movsd xmm0, qword [esp + 0x88]
comisd xmm0, xmm1
jbe 0x1015241a
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
movsd qword [esp + 0x88], xmm1
mov dword [esp + 0x54], eax
mov byte [esp + 0xb], 1
mov dword [esp + 0x30], ecx
cmp ecx, esi
ja 0x1015241a
imul eax, ecx, 0x2c
lea edx, [edx + ecx*4]
add edx, 0x91534
mov dword [esp + 0x20], edx
add eax, 0x3618
add eax, edi
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov ecx, dword [esp + ecx*4 + 0x1a0]
mov dword [eax - 8], ecx
test ecx, ecx
je 0x101523dc
mov edi, dword [eax]
mov byte [esp + 0xb], 0
test edi, edi
jle 0x101523dc
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx]
add ecx, esi
mov dword [esp + 0x28], ecx
add edx, esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + ecx*4 + 0x1a0]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + eax*4 + 0x28]
mov dword [ecx], eax
cmp eax, 1
jne 0x101523b8
movups xmm0, xmmword [edx]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ecx + 0x20], xmm0
jmp 0x101523c8
movq xmm0, qword [edx + 0x20]
movq qword [ecx + 0x30], xmm0
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x14]
add esi, 0x40
mov edx, dword [esp + 0x20]
sub edi, 1
jne 0x10152380
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
add edx, 4
inc ecx
mov dword [esp + 0x20], edx
add eax, 0x2c
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
cmp ecx, esi
jle 0x10152360
cmp byte [esp + 0xb], 0
jne 0x1015241a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
sar eax, 1
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x60]
jge 0x10151f60
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea edi, [edx + 0x3618]
nop word [eax + eax]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
xor eax, eax
test ecx, ecx
setg al
push eax
push edx
call fcn.100b47e0
push dword [esp + 0x78]
push dword [esp + 0x68]
call fcn.100b55a0
push dword [esp + 0x7c]
mov esi, eax
push dword [esp + 0x70]
call fcn.100b55a0
mov ecx, dword [esp + 0x74]
lea edi, [edi + 0x2c]
mov edx, dword [esp + 0x2c]
add esp, 0x20
mov dword [edi - 0x30], ecx
mov ecx, eax
imul ecx, esi
mov dword [edi - 0x24], esi
mov dword [edi - 0x28], eax
mov dword [edi - 0x2c], ecx
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x5c]
jl 0x10152430
mov esi, dword [esp + 0x1c]
cmp byte [esi + 0x5d07c], 0
jne 0x101524be
cmp byte [esp + 0x1b], 0
jne 0x101524be
push dword [esi + 0x91540]
call fcn.1006eaa0
add esp, 4
mov dword [esi + 0x91540], 0
add esi, 0x91534
push dword [esi]
call fcn.1006eaa0
add esp, 4
mov dword [esi], 0
sub dword [esp + 0x5c], 1
lea esi, [esi + 4]
jne 0x101524c4
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret