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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c570
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5f30a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x100000
cmp dword [ebp + 8], 0
je 0x425f30
cmp dword [ebp + 0xc], 0
jne 0x425f37
xor eax, eax
jmp 0x426179
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x425f4f
jmp 0x426108
push 0
push 0x80
push 3
push 0
push 1
push bind
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x425f79
jmp 0x426108
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x425f93
jmp 0x426108
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x425fae
jmp 0x426108
mov dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x10], 0x100000
jae 0x425fdf
mov dword [ebp - 0x44], 0x100000
jmp 0x425fe5
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x426091
cmp dword [ebp - 0x18], 0
je 0x42601f
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.00488880
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x426057
jmp 0x426091
cmp dword [ebp - 0x3c], 0
je 0x426072
cmp dword [ebp - 0x2c], 0x3200000
jbe 0x426072
mov dword [ebp - 4], 0xffffffff
jmp 0x426108
cmp dword [ebp - 0x3c], 0xfffffffb
je 0x426084
mov dword [ebp - 4], 0xffffffff
jmp 0x426108
mov ecx, dword [ebp - 0x2c]
shl ecx, 1
mov dword [ebp - 0x2c], ecx
jmp 0x425fff
jmp 0x4260a6
mov dword [ebp - 4], 0xffffffff
jmp 0x4260b1
mov dword [ebp - 0x38], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4260df
jmp 0x426108
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x34]
je 0x426101
jmp 0x426108
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], 0
je 0x426122
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x42613c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x30], 0
je 0x426159
cmp dword [ebp - 0x30], 0xffffffff
je 0x426159
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x28], 0
je 0x426176
cmp dword [ebp - 0x28], 0xffffffff
je 0x426176
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret