Function at 0x42e470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50b0f5
push eax
mov dword fs:[0], esp
sub esp, 0x4c
test byte [ebp + 0x1c], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x42e714
cmp dword [esi + 0x20], 1
jne 0x42e714
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x42e714
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x42e714
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push dword [ebp + 8]
push str._02x._016llx.json
push eax
call fcn.00428b40
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x3c], 0
add esp, 0x14
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x3c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e500
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004019c0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00435950
add esp, 0xc
mov edx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x42e569
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42e55f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e729
push edx
push ecx
call fcn.004e5ccb
add esp, 8
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
push 0x518ba8
cmovae eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.004f0936
mov esi, eax
add esp, 8
test esi, esi
jne 0x42e60b
call fcn.00417940
cmp eax, 2
jg 0x42e6cd
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push str.Failed_to_open_file:__s_n
push 2
call fcn.00417f70
add esp, 0xc
test al, al
jne 0x42e6cd
cmp dword [ebp - 0x10], 0x10
lea esi, [ebp - 0x24]
push 2
cmovae esi, dword [ebp - 0x24]
call fcn.004ee433
push esi
push str.Fossilize_ERROR:_Failed_to_open_file:__s_n
push eax
call fcn.00401df0
add esp, 0x10
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.004016b0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push 2
push 0
push esi
call fcn.004f0f0b
add esp, 0xc
push esi
test eax, eax
jns 0x42e692
call fcn.004f07fb
add esp, 4
call fcn.00417940
cmp eax, 2
jg 0x42e6cd
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push str.Failed_to_seek_in_file:__s_n
push 2
call fcn.00417f70
add esp, 0xc
test al, al
jne 0x42e6cd
cmp dword [ebp - 0x10], 0x10
lea esi, [ebp - 0x24]
push 2
cmovae esi, dword [ebp - 0x24]
call fcn.004ee433
push esi
push str.Fossilize_ERROR:_Failed_to_seek_in_file:__s_n
push eax
call fcn.00401df0
add esp, 0x10
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.004016b0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
call fcn.004f15b2
push esi
mov edi, eax
call fcn.004f183f
mov eax, dword [ebp + 0x18]
add esp, 8
test eax, eax
je 0x42e6ad
cmp dword [ebx], edi
jb 0x42e6c4
mov dword [ebx], edi
test eax, eax
je 0x42e6ec
push esi
push edi
push 1
push eax
call fcn.004f0b7a
add esp, 0x10
cmp eax, edi
je 0x42e6ec
push esi
call fcn.004f07fb
add esp, 4
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.004016b0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push esi
call fcn.004f07fb
add esp, 4
lea ecx, [ebp - 0x24]
mov bl, 1
call fcn.004016b0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
call fcn.004ea5cf
int3