Function at 0x4d0bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.004dc880
mov eax, dword [0x594488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x102c], ebx
call fcn.004dda01
add esp, 4
lea edi, [eax + 1]
test ebx, ebx
jne 0x4d0cdc
push 6
push str.stdin
push esi
call fcn.004dda73
push ebx
push 0xffffffffffffffff
push esi
call fcn.004dda55
push ebx
call fcn.004fd641
add esp, 0x1c
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.004d1450
add esp, 8
test eax, eax
je 0x4d0c86
mov eax, dword [ebp - 0x1020]
mov byte [ebp + eax - 0x1018], 0xa
inc dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x1024]
test ebx, ebx
je 0x4d0d42
cmp ecx, 0x1b
jne 0x4d0d42
push dword [ebp - 0x101c]
lea eax, [ebp - 0x101c]
push 0x5528ec
push ebx
push eax
call fcn.004fdbb7
add esp, 0x10
test eax, eax
je 0x4d0d26
push edi
push str.reopen
push esi
call fcn.004d1240
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc1be
mov esp, ebp
pop ebp
ret
push ebx
push 0x5528d4
push esi
call fcn.004dda7f
push 0x40
push 0x5528d8
push ebx
call fcn.004fda14
add esp, 0x18
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x4d0c58
push edi
push 0x5528dc
push esi
call fcn.004d1240
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc1be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.004d1450
mov ecx, dword [ebp - 0x1024]
add esp, 8
cmp ecx, 0xffffffff
je 0x4d0d5a
mov eax, dword [ebp - 0x1020]
mov byte [ebp + eax - 0x1018], cl
inc dword [ebp - 0x1020]
push 0
push 0xffffffffffffffff
push esi
call fcn.004dda55
mov dword [ebp - 0x1024], eax
add esp, 0xc
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], 0x4d13b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1020]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
test eax, eax
jle 0x4d0da8
mov dword [ebp - 0x1020], 0
jmp 0x4d0e0f
push dword [ebp - 0x101c]
call fcn.005058b8
add esp, 4
test eax, eax
je 0x4d0df3
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x1028]
test ebx, ebx
je 0x4d0e48
push 0x74
push ebx
call fcn.004f4340
add esp, 8
test eax, eax
jne 0x4d0e48
mov eax, 0x552894
push ebx
push eax
push str.attempt_to_load_a__s_chunk__mode_is__s_
push esi
call fcn.004dda7f
mov ebx, 3
jmp 0x4d0e5f
push dword [ebp - 0x101c]
lea eax, [ebp - 0x1018]
push 0x1000
push 1
push eax
call fcn.00505263
add esp, 0x10
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x4d0dc1
cmp byte [ebp - 0x1018], 0x1b
jne 0x4d0dc1
mov ebx, dword [ebp - 0x1028]
test ebx, ebx
je 0x4d0e48
push 0x62
push ebx
call fcn.004f4340
add esp, 8
test eax, eax
jne 0x4d0e48
mov eax, 0x55288c
jmp 0x4d0ddf
push dword [ebp - 0x1024]
lea eax, [ebp - 0x18]
push eax
push 0x4d1410
push esi
call fcn.004ddadf
mov ebx, eax
add esp, 0x10
push dword [ebp - 0x101c]
call fcn.005058e3
add esp, 4
mov dword [ebp - 0x1028], eax
cmp dword [ebp - 0x102c], 0
je 0x4d0e93
push dword [ebp - 0x101c]
call fcn.004fd781
mov eax, dword [ebp - 0x1028]
add esp, 4
push edi
push esi
test eax, eax
je 0x4d0ebe
call fcn.004dda07
push edi
push str.read
push esi
call fcn.004d1240
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc1be
mov esp, ebp
pop ebp
ret
call fcn.004dda13
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dc1be
mov esp, ebp
pop ebp
ret