Function at 0x44f980
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c860c
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x647f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x414], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x434], xmm0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0xf
mov byte [ebp - 0x434], 0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x44f9ee
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44fa22
mov ecx, dword [edi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x15
jb 0x44ff1b
cmp dword [edi + 0x14], 0xf
jbe 0x44fa14
mov edi, dword [edi]
push ecx
push edi
push 0x15
push str.File_does_not_exist
jmp 0x44fe32
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x44fa2c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44fe0e
test al, 0x10
jne 0x44fe0e
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x44fa4e
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
mov dword [ebp - 0x484], 0
mov ecx, edx
mov dword [ebp - 0x480], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x494], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x418], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44fa80
sub ecx, dword [ebp - 0x418]
push ecx
push edx
lea ecx, [ebp - 0x494]
call fcn.00454080
lea eax, [ebp - 0x494]
mov byte [ebp - 4], 1
push eax
mov edx, str.begindownloadfile
lea ecx, [ebp - 0x464]
call fcn.00453ba0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x44fae3
cmp dword [ecx + 0x14], 0xf
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
jbe 0x44fadb
mov eax, dword [ecx]
mov word [eax + edx], 0x20
jmp 0x44fb00
push 1
push 0x63efe0
mov byte [ebp - 0x418], 0
push dword [ebp - 0x418]
push 1
call fcn.004546e0
mov ecx, eax
mov dword [ebp - 0x46c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x47c], xmm0
mov dword [ebp - 0x468], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x47c], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x46c], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push edi
lea edx, [ebp - 0x47c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44c]
call fcn.004537a0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x468]
cmp ecx, 0xf
jbe 0x44fb9d
mov edx, dword [ebp - 0x47c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44fb93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ff16
push ecx
push edx
call fcn.0059e516
add esp, 8
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0xf
mov byte [ebp - 0x47c], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x450]
cmp ecx, 0xf
jbe 0x44fbf6
mov edx, dword [ebp - 0x464]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44fbec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ff16
push ecx
push edx
call fcn.0059e516
add esp, 8
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0xf
mov byte [ebp - 0x464], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x480]
cmp ecx, 0xf
jbe 0x44fc4f
mov edx, dword [ebp - 0x494]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44fc45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ff16
push ecx
push edx
call fcn.0059e516
add esp, 8
cmp dword [ebp - 0x438], 0xf
lea eax, [ebp - 0x44c]
push dword [ebp - 0x43c]
cmova eax, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x414]
push eax
push edi
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0xf
mov byte [ebp - 0x494], 0
call fcn.0045dee0
add esp, 0xc
test eax, eax
jg 0x44fca2
mov edx, str.send_error
jmp 0x44fda1
cmp dword [esi + 0x14], 0xf
jbe 0x44fcaa
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44fd9c
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44fd83
push 8
lea eax, [ebp - 0x41c]
push eax
push edi
call fcn.0045dee0
add esp, 0xc
test eax, eax
jg 0x44fd04
mov edx, str.send_error
jmp 0x44fda1
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005a0390
add esp, 0xc
mov dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44fd83
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x44fd83
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.0045dee0
add esp, 0xc
test eax, eax
jle 0x44fd83
push 0
lea eax, [ebp - 0x414]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44fd44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
push str.enddownloadfile
push edi
call fcn.0045dee0
add esp, 0xc
jmp 0x44fdb4
mov edx, str.file_error
mov ecx, 0x648fd0
call fcn.00453850
push eax
call fcn.00453b00
add esp, 4
mov ecx, dword [ebp - 0x438]
cmp ecx, 0xf
jbe 0x44fdee
mov edx, dword [ebp - 0x44c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44fde4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ff20
push ecx
push edx
call fcn.0059e516
add esp, 8
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
jmp 0x44fec5
mov ecx, dword [edi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x12
jb 0x44ff1b
cmp dword [edi + 0x14], 0xf
jbe 0x44fe29
mov edi, dword [edi]
push ecx
push edi
push 0x12
push str.Its_not_a_file.
push ecx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x464]
call fcn.00455400
mov ecx, dword [ebp - 0x420]
cmp ecx, 0xf
jbe 0x44fe7e
mov edx, dword [ebp - 0x434]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44fe74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ff20
push ecx
push edx
call fcn.0059e516
add esp, 8
movups xmm1, xmmword [ebp - 0x464]
lea ecx, [ebp - 0x434]
movq xmm0, qword [ebp - 0x454]
movq qword [ebp - 0x424], xmm0
cmp dword [ebp - 0x420], 0xf
push dword [ebp - 0x424]
movd eax, xmm1
movups xmmword [ebp - 0x434], xmm1
cmova ecx, eax
push ecx
push dword [ebp - 0x414]
call fcn.0045dee0
add esp, 0xc
mov ecx, dword [ebp - 0x420]
cmp ecx, 0xf
jbe 0x44fefb
mov edx, dword [ebp - 0x434]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44fef1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ff20
push ecx
push edx
call fcn.0059e516
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
call fcn.005a920f
call fcn.0044c0d0
call fcn.005a920f
int3