Function at 0x4dbb10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push dword [ebp + 0x10]
movups xmmword [ebx], xmm0
call fcn.004d8100
push eax
call fcn.004dcb60
add esp, 8
mov edi, eax
push 0x73bb54
call fcn.004d8100
push eax
call fcn.004dcb60
mov esi, eax
push esi
push edi
call fcn.004dd130
push esi
mov dword [ebp - 4], eax
call fcn.004dc9c0
push edi
call fcn.004dc9c0
mov edi, dword [ebp - 4]
add esp, 0x18
test edi, edi
je 0x4dbd00
push 2
push 0
push edi
call fcn.00531586
add esp, 0xc
test eax, eax
je 0x4dbbd1
call fcn.004db1d0
mov ebx, eax
test ebx, ebx
je 0x4dbbb5
mov ecx, dword [ebx]
push 5
push ebx
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x4dbbb5
mov esi, dword [ebx]
call fcn.0052b2e8
push dword [eax]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esi]
push str.static:_Failed_to_seek_file__s_with_errno__d
push 5
push 2
push ebx
call eax
add esp, 0x18
push edi
call fcn.00531ee5
call fcn.0052b2e8
push dword [eax]
call fcn.004d87e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00537d65
inc eax
push eax
push dword [ebp + 0xc]
push ebx
call fcn.004d9380
add esp, 0x10
test eax, eax
je 0x4dbbfc
push edi
call fcn.00531ee5
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
dec ecx
push 0
push 0
mov dword [ebx], ecx
push edi
mov byte [ecx + eax], 0
call fcn.00531586
add esp, 0xc
test eax, eax
je 0x4dbc7c
call fcn.004db1d0
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4dbc5a
mov ecx, dword [esi]
push 5
push esi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x4dbc5a
mov esi, dword [esi]
call fcn.0052b2e8
push dword [eax]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esi]
push str.static:_Failed_to_seek_file__s_with_errno__d
push 5
push 2
push dword [ebp - 4]
call eax
add esp, 0x18
push ebx
call fcn.004d9220
push edi
call fcn.00531ee5
call fcn.0052b2e8
push dword [eax]
call fcn.004d87e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebx]
push 1
push dword [ebx + 4]
call fcn.00531af3
push edi
mov esi, eax
call fcn.00531ee5
add esp, 0x14
cmp esi, dword [ebx]
jae 0x4dbcf7
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x4dbcd3
mov ecx, dword [edi]
push 5
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x4dbcd3
mov esi, dword [edi]
call fcn.0052b2e8
push dword [eax]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esi]
push str.static:_Failed_to_read_file__s_with_errno__d
push 5
push 2
push edi
call eax
add esp, 0x18
push dword [ebx]
push dword [ebx + 4]
call fcn.004db540
push ebx
call fcn.004d9220
push 0x2e
call fcn.004d86d0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x4dbd3b
mov ecx, dword [edi]
push 5
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 2
jl 0x4dbd3b
mov esi, dword [edi]
call fcn.0052b2e8
push dword [eax]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esi]
push str.static:_Failed_to_open_file__s_with_errno__d
push 5
push 2
push edi
call eax
add esp, 0x18
call fcn.0052b2e8
push dword [eax]
call fcn.004d87e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret