Function at 0x42f440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50b1b5
push eax
mov dword fs:[0], esp
sub esp, 0x4c
test byte [ebp + 0x1c], 1
push esi
mov esi, ecx
jne 0x42f67a
cmp dword [esi + 0x20], 1
je 0x42f67a
mov eax, dword [esi]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
push edi
push ebx
push dword [ebp + 8]
call eax
test al, al
je 0x42f49f
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push edi
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push str._02x._016llx.json
push eax
call fcn.00428b40
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], 0
add esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x24], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f4d4
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004019c0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00435950
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x42f53d
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f533
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f68d
push edx
push ecx
call fcn.004e5ccb
add esp, 8
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
push 0x518bb0
cmovae eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.004f0936
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f5df
call fcn.00417940
cmp eax, 2
jg 0x42f633
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push str.Failed_to_write_serialized_state_to_disk___s_._n
push 2
call fcn.00417f70
add esp, 0xc
test al, al
jne 0x42f633
cmp dword [ebp - 0x28], 0x10
lea esi, [ebp - 0x3c]
push 2
cmovae esi, dword [ebp - 0x3c]
call fcn.004ee433
push esi
push str.Fossilize_ERROR:_Failed_to_write_serialized_state_to_disk___s_._n
push eax
call fcn.00401df0
add esp, 0x10
lea ecx, [ebp - 0x3c]
xor bl, bl
call fcn.004016b0
pop edi
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0x18]
push edi
push esi
push 1
push dword [ebp + 0x14]
call fcn.004f17dc
add esp, 0x10
cmp eax, esi
je 0x42f652
call fcn.00417940
cmp eax, 2
jg 0x42f62a
push str.Failed_to_write_serialized_state_to_disk._n
push 2
call fcn.00417f70
add esp, 8
test al, al
jne 0x42f62a
push str.Fossilize_ERROR:_Failed_to_write_serialized_state_to_disk._n
push 2
call fcn.004ee433
add esp, 4
push eax
call fcn.00401df0
add esp, 8
push edi
call fcn.004f07fb
add esp, 4
lea ecx, [ebp - 0x3c]
xor bl, bl
call fcn.004016b0
pop edi
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push edi
call fcn.004f07fb
add esp, 4
lea ecx, [ebp - 0x3c]
mov bl, 1
call fcn.004016b0
pop edi
mov al, bl
pop ebx
pop esi
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 esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
call fcn.004ea5cf
int3