Function at 0x446090
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 [0x617560]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0x264]
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 + 0x260], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call fcn.004ea260
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.004e5aed
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.004e44dc
add esp, 8
test eax, eax
jne 0x446137
mov ebx, dword [esp + 0x24]
jmp 0x44613a
or ebx, 0xffffffff
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004e44dc
add esp, 8
test eax, eax
jne 0x44615a
mov edx, dword [esp + 0x20]
mov dword [esp + 8], edx
jmp 0x446162
mov dword [esp + 8], 0xffffffff
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004e44dc
add esp, 8
test eax, eax
jne 0x44617e
mov ecx, dword [esp + 0x1c]
jmp 0x446181
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 + 0x1e0]
cmp ecx, eax
jle 0x4461a8
mov eax, 0x15180
sub eax, ecx
test edi, edi
mov ecx, dword [esi + 0x260]
mov dword [esi + 0x1e4], eax
push 0
jle 0x44629f
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 + 0x260]
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 + 0x1fc]
lea edx, [esp + 0x68]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x44621f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x446207
test eax, eax
je 0x44627c
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x44626e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44627c
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x44626e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44627c
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x44626e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44627c
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x44627c
test edi, edi
mov eax, 1
jg 0x44627e
or eax, 0xffffffff
jmp 0x44627e
xor eax, eax
test eax, eax
mov ecx, dword [esi + 0x260]
push 0
jne 0x44629f
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x260]
push 0
lea edx, [esp + 0x10]
push edx
push 0x8c
lea eax, [esi + 0x1d4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xd4]
pop edi
pop ebx
xor ecx, esp
mov dword [esi + 0x260], 0xffffffff
call fcn.004e3543
mov esp, ebp
pop ebp
ret