Function at 0x4b13a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x4b160a
cmp byte [esi], 0
je 0x4b160a
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x4b160a
cmp byte [eax], 0
je 0x4b160a
cmp dword [ebp + 0xc], edi
je 0x4b160a
cmp dword [ebp + 0x18], edi
je 0x4b160a
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004b11da
pop ecx
cmp eax, edi
pop ecx
jne 0x4b160f
lea eax, [ebp - 8]
push eax
push 1
push esi
call fcn.004b1630
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b15d6
lea eax, [ebp - 0x48]
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x20]
push dword [ebp - 8]
call fcn.004b1686
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b15d6
lea eax, [ebp - 0x48]
push 8
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004dcb20
push 1
lea eax, [ebp - 0x48]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp - 4]
call fcn.004b123b
add esp, 0x20
test eax, eax
jne 0x4b160f
lea eax, [ebp - 0x48]
push 8
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004dcb20
mov eax, dword [ebp - 0x24]
push 0x28
pop edi
push dword [ebp - 8]
lea ebx, [eax + 0x28]
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], edi
call fcn.004b1614
mov esi, eax
lea eax, [ebx + 2]
sub esi, edi
push eax
mov dword [ebp - 0x10], esi
call fcn.0043e8d8
mov edi, eax
mov eax, dword [ebp - 8]
push 0
push 0x28
push dword [eax + 0x10]
call fcn.004e42ba
add esp, 0x20
test eax, eax
jl 0x4b1603
mov eax, dword [ebp - 4]
push 0
push 0x28
push dword [eax + 0x10]
call fcn.004e42ba
add esp, 0xc
test eax, eax
jl 0x4b1603
cmp esi, 0x28
jle 0x4b159c
jmp 0x4b14eb
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
push ebx
push edi
push dword [eax + 0x10]
call fcn.004e4148
add esp, 0xc
cmp eax, ebx
jne 0x4b1603
push dword [ebp - 0x24]
lea esi, [edi + 0x28]
lea eax, [ebp - 0x18]
push esi
push edi
push 8
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x20]
call fcn.004b0a58
add esp, 0x20
test eax, eax
jne 0x4b160f
call fcn.0049396f
push 8
push edi
mov dword [edi + 8], eax
push dword [ebp - 0x24]
push esi
push edi
push dword [ebp + 0x20]
call fcn.004b0be9
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b15d6
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push edi
push 8
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x20]
call fcn.004b0e95
add esp, 0x20
test eax, eax
jne 0x4b160f
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push edi
push dword [eax + 0x10]
call fcn.004e4ac9
add esp, 0xc
cmp eax, dword [ebp + 8]
jne 0x4b15d1
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jl 0x4b14e8
push 0
lea eax, [ebp - 0x48]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp - 4]
call fcn.004b123b
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4b15d6
push dword [ebp - 4]
call fcn.004e2a59
push eax
push dword [ebp + 0x14]
call fcn.0049845c
add esp, 0xc
test eax, eax
jge 0x4b15d6
mov ebx, 0xdb0
cmp dword [ebp - 4], 0
je 0x4b15e5
push dword [ebp - 4]
call fcn.004b4828
pop ecx
cmp dword [ebp - 8], 0
je 0x4b15f4
push dword [ebp - 8]
call fcn.004b4828
pop ecx
test edi, edi
je 0x4b15ff
push edi
call fcn.004dce85
pop ecx
mov eax, ebx
jmp 0x4b160f
mov ebx, 0xdaf
jmp 0x4b15d6
mov eax, 0xdad
pop edi
pop esi
pop ebx
leave
ret