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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov dword [ebp - 0x24], ecx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x44a71d
xor eax, eax
jmp 0x44a927
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0x18]
push edx
call fcn.004f8626
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0
jmp 0x44a74b
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0x24]
jae 0x44a90c
mov edx, dword [ebp + 0x18]
xor eax, eax
mov ecx, dword [ebp - 0x20]
xor esi, esi
add ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
adc edi, esi
push edi
push ecx
push eax
push edx
call fcn.004f8720
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x18]
imul edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp - 0x10], eax
movzx ecx, word [ebp + 8]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 3
je 0x44a7b7
cmp dword [ebp - 0x28], 4
je 0x44a854
jmp 0x44a907
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x18]
jle 0x44a7f4
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x10]
push eax
call fcn.004f8140
add esp, 0xc
jmp 0x44a84f
cmp dword [ebp - 0x10], 0
jle 0x44a817
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x10]
push eax
call fcn.004f8140
add esp, 0xc
jmp 0x44a84f
cmp dword [ebp - 0x10], 0
jg 0x44a84f
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004f8090
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call fcn.004f84cf
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x44a927
jmp 0x44a907
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x18]
jle 0x44a879
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004f8140
add esp, 0xc
jmp 0x44a8d1
cmp dword [ebp - 0x10], 0
jle 0x44a89c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004f8140
add esp, 0xc
jmp 0x44a8d1
cmp dword [ebp - 0x10], 0
jg 0x44a8d1
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f8090
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.004f84cf
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x44a927
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44a907
mov edx, dword [ebp - 0xc]
push edx
call fcn.004f84cf
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44a927
jmp 0x44a742
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f84cf
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20