Function at 0x5ab440
Capabilities:
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.005ab6a0
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov esi, ebx
imul esi, ebp
cdq
sub eax, edx
push 4
mov edi, eax
push esi
sar edi, 1
call fcn.005e3b9a
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x5ab49f
push str.Error_allocating_the_buffer_image._n
push 0x6eeca0
call fcn.005e35cf
add esp, 8
push 1
call fcn.005e246f
push 2
push esi
call fcn.005e3b9a
mov ecx, dword [esp + 0x4c]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x5ab4cd
push str.Error_allocating_the_smoothed_image._n
push 0x6eeca0
call fcn.005e35cf
add esp, 8
push 1
call fcn.005e246f
test ebx, ebx
jle 0x5ab58d
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ebx
xor edx, edx
test ebp, ebp
mov dword [esp + 0x40], edx
jle 0x5ab574
mov eax, edi
neg eax
mov dword [esp + 0x2c], eax
fld dword [0x68e4e0]
fld dword [0x68e4e0]
cmp eax, edi
jg 0x5ab558
mov ebx, dword [esp + 0x18]
lea ecx, [eax + edi]
lea esi, [eax + edx]
lea ecx, [ebx + ecx*4]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x1c], esi
test esi, esi
jl 0x5ab547
cmp esi, ebp
jge 0x5ab547
mov esi, dword [esp + 0x10]
add esi, eax
add esi, edx
xor edx, edx
mov dl, byte [esi + ebx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
fild dword [esp + 0x28]
fmul dword [ecx]
faddp st(2)
fadd dword [ecx]
inc eax
add ecx, 4
inc esi
cmp eax, edi
mov dword [esp + 0x1c], esi
jle 0x5ab51c
mov eax, dword [esp + 0x2c]
fxch st(1)
fdiv st(1)
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add ecx, edx
inc edx
cmp edx, ebp
mov dword [esp + 0x40], edx
fstp dword [esi + ecx*4]
fstp st(0)
jl 0x5ab4f7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add ecx, ebp
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x5ab4e1
xor eax, eax
test ebp, ebp
mov dword [esp + 0x40], eax
jle 0x5ab66d
mov ecx, dword [esp + 0x38]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x34], ebx
jle 0x5ab660
mov esi, edi
lea edx, [eax + eax]
neg esi
mov dword [esp + 0x20], edx
fld dword [0x68e4e0]
fld dword [0x68e4e0]
cmp esi, edi
jg 0x5ab61e
lea edx, [ebp*4]
lea ecx, [esi + ebx]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
lea edx, [esi + edi]
lea edx, [ebx + edx*4]
mov ebx, ecx
imul ebx, ebp
add ebx, eax
mov eax, dword [esp + 0x14]
lea ebx, [eax + ebx*4]
mov eax, edi
sub eax, esi
inc eax
test ecx, ecx
jl 0x5ab609
cmp ecx, dword [esp + 0x38]
jge 0x5ab609
fld dword [ebx]
fmul dword [edx]
faddp st(1)
fxch st(1)
fadd dword [edx]
fxch st(1)
mov ebp, dword [esp + 0x2c]
add edx, 4
add ebx, ebp
inc ecx
dec eax
jne 0x5ab5f3
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
fmul qword [0x6a4820]
fxch st(1)
fdivp st(1)
fadd qword [0x6901b0]
call fcn.005e1f50
mov ecx, dword [esp + 0x44]
inc ebx
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
mov word [ecx + edx], ax
lea eax, [ebp + ebp]
add ecx, eax
mov eax, dword [esp + 0x38]
cmp ebx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
jl 0x5ab5b8
inc eax
cmp eax, ebp
mov dword [esp + 0x40], eax
jl 0x5ab59b
mov eax, dword [esp + 0x14]
push eax
call fcn.005e2ecd
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005e2ecd
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14