Function at 0x42f460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50bde5
push eax
mov dword fs:[0], esp
sub esp, 0x4c
test byte [ebp + 0x1c], 1
push esi
mov esi, ecx
jne 0x42f69a
cmp dword [esi + 0x20], 1
je 0x42f69a
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 0x42f4bf
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.00428b60
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 0x42f4f4
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.00435980
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x42f55d
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f553
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f6ad
push edx
push ecx
call fcn.004e5ccb
add esp, 8
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
push 0x519bb0
cmovae eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.004f0937
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f5ff
call fcn.00417940
cmp eax, 2
jg 0x42f653
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 0x42f653
cmp dword [ebp - 0x28], 0x10
lea esi, [ebp - 0x3c]
push 2
cmovae esi, dword [ebp - 0x3c]
call fcn.004ee3fb
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.004f17d4
add esp, 0x10
cmp eax, esi
je 0x42f672
call fcn.00417940
cmp eax, 2
jg 0x42f64a
push str.Failed_to_write_serialized_state_to_disk._n
push 2
call fcn.00417f70
add esp, 8
test al, al
jne 0x42f64a
push str.Fossilize_ERROR:_Failed_to_write_serialized_state_to_disk._n
push 2
call fcn.004ee3fb
add esp, 4
push eax
call fcn.00401df0
add esp, 8
push edi
call fcn.004f07fc
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.004f07fc
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