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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e14bb
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x513200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x398], ecx
mov eax, dword [ebp + 8]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x394], esi
push eax
push ecx
lea ecx, [ebp - 0x134]
call fcn.0040e650
mov dword [ebp - 4], 0
cmp dword [ebp - 0x130], 0
je 0x427263
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
push 0x80
push 4
push 0
push 0
push 0xc0000000
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x427263
mov eax, dword [0x52fbb0]
test eax, eax
jne 0x426edb
mov ecx, 0x52fbb0
call fcn.00435430
test al, al
je 0x426eed
mov eax, dword [0x52fbb0]
push 0
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov ecx, edi
call fcn.00435850
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x19000
jl 0x4270ad
push 0xf000
call fcn.004899b7
push 0xf000
mov esi, eax
push 0
push esi
call fcn.0048bb90
add esp, 0x10
push 0
push 0
push 0xf000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x427046
push 0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0
push eax
push 0xf000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427046
cmp dword [ebp - 0x38c], 0
je 0x427046
push edi
call ebx
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
push 0x80
push 2
push 0
push 0
add eax, 4
push 0xc0000000
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x426fbe
push esi
call fcn.0048953d
add esp, 4
jmp 0x427263
push ecx
mov ecx, edi
call fcn.00435800
add esp, 4
mov ecx, edi
call fcn.00435850
push 0
lea eax, [ebp - 0x390]
mov word [ebp - 0x380], 0xfeff
push eax
push 2
lea eax, [ebp - 0x380]
mov dword [ebp - 0x390], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x390], 2
je 0x427013
push esi
call fcn.0048953d
add esp, 4
jmp 0x427260
push 0
lea eax, [ebp - 0x390]
push eax
push dword [ebp - 0x38c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x38c]
cmp eax, dword [ebp - 0x390]
je 0x42709e
push esi
call fcn.0048953d
add esp, 4
jmp 0x427260
push edi
call ebx
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
push 0x80
push 2
push 0
push 0
add eax, 4
push 0xc0000000
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x42708c
push esi
call fcn.0048953d
add esp, 4
jmp 0x427263
push ecx
mov ecx, edi
call fcn.00435800
add esp, 4
mov ecx, edi
call fcn.00435850
push esi
call fcn.0048953d
mov esi, dword [ebp - 0x394]
add esp, 4
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x427260
test eax, eax
jne 0x4270fb
push eax
mov dword [ebp - 0x388], eax
lea eax, [ebp - 0x388]
push eax
push 2
lea eax, [ebp - 0x384]
mov word [ebp - 0x384], 0xfeff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x388], 2
jne 0x427260
lea ecx, [ebp - 0x37c]
call fcn.00403480
mov ecx, dword [ebp - 0x398]
lea eax, [ebp - 0x37c]
sub esp, 0xc
push eax
call fcn.00426610
lea ecx, [ebp - 0x258]
call fcn.00403480
push 0x4ff880
push 0
call fcn.004dd69c
add esp, 4
lea ecx, [ebp - 0x258]
push edx
push eax
call fcn.00404bb0
push 0x4ff87c
lea eax, [ebp - 0x258]
test esi, esi
push 0x4fc47c
push eax
lea esi, [ebp - 0x370]
je 0x4271cd
cmp byte [ebp - 0x260], 0
cmove esi, dword [ebp - 0x374]
call fcn.004048f0
push dword [ebp - 0x394]
lea eax, [ebp - 0x258]
push 0x4fc454
push eax
call fcn.004048f0
push 0x4ff87c
lea eax, [ebp - 0x258]
push 0x4fc47c
push eax
call fcn.004048f0
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x258]
push 0x4fc47c
push eax
call fcn.004048f0
push 0x4fc438
lea eax, [ebp - 0x258]
push 0x4fc47c
push eax
call fcn.004048f0
add esp, 0x3c
jmp 0x42720e
cmp byte [ebp - 0x260], 0
cmove esi, dword [ebp - 0x374]
call fcn.004048f0
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x258]
push 0x4fc47c
push eax
call fcn.004048f0
push 0x4fc438
lea eax, [ebp - 0x258]
push 0x4fc47c
push eax
call fcn.004048f0
add esp, 0x24
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x388]
cmp byte [ebp - 0x13c], 0
push 0
push ecx
lea esi, [eax + eax]
mov dword [ebp - 0x388], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
push esi
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x258]
call fcn.004036c0
lea ecx, [ebp - 0x37c]
call fcn.004036c0
push edi
call ebx
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42728c
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x42728c
push eax
call fcn.00496f41
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489940
mov esp, ebp
pop ebp
ret 0xc