Function at 0x44a030
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0x250]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0x8c
lea eax, [esp + 0x44]
push ebx
push eax
mov dword [esi + 0x24c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call fcn.004e9730
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, 0xd41d41d5
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 7
push ebx
mov edi, ecx
call fcn.004e2fdd
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edx
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x18], eax
call fcn.004e1b1c
add esp, 8
test eax, eax
jne 0x44a0d7
mov ebx, dword [esp + 0x24]
jmp 0x44a0da
or ebx, 0xffffffff
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004e1b1c
add esp, 8
test eax, eax
jne 0x44a0fa
mov edx, dword [esp + 0x20]
mov dword [esp + 8], edx
jmp 0x44a102
mov dword [esp + 8], 0xffffffff
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004e1b1c
add esp, 8
test eax, eax
jne 0x44a11e
mov ecx, dword [esp + 0x1c]
jmp 0x44a121
or ecx, 0xffffffff
mov eax, dword [esp + 8]
mov edx, ebx
shl edx, 4
sub edx, ebx
lea eax, [eax + edx*4]
mov edx, eax
shl edx, 4
sub edx, eax
lea eax, [ecx + edx*4]
mov ecx, dword [esi + 0x1cc]
cmp ecx, eax
jle 0x44a148
mov eax, 0x15180
sub eax, ecx
test edi, edi
mov ecx, dword [esi + 0x24c]
mov dword [esi + 0x1d0], eax
push 0
jle 0x44a23f
imul edi, edi, 0x8c
push 0
add edi, 0xffffff74
push edi
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x24c]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x8c
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x64
lea ecx, [esi + 0x1e8]
lea edx, [esp + 0x68]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x44a1bf
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x44a1a7
test eax, eax
je 0x44a21c
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x44a20e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44a21c
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x44a20e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44a21c
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x44a20e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44a21c
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x44a21c
test edi, edi
mov eax, 1
jg 0x44a21e
or eax, 0xffffffff
jmp 0x44a21e
xor eax, eax
test eax, eax
mov ecx, dword [esi + 0x24c]
push 0
jne 0x44a23f
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x24c]
push 0
lea edx, [esp + 0x10]
push edx
push 0x8c
lea eax, [esi + 0x1c0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xd4]
pop edi
pop ebx
xor ecx, esp
mov dword [esi + 0x24c], 0xffffffff
call fcn.004e0b83
mov esp, ebp
pop ebp
ret