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

Disassembly:
push 0xffffffffffffffff
push 0x6006c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
lea edi, [esp + 0x14]
mov dword [esp + 0x34], eax
call fcn.0047ac70
mov dword [esp + 0x64], 0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
jle 0x4ebf22
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4ebf9e
cmp ecx, eax
jg 0x4ebf9e
movzx eax, word [edi + ecx*2]
cmp ax, 0x5c
je 0x4ebf22
push 0x5c
lea edi, [esp + 0x18]
call fcn.0040af90
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, 0x6355ec
call fcn.0040aab0
add esp, 8
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4ebfa8
call fcn.0040f010
cmp eax, ebp
jge 0x4ebfae
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebf8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x64], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x4ec1d4
push 0x80070057
call fcn.00403650
mov dword [esp + 0x1c], eax
mov ebx, eax
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
jne 0x4ebff8
call fcn.0040f010
cmp eax, ebp
jge 0x4ebff4
cmp ebx, ebp
je 0x4ebfd9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4ebf82
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], ebp
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.00415030
mov edi, dword [esp + 0x2c]
push esi
push ebp
push edi
call fcn.005da970
add esp, 0xc
push ebp
lea edx, [esp + 0x34]
push edx
push esi
push edi
push ebx
mov dword [esp + 0x44], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x4ec068
call fcn.0040f010
cmp eax, ebp
jge 0x4ec06e
push edi
call fcn.005d28c2
add esp, 4
cmp ebx, ebp
je 0x4ec04a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4ec1b9
cmp dword [esp + 0x30], esi
jne 0x4ec036
lea ebp, [esi + esi + 0x80]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0
push ebp
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x6c], 4
call fcn.00415030
push ebp
mov ebp, dword [esp + 0x24]
push 0
push ebp
call fcn.005da970
add esp, 0xc
call fcn.00492d60
lea edx, [esp + 0x24]
push edx
push eax
push esi
mov ecx, ebp
mov edx, edi
call fcn.00492ac0
add esp, 0xc
test eax, eax
jne 0x4ec0f1
push ebp
call fcn.005d28c2
add esp, 4
push edi
call fcn.005d28c2
add esp, 4
test ebx, ebx
je 0x4ec0da
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.00403870
lea ecx, [esp + 0x14]
call fcn.00403870
jmp 0x4ec1ed
mov ecx, dword [esp + 0x24]
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
xor ebx, ebx
shr ecx, 4
mov dword [esp + 0x24], ecx
je 0x4ec17f
lea ecx, [ecx]
mov eax, dword [esp + 0x34]
mov ecx, 7
mov esi, ebp
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 4]
lea edi, [esi + 1]
call fcn.004ee020
test al, al
je 0x4ec20c
mov eax, dword [esp + 0x34]
cmp esi, dword [eax + 4]
jae 0x4ebf9e
mov edx, dword [eax]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
add ebx, 1
add ebp, 0x1c
cmp ebx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
jb 0x4ec110
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
push ebp
call fcn.005d28c2
add esp, 4
push edi
call fcn.005d28c2
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x4ec1a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ec1c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ec1ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005d28b3
add esp, 0x54
ret
push 0x8007000e
call fcn.00403650
int3