Function at 0x1002c810
Capabilities:
Check os version

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 0x10035fc4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xa8
mov eax, dword [0x1004805c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
sub esp, 8
mov dword [ebp - 0x90], 0
lea edx, [esi + 0x30]
mov dword [ebp - 4], 0
call fcn.10021f40
mov edi, eax
mov dword [ebp - 0x80], edi
test edi, edi
je 0x1002cace
push str.Mapped_application_bundle
call fcn.10019f20
mov ecx, dword [esi + 0x30]
add esp, 4
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb0], ecx
lea eax, [ecx + edi]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x8c], eax
cmp eax, edi
mov eax, dword [esi + 0x38]
jb 0x1002cb03
mov edi, dword [ebp - 0x8c]
xorps xmm0, xmm0
mov dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0x80]
movlpd qword [ebp - 0xa0], xmm0
test edx, edx
jl 0x1002cb71
jg 0x1002cb71
test eax, eax
jb 0x1002cb71
test edx, edx
jg 0x1002cb71
jl 0x1002c8ff
cmp eax, ecx
jae 0x1002cb71
add edi, eax
mov dword [esi + 0x40], 0
mov dword [ebp - 0xb4], edi
mov dword [esi + 0x44], 0
push 0
push 0xc
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.1002d610
movq xmm0, qword [edi]
lea eax, [edi + 0xc]
mov ecx, dword [edi + 8]
movq qword [ebp - 0x7c], xmm0
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0xb4], eax
test ecx, ecx
jle 0x1002cb38
mov eax, dword [ebp - 0x7c]
cmp eax, 6
jne 0x1002c95a
test edi, edi
jne 0x1002cb38
jmp 0x1002c96b
cmp eax, 2
jne 0x1002cb38
test edi, edi
jne 0x1002cb38
mov dword [ebp - 0x6c], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x64], 0
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0xb8]
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x90], 1
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
call fcn.1002d690
push 0
push 0x28
lea ecx, [ebp - 0xb8]
call fcn.1002d610
mov eax, dword [ebp - 0xb4]
lea ecx, [esi + 0x54]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x64]
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.100029c0
movups xmm0, xmmword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
movups xmmword [esi + 0x6c], xmm0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [esi + 0x7c], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [esi + 0x8c], xmm0
cmp edx, 8
jb 0x1002ca5d
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ca53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ca53
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002f71a
add esp, 8
push dword [ebp - 0x80]
lea eax, [esi + 0x6c]
mov dword [esi + 0xac], eax
lea eax, [esi + 0x7c]
mov dword [esi + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x1002ca8d
push str.Failed_to_unmap_bundle_after_extraction.
call fcn.1001a1c0
add esp, 4
xor eax, eax
jmp 0x1002cab0
push str.Unmapped_application_bundle
call fcn.10019f20
add esp, 4
xor eax, eax
jmp 0x1002cab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002f3c2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Failure_processing_application_bundle.
call fcn.10019f70
add esp, 4
push str.Couldnt_memory_map_the_bundle_file_for_reading.
call fcn.10019f70
add esp, 4
mov dword [ebp - 0x84], 0x800080a0
lea eax, [ebp - 0x84]
push 0x10046770
push eax
call fcn.10030c4c
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.10019f70
add esp, 4
push str.Arithmetic_overflow_computing_bundle_bounds.
call fcn.10019f70
add esp, 4
mov dword [ebp - 0x88], 0x8000809f
lea eax, [ebp - 0x88]
push 0x10046770
push eax
call fcn.10030c4c
push str.Failure_processing_application_bundle.
call fcn.10019f70
add esp, 4
push edi
push dword [ebp - 0x7c]
push str.Bundle_header_version_compatibility_check_failed._Header_version:__d._d
call fcn.10019f70
add esp, 0xc
mov dword [ebp - 0x94], 0x8000809f
lea eax, [ebp - 0x94]
push 0x10046770
push eax
call fcn.10030c4c
push str.Failure_processing_application_bundle__possible_file_corruption.
call fcn.10019f70
add esp, 4
push str.Arithmetic_overflow_while_reading_bundle.
call fcn.10019f70
add esp, 4
mov dword [ebp - 0x98], 0x8000809f
lea eax, [ebp - 0x98]
push 0x10046770
push eax
call fcn.10030c4c
int3