Function at 0x5c5d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x548
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x540], 0
cmp dword [ebp + 0xc], 0
jne 0x5c5d4e
xor eax, eax
jmp 0x5c5fb8
push 0x7158f4
mov eax, dword [ebp + 8]
push eax
call fcn.005f3970
add esp, 8
mov dword [ebp - 0x538], eax
cmp dword [ebp - 0x538], 0
jne 0x5c5da4
call fcn.00516cf0
push str.RAND_load_file
push 0x6a
push str.crypto_rand_randfile.c
call fcn.00516d40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.Filename_s
push 0x79
push 0x24
call fcn.00516d90
add esp, 0x10
or eax, 0xffffffff
jmp 0x5c5fb8
lea edx, [ebp - 0x534]
push edx
mov eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
add esp, 8
test eax, eax
jge 0x5c5e0f
call fcn.00516cf0
push str.RAND_load_file
push 0x71
push str.crypto_rand_randfile.c
call fcn.00516d40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.Filename_s
push 0x71
push 0x24
call fcn.00516d90
add esp, 0x10
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x5c5fb8
cmp dword [ebp + 0xc], 0
jge 0x5c5e35
movzx eax, word [ebp - 0x52e]
and eax, 0x8000
je 0x5c5e2e
mov ecx, dword [ebp - 0x520]
mov dword [ebp + 0xc], ecx
jmp 0x5c5e35
mov dword [ebp + 0xc], pe_nt_image_headers32
push 0
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
add esp, 8
cmp dword [ebp + 0xc], 0
jle 0x5c5e79
cmp dword [ebp + 0xc], 0x500
jg 0x5c5e61
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x544], eax
jmp 0x5c5e6b
mov dword [ebp - 0x544], 0x400
mov ecx, dword [ebp - 0x544]
mov dword [ebp - 0x548], ecx
jmp 0x5c5e83
mov dword [ebp - 0x548], 0x500
mov edx, dword [ebp - 0x538]
push edx
mov eax, dword [ebp - 0x548]
push eax
push 1
lea ecx, [ebp - 0x504]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x53c], eax
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x5c5ee6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
jne 0x5c5ee6
mov eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
cmp dword [ebp - 0x53c], 0
jne 0x5c5ee6
jmp 0x5c5e47
cmp dword [ebp - 0x53c], 0
jne 0x5c5ef1
jmp 0x5c5f4f
cvtsi2sd xmm0, dword [ebp - 0x53c]
mov eax, 8
call fcn.007081d0
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x504]
push edx
call fcn.0057d050
add esp, 0x10
mov eax, dword [ebp - 0x540]
add eax, dword [ebp - 0x53c]
mov dword [ebp - 0x540], eax
cmp dword [ebp + 0xc], 0
jle 0x5c5f4a
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x53c]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], 0
jg 0x5c5f4a
jmp 0x5c5f4f
jmp 0x5c5e47
push 0x500
lea edx, [ebp - 0x504]
push edx
call fcn.00401320
add esp, 8
mov eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
call fcn.0057d6d0
test eax, eax
jne 0x5c5fb2
call fcn.00516cf0
push str.RAND_load_file
push 0xae
push str.crypto_rand_randfile.c
call fcn.00516d40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.Filename_s
push 0x76
push 0x24
call fcn.00516d90
add esp, 0x10
or eax, 0xffffffff
jmp 0x5c5fb8
mov eax, dword [ebp - 0x540]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret