Function at 0x42f6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e695
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 0x42f964
cmp dword [esi + 0x20], 1
jne 0x42f964
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 0x42f964
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x42f964
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push dword [ebp + 8]
push str._02x._016llx.json
push eax
call fcn.00429c00
add esp, 0x14
lea ecx, [ebp - 0x58]
xor eax, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f750
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011f0
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.004367f0
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x42f7b9
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42f7af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f979
push ecx
push edx
call fcn.004e9693
add esp, 8
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
push 0x51cb88
cmova eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.004f4c46
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f85b
call fcn.00418bb0
cmp eax, 2
jg 0x42f91d
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
cmova eax, dword [ebp - 0x24]
push eax
push str.Failed_to_open_file:__s_n
push 2
call fcn.004191f0
add esp, 0xc
test al, al
jne 0x42f91d
cmp dword [ebp - 0x10], 0xf
lea esi, [ebp - 0x24]
push 2
cmova esi, dword [ebp - 0x24]
call fcn.004f2743
push esi
push str.Fossilize_ERROR:_Failed_to_open_file:__s_n
push eax
call fcn.00401d60
add esp, 0x10
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00401790
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.004f521b
add esp, 0xc
push esi
test eax, eax
jns 0x42f8e2
call fcn.004f4b0b
add esp, 4
call fcn.00418bb0
cmp eax, 2
jg 0x42f91d
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
cmova eax, dword [ebp - 0x24]
push eax
push str.Failed_to_seek_in_file:__s_n
push 2
call fcn.004191f0
add esp, 0xc
test al, al
jne 0x42f91d
cmp dword [ebp - 0x10], 0xf
lea esi, [ebp - 0x24]
push 2
cmova esi, dword [ebp - 0x24]
call fcn.004f2743
push esi
push str.Fossilize_ERROR:_Failed_to_seek_in_file:__s_n
push eax
call fcn.00401d60
add esp, 0x10
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00401790
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.004f58c2
push esi
mov edi, eax
call fcn.004f5b4f
mov eax, dword [ebp + 0x18]
add esp, 8
test eax, eax
je 0x42f8fd
cmp dword [ebx], edi
jb 0x42f914
mov dword [ebx], edi
test eax, eax
je 0x42f93c
push esi
push edi
push 1
push eax
call fcn.004f4e8a
add esp, 0x10
cmp eax, edi
je 0x42f93c
push esi
call fcn.004f4b0b
add esp, 4
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00401790
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.004f4b0b
add esp, 4
lea ecx, [ebp - 0x24]
mov bl, 1
call fcn.00401790
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.004ee89f
int3