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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5e8ea4]
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, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], edi
cmp edi, dword [esi + 0x14]
jg 0x44d947
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jl 0x44d810
cmp eax, dword [esi + 0x10]
jae 0x44d947
nop dword [eax]
push 0
push 0
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x44db84
mov edi, dword [esi + 0x10]
sub edi, dword [ebp - 0x28]
mov eax, dword [esi + 0x14]
sbb eax, dword [ebp - 0x2c]
jne 0x44d83c
cmp edi, 0x800000
jbe 0x44d848
mov edi, 0x800000
mov dword [ebp - 0x64], 0
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44db65
cmp dword [ebp - 0x20], 0
je 0x44db65
push 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x44da86
mov edx, dword [esi + 4]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
push edi
mov dword [ebp - 0x14], 0
call fcn.0044c440
add esp, 0xc
mov dword [ebp - 4], 3
lea edx, [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
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 0x44d966
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x44d966
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
adc edi, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
test ecx, ecx
je 0x44d93e
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44d91c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dbcf
push edx
push ecx
call fcn.0052cac7
mov eax, dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp edi, dword [esi + 0x14]
jle 0x44d802
mov al, 1
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.0052c886
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x98]
call fcn.0044d1f0
push eax
mov edx, str.Solid:_Cannot_write_file._Code
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.00451220
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x44d9c1
mov ecx, esi
call fcn.00449470
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 - 0x6c]
cmp edx, 8
jb 0x44d9fb
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d9f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dbcf
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp edx, 8
jb 0x44da4f
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44da45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dbd4
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x44dbc8
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44dbbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dbd9
jmp 0x44dbbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0044d1f0
push eax
mov edx, str.Solid:_Cannot_set_file_pointer_2_._Code
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00451220
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x44dae1
mov ecx, esi
call fcn.00449470
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 - 0x30]
cmp edx, 8
jb 0x44db1b
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44db11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dbde
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x44dbc8
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44dbbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44dbe3
jmp 0x44dbbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0044d1f0
mov dword [ebp - 4], 1
mov edx, str.Solid:_Cannot_read_file._Code
push eax
jmp 0x44dba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0044d1f0
mov dword [ebp - 4], 0
mov edx, str.Solid:_Cannot_set_file_pointer_1_._Code
push eax
lea ecx, [ebp - 0x44]
call fcn.00451220
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x44dae1
jmp 0x44dab7
push edx
push ecx
call fcn.0052cac7
add esp, 8
xor al, al
jmp 0x44d949
call fcn.00548571
call fcn.00548571
call fcn.00548571
call fcn.00548571
call fcn.00548571
int3