Function at 0x4341e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51f335
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 0x434484
cmp dword [esi + 0x20], 1
jne 0x434484
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 0x434484
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x434484
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push dword [ebp + 8]
push str._02x._016llx.json
push eax
call fcn.0042e720
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 0x434270
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.0043b310
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x4342d9
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4342cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434499
push ecx
push edx
call fcn.004fa253
add esp, 8
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
push 0x52db90
cmova eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.00505806
mov esi, eax
add esp, 8
test esi, esi
jne 0x43437b
call fcn.0041ca10
cmp eax, 2
jg 0x43443d
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.0041d050
add esp, 0xc
test al, al
jne 0x43443d
cmp dword [ebp - 0x10], 0xf
lea esi, [ebp - 0x24]
push 2
cmova esi, dword [ebp - 0x24]
call fcn.00503303
push esi
push str.Fossilize_ERROR:_Failed_to_open_file:__s_n
push eax
call fcn.00401d30
add esp, 0x10
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00401760
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.00505ddb
add esp, 0xc
push esi
test eax, eax
jns 0x434402
call fcn.005056cb
add esp, 4
call fcn.0041ca10
cmp eax, 2
jg 0x43443d
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.0041d050
add esp, 0xc
test al, al
jne 0x43443d
cmp dword [ebp - 0x10], 0xf
lea esi, [ebp - 0x24]
push 2
cmova esi, dword [ebp - 0x24]
call fcn.00503303
push esi
push str.Fossilize_ERROR:_Failed_to_seek_in_file:__s_n
push eax
call fcn.00401d30
add esp, 0x10
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00401760
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.00506482
push esi
mov edi, eax
call fcn.0050670f
mov eax, dword [ebp + 0x18]
add esp, 8
test eax, eax
je 0x43441d
cmp dword [ebx], edi
jb 0x434434
mov dword [ebx], edi
test eax, eax
je 0x43445c
push esi
push edi
push 1
push eax
call fcn.00505a4a
add esp, 0x10
cmp eax, edi
je 0x43445c
push esi
call fcn.005056cb
add esp, 4
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00401760
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.005056cb
add esp, 4
lea ecx, [ebp - 0x24]
mov bl, 1
call fcn.00401760
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.004ff45f
int3