Function at 0x4304a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e755
push eax
mov dword fs:[0], esp
sub esp, 0x4c
test byte [ebp + 0x1c], 1
push esi
mov esi, ecx
jne 0x4306d6
cmp dword [esi + 0x20], 1
je 0x4306d6
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 0x4304ff
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.00429c00
add esp, 0x14
lea ecx, [ebp - 0x58]
xor eax, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430530
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004011f0
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.004367f0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x430599
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43058f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4306e9
push ecx
push edx
call fcn.004e9693
add esp, 8
cmp dword [ebp - 0x28], 0xf
lea eax, [ebp - 0x3c]
push 0x51cb90
cmova eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.004f4c46
mov edi, eax
add esp, 8
test edi, edi
jne 0x43063b
call fcn.00418bb0
cmp eax, 2
jg 0x43068f
cmp dword [ebp - 0x28], 0xf
lea eax, [ebp - 0x3c]
cmova eax, dword [ebp - 0x3c]
push eax
push str.Failed_to_write_serialized_state_to_disk___s_._n
push 2
call fcn.004191f0
add esp, 0xc
test al, al
jne 0x43068f
cmp dword [ebp - 0x28], 0xf
lea esi, [ebp - 0x3c]
push 2
cmova esi, dword [ebp - 0x3c]
call fcn.004f2743
push esi
push str.Fossilize_ERROR:_Failed_to_write_serialized_state_to_disk___s_._n
push eax
call fcn.00401d60
add esp, 0x10
lea ecx, [ebp - 0x3c]
xor bl, bl
call fcn.00401790
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.004f5aec
add esp, 0x10
cmp eax, esi
je 0x4306ae
call fcn.00418bb0
cmp eax, 2
jg 0x430686
push str.Failed_to_write_serialized_state_to_disk._n
push 2
call fcn.004191f0
add esp, 8
test al, al
jne 0x430686
push str.Fossilize_ERROR:_Failed_to_write_serialized_state_to_disk._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
add esp, 8
push edi
call fcn.004f4b0b
add esp, 4
lea ecx, [ebp - 0x3c]
xor bl, bl
call fcn.00401790
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.004f4b0b
add esp, 4
lea ecx, [ebp - 0x3c]
mov bl, 1
call fcn.00401790
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.004ee89f
int3