Function at 0x4e3810
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bcb25
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4e386e
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 0
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x58]
mov dword [ebp - 0xa8], vtable.std::_Func_impl_no_alloc_bool____cdecl___void____bool__void__.0
push eax
mov dword [ebp - 0xa4], 0x537900
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x34], 0
call fcn.00451600
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x4e38e4
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xa8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4e3ae0
cmp eax, 0xffffffff
je 0x4e3ae0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov byte [ebp - 4], 4
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], edi
call fcn.004e3da0
push 0
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push eax
push edi
mov edi, dword [ebp - 0x74]
push edi
push dword [ebp - 0x60]
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e39eb
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00531420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
push ebx
push 0x751d28
push 2
mov ecx, esi
call fcn.00454910
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e39a9
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e399f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e3ba1
push edx
push ecx
call fcn.006779b1
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.00537920
test edi, edi
je 0x4e3b83
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4e39dc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e3ba1
push ecx
push edi
call fcn.006779b1
add esp, 8
jmp 0x4e3b83
lea eax, [ebp - 0x74]
cmp esi, eax
je 0x4e3a25
mov ebx, dword [ebp - 0x70]
mov ecx, dword [esi]
sub ebx, edi
mov eax, dword [esi + 8]
sub eax, ecx
mov dword [ebp - 0x68], ecx
cmp ebx, eax
jbe 0x4e3a12
push ebx
mov ecx, esi
call fcn.00494a00
mov ecx, dword [esi]
mov dword [ebp - 0x68], ecx
push ebx
push edi
push ecx
call fcn.00679930
mov eax, dword [ebp - 0x68]
add esp, 0xc
add eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x78], eax
sete bl
call fcn.00537920
test edi, edi
je 0x4e3a67
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4e3a5d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e3ba1
push ecx
push edi
call fcn.006779b1
add esp, 8
mov al, bl
jmp 0x4e3b85
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00531420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push ebx
push str.Unable_to_open_file__0_._Error:__1
push 2
mov ecx, esi
call fcn.00454910
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e3b48
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3b3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e3ba1
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4e3b6b
cmp eax, 0xffffffff
je 0x4e3b6b
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4e3b83
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4e3b83
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.00682da2
int3