Function at 0x4205d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x472d08
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x30]
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [edi + 0x24], eax
jne 0x420629
mov eax, dword [edi + 0x20]
push eax
mov dword [edi + 0x20], ebp
call fcn.0045332d
add esp, 4
mov dword [edi + 0x24], ebp
xor eax, eax
jmp 0x420802
add eax, 2
push eax
mov dword [esp + 0x18], ebp
call fcn.004428fe
mov ecx, dword [edi + 0x20]
add esp, 4
push ecx
mov dword [edi + 0x20], eax
call fcn.0045332d
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x30]
add esp, 4
push ebp
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
je 0x42067c
mov eax, dword [edi + 0x24]
cmp eax, dword [esp + 0x14]
jne 0x42067c
mov ecx, dword [edi + 0x20]
add ecx, eax
mov word [ecx], bp
xor eax, eax
jmp 0x420802
push str.._src_file_npFileImpl.cpp_84__:__npz::log::npFileImpl::read_
lea ecx, [esp + 0x38]
call fcn.004014d0
push 0xffffffffffffffff
lea edx, [esp + 0x38]
push 1
push edx
mov dword [esp + 0x9c], 6
call fcn.0041c9a0
mov ebx, 8
add esp, 0xc
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x4c], ebx
jb 0x4206c9
mov eax, dword [esp + 0x38]
push eax
call fcn.00452ad1
add esp, 4
cmp dword [0x4af498], ebp
je 0x420764
call fcn.0041ad80
cmp dword [eax + 4], ebp
jne 0x420764
push str.._src_file_npFileImpl.cpp_85__:__npz::log::npFileImpl::read_
lea ecx, [esp + 0x38]
call fcn.004014d0
mov dword [esp + 0x90], 7
call fcn.0041ad80
mov ebp, eax
call fcn.0041bcc0
push eax
mov ecx, 0x22200001
lea esi, [esp + 0x70]
call fcn.0041f950
mov byte [esp + 0x90], bl
cmp dword [edi + 0x1c], ebx
jb 0x420728
mov edi, dword [edi + 8]
jmp 0x42072b
add edi, 8
cmp dword [eax + 0x18], ebx
jb 0x420735
mov eax, dword [eax + 4]
jmp 0x420738
add eax, 4
mov ecx, dword [ebp]
push edi
push eax
mov eax, dword [ecx + 0x10]
push 2
lea edx, [esp + 0x40]
push edx
push ebp
call eax
add esp, 0x14
lea ecx, [esp + 0x6c]
call fcn.00401510
lea ecx, [esp + 0x34]
call fcn.00401510
jmp 0x4207fd
push str.._src_file_npFileImpl.cpp_85__:__npz::log::npFileImpl::read_
lea ecx, [esp + 0x54]
call fcn.004014d0
mov dword [esp + 0x90], 9
call fcn.0041bcc0
push eax
mov ecx, 0x22200001
lea esi, [esp + 0x1c]
call fcn.0041f950
mov byte [esp + 0x90], 0xa
cmp dword [edi + 0x1c], ebx
jb 0x4207a3
mov edi, dword [edi + 8]
jmp 0x4207a6
add edi, 8
cmp dword [eax + 0x18], ebx
jb 0x4207b0
mov eax, dword [eax + 4]
jmp 0x4207b3
add eax, 4
push edi
push eax
mov ecx, 2
lea edx, [esp + 0x58]
call fcn.0041afc0
add esp, 8
cmp dword [esp + 0x30], ebx
jb 0x4207d9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00452ad1
add esp, 4
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
jb 0x4207fd
mov edx, dword [esp + 0x54]
push edx
call fcn.00452ad1
add esp, 4
mov eax, 0x22200204
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret