Function at 0x45ad80
Capabilities:
Delete file
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [0x480394]
push ebx
push esi
push edi
mov ecx, 6
mov esi, str.weights_must_be_positive__n
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor ebx, ebx
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [0x4a5b1c]
add esp, 4
push ebx
mov dword [esp + 0x48], edx
mov edx, dword [0x4a5b18]
push ecx
mov dword [esp + 0x48], eax
mov eax, dword [0x480394]
push edx
xor esi, esi
push eax
mov dword [esp + 0x4c], esi
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov eax, dword [0x489ac8]
add esp, 0x10
lea edi, [ebx + 1]
cmp dword [0x476d10], ebx
jne 0x45ae87
mov edx, dword [0x4a5b20]
xor ecx, ecx
cmp eax, ebx
jle 0x45ae1e
nop
mov dword [edx + ecx*4], ebx
mov eax, dword [0x489ac8]
add ecx, edi
cmp ecx, eax
jl 0x45ae10
xor ecx, ecx
cmp eax, ebx
jle 0x45ae47
mov esi, dword [0x4804d0]
add esi, 4
lea ecx, [ecx]
cmp dword [esi], ebx
je 0x45ae3c
add dword [edx + ecx*4], edi
mov eax, dword [0x489ac8]
add ecx, edi
add esi, 4
cmp ecx, eax
jl 0x45ae30
mov esi, ebx
mov ecx, dword [0x469484]
cmp ecx, ebx
je 0x45ae5a
add dword [edx + ecx*4 - 4], edi
mov eax, dword [0x489ac8]
cmp dword [0x4804f0], ebx
je 0x45ae70
mov eax, dword [0x4804cc]
add dword [edx + eax*4 - 4], edi
mov eax, dword [0x489ac8]
xor ecx, ecx
cmp eax, ebx
jle 0x45ae87
cmp dword [edx + ecx*4], ebx
je 0x45ae7d
add esi, edi
add ecx, edi
cmp ecx, eax
jl 0x45ae76
mov dword [esp + 0x3c], esi
lea edi, [eax + 1]
imul edi, dword [0x489aac]
add edi, eax
add edi, edi
add edi, edi
add edi, edi
call fcn.00409ea0
mov edi, dword [0x4802e0]
mov ecx, eax
mov eax, dword [0x489aac]
mov dword [esp + 0x30], ecx
lea ecx, [ecx + eax*8]
imul eax, dword [0x489ac8]
mov dword [esp + 0x20], ecx
lea ecx, [ecx + eax*8]
add edi, edi
add edi, edi
mov dword [esp + 0x28], ecx
call fcn.00409ea0
mov edi, dword [0x489aac]
add edi, edi
add edi, edi
mov dword [esp + 0x2c], eax
call fcn.00409ea0
fldz
mov dword [0x468c08], eax
mov dword [esp + 0x1c], ebx
cmp dword [0x4802e0], ebx
jle 0x45b5e4
mov edi, dword [sym.imp.MSVCR100.dll_fread]
fstp st(0)
mov ecx, dword [0x489ac8]
mov edx, dword [0x480394]
push edx
push 1
lea eax, [esp + 0x18]
push 4
push eax
mov esi, ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x45af8b
mov eax, dword [esp + 0x10]
add eax, eax
add eax, eax
je 0x45af41
mov ecx, dword [0x480394]
mov edx, dword [0x468c08]
push ecx
push 1
push eax
push edx
call edi
add esp, 0x10
lea eax, [esi*8]
test eax, eax
je 0x45af60
mov ecx, dword [0x480394]
mov edx, dword [esp + 0x28]
push ecx
push 1
push eax
push edx
call edi
add esp, 0x10
mov ecx, dword [0x489ac8]
mov ebx, dword [esp + 0x20]
mov eax, ecx
imul eax, dword [esp + 0x10]
add eax, eax
add eax, eax
add eax, eax
je 0x45af95
mov ecx, dword [0x480394]
push ecx
push 1
push eax
push ebx
call edi
add esp, 0x10
jmp 0x45af8f
mov ebx, dword [esp + 0x20]
mov ecx, dword [0x489ac8]
cmp dword [0x4a5b3c], 0
je 0x45afab
cmp dword [0x480384], 0
je 0x45b288
cmp dword [0x476d10], 0
jne 0x45b159
cmp dword [esp + 0x3c], 0
je 0x45b159
mov edi, dword [esp + 0x10]
xor edx, edx
lea esi, [edi - 1]
mov dword [esp + 0x34], edx
cmp esi, edx
jl 0x45b145
fld qword [0x4a5b10]
lea eax, [esi + 1]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edx
cmp ecx, 4
jl 0x45b08a
mov edi, dword [0x4a5b20]
add edi, 8
cmp dword [edi - 8], 0
je 0x45b01a
mov eax, ecx
imul eax, esi
add eax, edx
fld qword [ebx + eax*8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x45b01a
inc dword [esp + 0x14]
cmp dword [edi - 4], 0
je 0x45b03a
mov eax, ecx
imul eax, esi
add eax, edx
fld qword [ebx + eax*8 + 8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x45b03a
inc dword [esp + 0x14]
cmp dword [edi], 0
je 0x45b059
mov eax, ecx
imul eax, esi
add eax, edx
fld qword [ebx + eax*8 + 0x10]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x45b059
inc dword [esp + 0x14]
cmp dword [edi + 4], 0
je 0x45b079
mov eax, ecx
imul eax, esi
add eax, edx
fld qword [ebx + eax*8 + 0x18]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x45b079
inc dword [esp + 0x14]
add edx, 4
lea eax, [ecx - 3]
add edi, 0x10
cmp edx, eax
jl 0x45affb
cmp edx, ecx
jge 0x45b0b7
mov eax, dword [0x4a5b20]
cmp dword [eax + edx*4], 0
je 0x45b0b2
mov eax, ecx
imul eax, esi
add eax, edx
fld qword [ebx + eax*8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x45b0b2
inc dword [esp + 0x14]
inc edx
cmp edx, ecx
jl 0x45b08e
cmp dword [esp + 0x14], 0
je 0x45b126
mov edx, dword [esp + 0x10]
fstp st(0)
mov eax, dword [esp + 0x38]
sub edx, esi
imul eax, ecx
dec edx
imul edx, ecx
imul ecx, esi
add edx, edx
add edx, edx
add edx, edx
push edx
lea edx, [ebx + eax*8]
push edx
lea eax, [ebx + ecx*8]
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx - 1]
add esp, 0xc
cmp esi, edx
je 0x45b116
mov eax, dword [0x468c08]
sub ecx, esi
lea eax, [eax + esi*4]
lea ecx, [ecx*4 - 4]
push ecx
lea edx, [eax + 4]
push edx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
inc dword [esp + 0x34]
fld qword [0x4a5b10]
mov ecx, dword [0x489ac8]
dec dword [esp + 0x38]
dec esi
xor edx, edx
cmp esi, edx
jge 0x45afe5
mov eax, dword [esp + 0x34]
fstp st(0)
mov edi, dword [esp + 0x10]
test eax, eax
je 0x45b145
sub edi, eax
xor eax, eax
test edi, edi
setle al
dec eax
and eax, edi
mov edi, dword [sym.imp.MSVCR100.dll_fread]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jg 0x45b16f
inc dword [esp + 0x18]
mov ebx, dword [0x489a10]
jmp 0x45b2d6
mov eax, dword [0x469484]
test eax, eax
je 0x45b245
mov esi, dword [esp + 0x10]
fldz
xor edx, edx
test esi, esi
jle 0x45b1c5
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov esi, eax
imul ecx, edx
add ecx, esi
fld qword [ebx + ecx*8 - 8]
fst qword [edi + edx*8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x45b2f2
mov ecx, dword [0x489ac8]
inc edx
cmp edx, dword [esp + 0x10]
jl 0x45b192
mov ebx, dword [esp + 0x20]
mov eax, dword [0x469484]
mov esi, dword [esp + 0x10]
cmp dword [0x476d10], 0
je 0x45b1d8
mov ecx, dword [esp + 0x28]
fld qword [ecx + eax*8 - 8]
jmp 0x45b1f5
fld st(0)
test esi, esi
jle 0x45b1f1
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea eax, [ebx + eax*8 - 8]
mov edx, esi
fadd qword [eax]
add eax, ecx
dec edx
jne 0x45b1ea
fidiv dword [esp + 0x10]
mov eax, dword [0x476ce4]
test eax, eax
jne 0x45b252
fstp st(1)
fld qword [0x466ce0]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x45b213
fstp st(0)
jmp 0x45b215
fstp st(1)
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x18]
mov eax, dword [0x4802d0]
lea ecx, [eax + edx*8]
xor eax, eax
fstp qword [ecx]
cmp dword [esp + 0x10], eax
jle 0x45b288
mov edx, dword [esp + 0x30]
fld qword [edx + eax*8]
inc eax
fdiv qword [ecx]
fstp qword [edx + eax*8 - 8]
cmp eax, dword [esp + 0x10]
jl 0x45b233
jmp 0x45b288
mov eax, dword [0x476ce4]
test eax, eax
je 0x45b288
fldz
jmp 0x45b254
fstp st(0)
mov edx, dword [0x476e24]
mov ecx, dword [esp + 0x1c]
imul edx, ecx
add edx, eax
mov eax, dword [0x4a5b5c]
fld qword [eax + edx*8 - 8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x45b469
sub ecx, dword [esp + 0x18]
mov edx, dword [0x4802d0]
fstp qword [edx + ecx*8]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ebx, dword [0x489a10]
mov esi, dword [esp + 0x24]
lea ecx, [eax*8]
push ecx
push edx
lea eax, [ebx + esi*8]
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.MSVCR100.dll_fread]
mov dword [eax + ecx*4], edx
mov ecx, dword [0x489ac8]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [0x4802e0]
jl 0x45af05
fldz
jmp 0x45b5ea
mov ecx, dword [0x489ad0]
fstp st(0)
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
push str.Level_1
push ecx
call edi
mov eax, dword [0x489ad0]
lea edx, [esp + 0x50]
push edx
push eax
call edi
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Level_1
call esi
lea ecx, [esp + 0x5c]
add esp, 0x14
push ecx
call esi
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x45b3ad
cmp dword [0x489ad0], 0
je 0x45b3ad
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x45b383
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x45b39d
mov ecx, dword [0x489ad0]
push str.__body___html__n
push ecx
call edi
add esp, 8
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov eax, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push eax
call esi
mov ecx, dword [0x4899d8]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802bc]
add esp, 4
push edx
call esi
mov eax, dword [0x4802cc]
add esp, 4
push eax
call esi
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x45b461
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x45b445
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [0x489ad0]
fstp st(0)
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
push str.Level_2
push ecx
call edi
mov eax, dword [0x489ad0]
lea edx, [esp + 0x50]
push edx
push eax
call edi
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Level_2
call esi
lea ecx, [esp + 0x5c]
add esp, 0x14
push ecx
call esi
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x45b524
cmp dword [0x489ad0], 0
je 0x45b524
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x45b4fa
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x45b514
mov ecx, dword [0x489ad0]
push str.__body___html__n
push ecx
call edi
add esp, 8
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov eax, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push eax
call esi
mov ecx, dword [0x4899d8]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802bc]
add esp, 4
push edx
call esi
mov eax, dword [0x4802cc]
add esp, 4
push eax
call esi
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x45b5dc
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea esp, [esp]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x45b5c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [0x489a10]
mov edx, dword [0x4802e0]
fld st(0)
mov ecx, dword [esp + 0x18]
mov edi, dword [0x4802d0]
sub edx, ecx
xor esi, esi
mov dword [esp + 0x28], edx
cmp edx, 4
jl 0x45b630
lea ecx, [edx - 4]
shr ecx, 2
inc ecx
lea eax, [edi + 0x10]
lea esi, [ecx*4]
fadd qword [eax - 0x10]
add eax, 0x20
dec ecx
fadd qword [eax - 0x28]
fadd qword [eax - 0x20]
fadd qword [eax - 0x18]
jne 0x45b61a
mov ecx, dword [esp + 0x18]
cmp esi, edx
jge 0x45b63c
fadd qword [edi + esi*8]
inc esi
cmp esi, edx
jl 0x45b634
fidiv dword [esp + 0x28]
xor eax, eax
test edx, edx
jle 0x45b65c
fld qword [edi + eax*8]
inc eax
fdiv st(1)
fstp qword [edi + eax*8 - 8]
mov edx, dword [0x4802e0]
sub edx, ecx
cmp eax, edx
jl 0x45b646
cmp dword [0x469484], 0
fstp st(0)
je 0x45b71d
mov eax, dword [0x4802e0]
sub eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
jle 0x45b73c
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
fld st(0)
mov esi, dword [eax]
xor edx, edx
mov dword [esp + 0x28], esi
cmp esi, 4
jl 0x45b6bf
lea ecx, [esi - 4]
shr ecx, 2
inc ecx
lea eax, [ebx + edi*8]
lea edx, [ecx*4]
fadd qword [eax]
add eax, 0x20
dec ecx
fadd qword [eax - 0x18]
fadd qword [eax - 0x10]
fadd qword [eax - 8]
jne 0x45b6ae
cmp edx, esi
jge 0x45b6d5
lea ecx, [edi + edx]
mov eax, esi
lea ecx, [ebx + ecx*8]
sub eax, edx
fadd qword [ecx]
add ecx, 8
dec eax
jne 0x45b6cd
fidiv dword [esp + 0x28]
mov edx, dword [esp + 0x20]
xor ecx, ecx
test esi, esi
jle 0x45b6f5
lea eax, [ebx + edi*8]
fld qword [eax]
inc ecx
fdiv st(1)
add eax, 8
fstp qword [eax - 8]
cmp ecx, dword [edx]
jl 0x45b6e6
add edi, dword [edx]
fstp st(0)
mov eax, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x20], edx
mov edx, dword [0x4802e0]
sub edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x45b68a
jmp 0x45b73c
mov esi, dword [esp + 0x24]
test esi, esi
jle 0x45b740
fld1
mov ecx, esi
lea ecx, [ecx*8 - 5]
fstp qword [ebx]
shr ecx, 2
mov esi, ebx
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
mov ecx, dword [0x4802e0]
sub ecx, dword [esp + 0x18]
xor edi, edi
xor eax, eax
test ecx, ecx
jle 0x45b78e
mov edx, dword [esp + 0x2c]
mov esi, dword [0x4802d0]
xor ecx, ecx
cmp dword [edx], ecx
jle 0x45b771
fld qword [ebx + eax*8]
inc ecx
fmul qword [esi]
inc eax
fstp qword [ebx + eax*8 - 8]
cmp ecx, dword [edx]
jl 0x45b762
mov ecx, dword [0x4802e0]
sub ecx, dword [esp + 0x18]
inc edi
add esi, 8
add edx, 4
mov dword [esp + 0x1c], edi
cmp edi, ecx
jl 0x45b75c
mov esi, dword [esp + 0x24]
xor edx, edx
cmp esi, 4
jl 0x45b7b8
lea ecx, [esi - 4]
shr ecx, 2
inc ecx
lea eax, [ebx + 0x10]
lea edx, [ecx*4]
fadd qword [eax - 0x10]
add eax, 0x20
dec ecx
fadd qword [eax - 0x28]
fadd qword [eax - 0x20]
fadd qword [eax - 0x18]
jne 0x45b7a6
cmp edx, esi
jge 0x45b7c4
fadd qword [ebx + edx*8]
inc edx
cmp edx, esi
jl 0x45b7bc
fidiv dword [esp + 0x24]
xor ecx, ecx
cmp esi, 4
jl 0x45b806
lea edx, [esi - 4]
shr edx, 2
inc edx
lea eax, [ebx + 0x10]
lea ecx, [edx*4]
fld qword [eax - 0x10]
add eax, 0x20
dec edx
fdiv st(1)
fstp qword [eax - 0x30]
fld qword [eax - 0x28]
fdiv st(1)
fstp qword [eax - 0x28]
fld qword [eax - 0x20]
fdiv st(1)
fstp qword [eax - 0x20]
fld qword [eax - 0x18]
fdiv st(1)
fstp qword [eax - 0x18]
jne 0x45b7e0
cmp ecx, esi
jge 0x45b818
fld qword [ebx + ecx*8]
inc ecx
fdiv st(1)
fstp qword [ebx + ecx*8 - 8]
cmp ecx, esi
jl 0x45b80a
mov edx, dword [esp + 0x44]
fstp st(0)
mov eax, dword [esp + 0x40]
mov ecx, dword [0x480394]
push 0
push edx
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 0x10
test eax, eax
je 0x45b84a
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45b858
push eax
call esi
add esp, 4
mov eax, dword [0x468c08]
test eax, eax
je 0x45b867
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d089
mov esp, ebp
pop ebp
ret