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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e716b
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x519220]
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.0040f6f0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x130], 0
je 0x429823
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 0x429823
mov eax, dword [0x5360b4]
test eax, eax
jne 0x42949b
mov ecx, 0x5360b4
call fcn.00437860
test al, al
je 0x4294ad
mov eax, dword [0x5360b4]
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.00437c80
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x19000
jl 0x42966d
push 0xf000
call fcn.0048f227
push 0xf000
mov esi, eax
push 0
push esi
call fcn.00491400
add esp, 0x10
push 0
push 0
push 0xf000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x429606
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 0x429606
cmp dword [ebp - 0x38c], 0
je 0x429606
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 0x42957e
push esi
call fcn.0048edad
add esp, 4
jmp 0x429823
push ecx
mov ecx, edi
call fcn.00437c30
add esp, 4
mov ecx, edi
call fcn.00437c80
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 0x4295d3
push esi
call fcn.0048edad
add esp, 4
jmp 0x429820
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 0x42965e
push esi
call fcn.0048edad
add esp, 4
jmp 0x429820
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 0x42964c
push esi
call fcn.0048edad
add esp, 4
jmp 0x429823
push ecx
mov ecx, edi
call fcn.00437c30
add esp, 4
mov ecx, edi
call fcn.00437c80
push esi
call fcn.0048edad
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 0x429820
test eax, eax
jne 0x4296bb
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 0x429820
lea ecx, [ebp - 0x37c]
call fcn.00403e10
mov ecx, dword [ebp - 0x398]
lea eax, [ebp - 0x37c]
sub esp, 0xc
push eax
call fcn.00428bd0
lea ecx, [ebp - 0x258]
call fcn.00403e10
push str._Y__M__D__W___h:_m:_s
push 0
call fcn.004e2f1c
add esp, 4
lea ecx, [ebp - 0x258]
push edx
push eax
call fcn.00405540
push 0x505c44
lea eax, [ebp - 0x258]
test esi, esi
push 0x50258c
push eax
lea esi, [ebp - 0x370]
je 0x42978d
cmp byte [ebp - 0x260], 0
cmove esi, dword [ebp - 0x374]
call fcn.00405280
push dword [ebp - 0x394]
lea eax, [ebp - 0x258]
push 0x502564
push eax
call fcn.00405280
push 0x505c44
lea eax, [ebp - 0x258]
push 0x50258c
push eax
call fcn.00405280
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x258]
push 0x50258c
push eax
call fcn.00405280
push 0x502548
lea eax, [ebp - 0x258]
push 0x50258c
push eax
call fcn.00405280
add esp, 0x3c
jmp 0x4297ce
cmp byte [ebp - 0x260], 0
cmove esi, dword [ebp - 0x374]
call fcn.00405280
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x258]
push 0x50258c
push eax
call fcn.00405280
push 0x502548
lea eax, [ebp - 0x258]
push 0x50258c
push eax
call fcn.00405280
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.00404050
lea ecx, [ebp - 0x37c]
call fcn.00404050
push edi
call ebx
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42984c
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x42984c
push eax
call fcn.0049c7b1
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.0048f1b0
mov esp, ebp
pop ebp
ret 0xc