Function at 0x42e280
Capabilities:
Check os version
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e730b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x640
mov eax, dword [0x53d190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x624], edx
mov eax, dword [ebx + 0x10]
xor edi, edi
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x650], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x648], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x644], edi
mov dword [ebp - 0x640], edi
mov dword [ebp - 0x63c], 0xffffffff
mov dword [ebp - 0x638], edi
mov byte [ebp - 0x634], 0
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x62c], eax
cmp eax, 0xffffffff
je 0x42e62b
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x630], edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x630], edi
jne 0x42e61f
cmp eax, 0x5c
jb 0x42e61f
push edi
lea eax, [ebp - 0x628]
push eax
push 0x1000
push 0x58a078
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e61f
mov eax, 0x5a4d
cmp ax, word [0x58a078]
jne 0x42e61f
mov ecx, dword [0x58a0b4]
lea eax, [ecx + 4]
cmp eax, dword [ebp - 0x628]
ja 0x42e61f
cmp dword [ecx + 0x58a078], 0x4550
jne 0x42e61f
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x42e3cb
mov dword [eax], 1
push dword [ebp - 0x62c]
lea ecx, [ebp - 0x644]
push 0
call fcn.0042b270
test eax, eax
jne 0x42e61f
mov ecx, dword [ebp - 0x644]
mov edx, dword [ebp - 0x640]
mov eax, dword [ecx + 0x3c]
lea edi, [edx + ecx]
add ecx, 4
add ecx, eax
lea eax, [ecx + 0x14]
cmp eax, edi
ja 0x42e61d
movzx eax, word [ecx]
mov dword [ebp - 0x624], 0x14c
cmp word [ebp - 0x624], ax
jne 0x42e442
lea eax, [ecx + 0xf4]
cmp eax, edi
ja 0x42e61d
mov edi, dword [ecx + 0x94]
test edi, edi
je 0x42e48e
cmp edi, edx
jae 0x42e48e
mov eax, dword [ecx + 0x98]
jmp 0x42e47b
mov dword [ebp - 0x624], 0x8664
cmp word [ebp - 0x624], ax
jne 0x42e61d
lea eax, [ecx + 0x104]
cmp eax, edi
ja 0x42e61d
mov edi, dword [ecx + 0xa4]
test edi, edi
je 0x42e48e
cmp edi, edx
jae 0x42e48e
mov eax, dword [ecx + 0xa8]
cmp eax, 0x400
jbe 0x42e48e
cmp eax, edx
jae 0x42e48e
add eax, edi
cmp eax, edx
mov al, 1
jbe 0x42e490
mov al, 2
cmp al, 2
je 0x42e4c6
push dword [ebp - 0x64c]
lea edx, [ebp - 0x624]
push dword [ebp - 0x648]
lea ecx, [ebp - 0x644]
push esi
push dword [ebp - 0x650]
sub esp, 8
call fcn.0042d410
add esp, 0x18
test eax, eax
je 0x42e616
xor eax, eax
mov edi, str.1.3.14.3.2.26
mov word [ebp - 0x620], ax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov cx, ax
shr cx, 8
cmp al, 6
jne 0x42e4f3
cmp cx, 1
mov eax, str.2.16.840.1.101.3.4.2.1
cmovbe eax, edi
mov edi, eax
mov edx, dword [ebp - 0x640]
lea eax, [ebp - 0x624]
mov ecx, dword [ebp - 0x644]
push eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x628], 0x32
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.0042c330
add esp, 0x14
mov dword [ebp - 0x624], eax
test eax, eax
je 0x42e54b
xor edx, edx
cmp eax, 0x570
setne dl
lea edx, [edx*2 + 2]
jmp 0x42e612
push 0xff
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.004beb60
mov edx, dword [ebp - 0x628]
lea eax, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x170]
push eax
push ecx
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x624]
push eax
sub esp, 8
lea ecx, [ebp - 0x70]
movups xmmword [ebp - 0x3c], xmm0
call fcn.0042d150
mov edx, eax
add esp, 0x20
cmp edx, 0x490
je 0x42e60d
test esi, esi
je 0x42e5d1
lea ecx, [ebp - 0x170]
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x42e5c4
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x42e5e8
movups xmm0, xmmword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x64c]
test ecx, ecx
je 0x42e5ff
movups xmm0, xmmword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x650]
mov dword [eax], 1
jmp 0x42e612
mov edx, 3
test edx, edx
jne 0x42e61d
mov edi, 1
jmp 0x42e61f
xor edi, edi
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x638]
test eax, eax
je 0x42e65a
mov ecx, dword [ebp - 0x644]
test ecx, ecx
je 0x42e653
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x634], 0
je 0x42e675
mov ecx, dword [ebp - 0x63c]
cmp ecx, 0xffffffff
je 0x42e675
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bcc56
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret