Function at 0x44f280
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a3c4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x3c], eax
movq qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], eax
cmp eax, edx
jg 0x44f736
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edi
jl 0x44f300
cmp edi, ecx
jae 0x44f736
nop dword [eax + eax]
push 0
push 0
push eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x44f6fd
mov edi, dword [esi + 0x10]
sub edi, dword [ebp - 0x2c]
mov eax, dword [esi + 0x14]
sbb eax, dword [ebp - 0x28]
jne 0x44f32c
cmp edi, 0x800000
jbe 0x44f338
mov edi, 0x800000
mov dword [ebp - 0x34], 0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x18]
push 0
push ecx
push edi
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f611
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44f611
push dword [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x2c]
push eax
call fcn.0044ee30
test al, al
je 0x44f60a
push 0
push dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
sub esp, 8
movq qword [ebp - 0x24], xmm0
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x44f3a6
lock inc dword [eax + 4]
mov eax, dword [esi + 4]
mov edx, edi
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x24]
call fcn.0044d4b0
add esp, 0x10
push 0
push 0
mov dword [ebp - 4], 2
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x44f596
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44f4b8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44f4b8
cmp byte [esi + 0xc0], 0
je 0x44f440
lea eax, [esi + 0x50]
mov ecx, esi
mov byte [eax], 1
push 1
push eax
push dword [esi]
call fcn.0044eb90
mov ecx, dword [ebp - 0x28]
lea eax, [esi + 0x70]
push 8
push eax
push dword [esi]
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [eax], edi
call fcn.0044eb90
mov eax, dword [ebp - 0x18]
add edi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
adc eax, 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x44f4a1
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44f47f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f760
push edx
push ecx
call fcn.00536ae6
mov eax, dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp eax, dword [ebp - 0x40]
jg 0x44f736
jl 0x44f300
cmp edi, dword [ebp - 0x44]
jmp 0x44f2f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.0044e3d0
push eax
mov edx, str.Solid:_Cannot_write_file._Code
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.004545b0
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x44f513
mov ecx, esi
call fcn.00449920
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x44f54d
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44f543
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f760
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov edx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x44f5d6
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44f5cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f765
jmp 0x44f5cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.0044e3d0
push eax
mov edx, str.Solid:_Cannot_set_file_pointer_2_._Code
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004545b0
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00449980
jmp 0x44f513
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x44f60a
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44f600
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f760
push edx
push ecx
call fcn.00536ae6
add esp, 8
xor al, al
jmp 0x44f740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.0044e3d0
push eax
mov edx, str.Solid:_Cannot_read_file._Code
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004545b0
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x44f66f
mov ecx, esi
call fcn.00449920
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x44f6a9
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44f69f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f760
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov edx, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp edx, 8
jb 0x44f60a
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44f600
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44f600
jmp 0x44f760
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.0044e3d0
push eax
mov edx, str.Solid:_Cannot_set_file_pointer_1_._Code
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004545b0
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00449980
jmp 0x44f66f
sub esp, 8
mov ecx, esi
call fcn.0044f0e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005368a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00552581
call fcn.00552581
int3