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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed158
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.004df1a0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4e277d
xor edx, edx
jmp 0x4e2791
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4e2782
sub edx, ecx
sar edx, 1
push edx
push esi
mov ecx, ebx
call fcn.004c0470
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push 0
push 0x80
push 3
push 7
push SysReAllocString
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.004b3660
mov ebx, dword [ebp - 0x30]
test eax, eax
js 0x4e2a9e
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push ebx
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x4e27fe
call fcn.004b34f0
test eax, eax
js 0x4e2827
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push esi
call fcn.0050f771
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x4e282c
push 1
push eax
call fcn.0050ed4e
jmp 0x4e2a9b
mov esi, dword [ebp - 0x20]
jmp 0x4e2804
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e284b
call fcn.004b34f0
test ebx, ebx
je 0x4e285b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4e2abd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
movaps xmm0, xmmword [0x605e30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
test esi, esi
je 0x4e289b
push 0xffffffffffffffff
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.004e0f10
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.004e3480
test eax, eax
je 0x4e2a71
mov esi, dword [ebp - 0x10]
add esi, 4
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.004dfc10
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
push esi
mov ebx, dword [ecx]
add ecx, 8
call fcn.004bc730
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x10], ebx
mov dword [ecx + 4], eax
mov dword [ecx], 0
inc dword [edx + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x4e28fc
mov dword [eax], ecx
jmp 0x4e28fe
mov dword [edx], ecx
mov dword [edx + 4], ecx
xor ebx, ebx
movzx eax, word [esi]
mov dword [ebp - 0x18], ecx
test ax, ax
je 0x4e2978
mov ecx, eax
push ecx
call fcn.005b0166
add esp, 4
test eax, eax
je 0x4e2928
test ebx, ebx
mov eax, esi
cmovne eax, ebx
mov ebx, eax
jmp 0x4e292a
xor ebx, ebx
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4e2910
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x4e2978
sub ebx, esi
sar ebx, 1
js 0x4e2ac7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4e2966
push ebx
lea ecx, [ebp + 8]
call fcn.004b4690
mov esi, dword [ebp + 8]
cmp ebx, dword [esi - 8]
jg 0x4e2ac7
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
movzx eax, word [esi]
mov ebx, esi
push eax
call fcn.005b0166
add esp, 4
test eax, eax
je 0x4e2a18
nop
movzx eax, word [ebx + 2]
add ebx, 2
push eax
call fcn.005b0166
add esp, 4
test eax, eax
jne 0x4e2990
cmp ebx, esi
je 0x4e2a18
mov edx, dword [esi - 0xc]
sub ebx, esi
sar ebx, 1
test edx, edx
js 0x4e2ac7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4e29d4
push edx
lea ecx, [ebp + 8]
call fcn.004b4690
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
lea edx, [esi + ebx*2]
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x1c], eax
lea eax, [eax*2 + 2]
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push esi
call fcn.004e6470
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
js 0x4e2ac7
cmp eax, dword [esi - 8]
jg 0x4e2ac7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0xc]
cmp ecx, 2
jle 0x4e2a59
test ecx, ecx
js 0x4e2ac7
cmp word [esi], 0x5b
jne 0x4e2a59
test ecx, ecx
jle 0x4e2a59
push 0x5d
push esi
call fcn.0058d352
add esp, 8
test eax, eax
je 0x4e2a59
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4e2a59
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x1c]
call fcn.004ded40
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.004e3480
test eax, eax
je 0x4e2a71
mov esi, dword [ebp - 0x14]
jmp 0x4e28b8
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e2a90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push edi
call fcn.0050ed4e
mov ebx, dword [ebp - 0x30]
add esp, 8
test ebx, ebx
je 0x4e2aa9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004b3510
push 0x80070057
call fcn.004b3510
int3