Function at 0x4e1eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x4f74c0
mov ebx, dword [ebp + 8]
mov dword [esi + 0xc], ecx
mov eax, dword fs:[0]
mov dword [esi + 0x60], eax
lea eax, [esi + 0x60]
mov dword fs:[0], eax
mov dword [esi + 0x20], ebx
mov eax, dword [edx]
mov ecx, dword [ebx + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x2c], eax
jmp 0x4e1f13
mov eax, dword [ebx + 4]
cmp ecx, eax
mov dword [esi + 8], ecx
jne 0x4e1f44
mov ecx, dword [esi + 8]
mov edx, dword [ebx + 8]
mov eax, ecx
sub eax, edx
cmp eax, 0x1f
mov eax, ecx
ja 0x4e1f44
mov dword [esi + 0x68], 0
mov ecx, ebx
push 0x20
call fcn.0056fa70
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
cmp ecx, eax
jae 0x4e1f5b
cmp eax, edx
mov dword [ebx + 8], eax
jb 0x4e21ab
mov ecx, eax
mov edi, ebx
mov ebx, ecx
sub ebx, edx
jb 0x4e2176
mov eax, dword [edi]
mov dword [esi + 0x30], 0
add eax, edx
push 0
lea ecx, [esi + 0x30]
push ecx
push ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e1fa0
mov eax, dword [esi + 0x30]
mov ecx, eax
mov edx, eax
and ecx, 0xffffff00
and edx, 0xffff0000
jmp 0x4e1fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
push eax
call fcn.004f50d0
add esp, 4
xor edx, edx
mov byte [esi + 0x10], al
cmp al, 0xb
mov ecx, 0
mov eax, 0
jne 0x4e20e7
and ecx, 0xff00
movzx eax, al
or ecx, edx
or eax, ecx
je 0x4e211e
mov ecx, dword [esi + 8]
cmp eax, ebx
ja 0x4e218e
add ecx, eax
mov eax, dword [edi + 4]
mov ebx, edi
mov dword [esi + 0x24], ecx
cmp ecx, eax
jne 0x4e1f10
cmp eax, dword [esi + 0x2c]
jne 0x4e1f10
xorps xmm0, xmm0
mov dword [esi + 8], ecx
movaps xmmword [esi + 0x40], xmm0
movaps xmmword [esi + 0x30], xmm0
mov dword [esi + 0x14], 0
push 0
lea eax, [esi + 0x14]
push eax
push 0x20
lea eax, [esi + 0x30]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e2060
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push eax
call fcn.004f50d0
add esp, 4
cmp al, 0xb
je 0x4e20fa
cmp al, 0x23
je 0x4e2010
jmp 0x4e2105
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, eax
and ecx, 0xffffff00
and edx, 0xffff0000
and ecx, 0xff00
or ecx, edx
movzx edx, al
or edx, ecx
je 0x4e2136
cmp edx, 0x21
jae 0x4e21c3
mov eax, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov dword [esi + 0x10], edx
sub eax, edi
cmp eax, edx
jae 0x4e20bd
mov eax, edx
mov dword [esi + 0x68], 0
mov ecx, ebx
mov edx, edi
push eax
call fcn.0056fa70
add esp, 4
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 0x10]
mov edi, dword [ebx + 8]
mov eax, dword [ebx]
add eax, edi
push edx
lea ecx, [esi + 0x30]
push ecx
push eax
call fcn.0054ad50
add esp, 0xc
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
add edi, eax
add ecx, eax
mov dword [ebx + 8], edi
mov dword [esi + 0x24], ecx
mov eax, dword [ebx + 4]
jmp 0x4e1f13
cmp byte [esi + 0x10], 0x23
jne 0x4e215c
mov ecx, dword [esi + 8]
mov eax, dword [edi + 4]
mov ebx, edi
jmp 0x4e1f13
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4e2073
mov ecx, dword [esi + 0xc]
mov eax, 1
mov dword [ecx + 4], 0
mov dword [ecx + 8], edi
mov dword [ecx], eax
mov ecx, dword [esi + 8]
jmp 0x4e2148
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebx, edi
mov eax, ecx
sub eax, dword [esi + 0x1c]
mov dword [edx + 4], eax
mov dword [edx], 0
jmp 0x4e2148
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, ecx
sub eax, dword [esi + 0x1c]
mov dword [edx + 4], eax
xor eax, eax
mov dword [edx], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 8], ecx
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x28]
mov ebx, edi
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x4e2119
mov dword [esi + 0x68], 0
push 0x5f6538
push ecx
push edx
call fcn.00570970
add esp, 0xc
jmp 0x4e21da
mov dword [esi + 0x68], 0
push 0x5f6568
push 0x20
push str.assertion_failed:_n___buf.len__
call fcn.005707b0
add esp, 0xc
jmp 0x4e21da
mov dword [esi + 0x68], 0
push 0x5f6528
push eax
push edx
call fcn.00570970
add esp, 0xc
jmp 0x4e21da
mov dword [esi + 0x68], 0
push 0x5f6578
push 0x20
push edx
call fcn.005709d0
add esp, 0xc
ud2