Function at 0x48bfa2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
cmp dword [0x4fd840], 0
jne 0x48bfc3
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
sub esp, 8
push 0x8000
push dword [0x4fd840]
call sub.msvcrt.dll__open
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48c005
call sub.msvcrt.dll__errno
cmp dword [eax], 2
jne 0x48c005
mov dword [0x4fd850], 1
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48c052
sub esp, 4
sub esp, 8
sub esp, 4
call sub.msvcrt.dll__errno
add esp, 4
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
push dword [0x4fd840]
push str.cant_open___s:__s_n
call fcn.004a7e84
add esp, 4
push eax
call fcn.0049d7de
add esp, 0x10
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
push 0
push dword [0x4fd840]
push dword [ebp - 0xc]
call fcn.0048bf98
add esp, 0xc
test eax, eax
je 0x48c086
sub esp, 0xc
push dword [ebp - 0xc]
call sub.msvcrt.dll__close
add esp, 0x10
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
sub esp, 8
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0xc]
call sub.msvcrt.dll__fstat
add esp, 0x10
test eax, eax
je 0x48c0f1
sub esp, 4
sub esp, 8
sub esp, 4
call sub.msvcrt.dll__errno
add esp, 4
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
push dword [0x4fd840]
push str.cant_stat___s:__s_n
call fcn.004a7e84
add esp, 4
push eax
call fcn.0049d7de
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call sub.msvcrt.dll__close
add esp, 0x10
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
mov ax, word [ebp - 0x42]
and eax, 0xffff
and eax, 0xf000
cmp eax, 0x8000
je 0x48c142
sub esp, 8
push dword [0x4fd840]
push str.__s_is_not_a_regular_file___ignored_n
call fcn.004a7e84
add esp, 4
push eax
call fcn.0049d7de
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call sub.msvcrt.dll__close
add esp, 0x10
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
cmp dword [ebp - 0x34], 0
jne 0x48c188
sub esp, 0xc
push str.note:_random_seed_file_is_empty_n
call fcn.004a7e84
add esp, 4
push eax
call fcn.0049d7de
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call sub.msvcrt.dll__close
add esp, 0x10
mov dword [0x4fd850], 1
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
cmp dword [ebp - 0x34], 0x258
je 0x48c1c7
sub esp, 0xc
push str.WARNING:_invalid_size_of_random_seed_file___not_used_n
call fcn.004a7e84
add esp, 4
push eax
call fcn.0049d7de
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call sub.msvcrt.dll__close
add esp, 0x10
mov dword [ebp - 0x2bc], 0
jmp 0x48c2f4
sub esp, 4
push 0x258
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0xc]
call sub.msvcrt.dll__read
add esp, 0x10
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0xffffffff
jne 0x48c1fc
call sub.msvcrt.dll__errno
cmp dword [eax], 4
jne 0x48c1fc
jmp 0x48c1c7
cmp dword [ebp - 0x2ac], 0x258
je 0x48c23d
sub esp, 4
sub esp, 8
sub esp, 4
call sub.msvcrt.dll__errno
add esp, 4
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
push dword [0x4fd840]
push str.cant_read___s:__s_n
call fcn.004a7e84
add esp, 4
push eax
call fcn.0049d8b6
sub esp, 0xc
push dword [ebp - 0xc]
call sub.msvcrt.dll__close
add esp, 0x10
sub esp, 4
push 0
push 0x258
lea eax, [ebp - 0x2a8]
push eax
call fcn.0048c7e8
add esp, 0x10
call sub.msvcrt.dll__getpid
mov dword [ebp - 0x2b0], eax
sub esp, 4
push 0
push 4
lea eax, [ebp - 0x2b0]
push eax
call fcn.0048c7e8
add esp, 0x10
sub esp, 0xc
push 0
call sub.msvcrt.dll_time
add esp, 0x10
mov dword [ebp - 0x2b4], eax
sub esp, 4
push 0
push 4
lea eax, [ebp - 0x2b4]
push eax
call fcn.0048c7e8
add esp, 0x10
call sub.msvcrt.dll_clock
mov dword [ebp - 0x2b8], eax
sub esp, 4
push 0
push 4
lea eax, [ebp - 0x2b8]
push eax
call fcn.0048c7e8
add esp, 0x10
sub esp, 4
push 0
push 0x10
push 0
call fcn.0048c953
add esp, 0x10
mov dword [0x4fd850], 1
mov dword [ebp - 0x2bc], 1
mov eax, dword [ebp - 0x2bc]
leave
ret