Function at 0x1005ac20
Capabilities:
Access peb ldr_data
Check os version
Resolve function by parsing pe exports

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 0x10219ad8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d0
mov eax, dword [0x102e2740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x18], edi
mov edx, dword [ebx + 8]
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1a4], edx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov byte [ebp - 4], 0xc
lea esi, [edi + 0xa4]
mov dword [ebp - 0x18], esi
push 0x1c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.101e94ef
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov byte [ebp - 4], 0xe
lea esi, [edi + 0xb8]
mov dword [ebp - 0x18], esi
push 0x1c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.101e94ef
mov dword [eax], eax
add esp, 4
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0xb8
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 0xf
push 0
push eax
call fcn.101eb6c0
mov esi, dword [ebp - 0x1a4]
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x1005ae5e
mov eax, dword [esi]
sub esp, 0xc
lea ecx, [ebp - 0x1a0]
push eax
call fcn.100699d0
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x1a0], 0x102d35c0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1a4], eax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x144], 0
je 0x1005b669
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a0]
call fcn.1006dcd0
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x20]
cmova ecx, dword [ebp - 0x30]
cmp esi, 0xb
jne 0x1005b654
mov edx, str._MeshFormat
sub esi, 4
jb 0x1005af02
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005af07
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005aef1
cmp esi, 0xfffffffc
je 0x1005af3b
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005af34
cmp esi, 0xfffffffd
je 0x1005af3b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005af34
cmp esi, 0xfffffffe
je 0x1005af3b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005af34
cmp esi, 0xffffffff
je 0x1005af3b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1005af3b
sbb eax, eax
or eax, 1
jmp 0x1005af3d
xor eax, eax
test eax, eax
jne 0x1005b654
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.100702b0
mov esi, eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x18], eax
mov ecx, esi
lea eax, [ebp - 0x18]
push eax
call fcn.100705a0
lea eax, [edi + 4]
mov ecx, esi
push eax
call fcn.10070420
cmp dword [ebp - 0x18], 1
movsd xmm1, qword [ebp - 0x38]
sete al
comisd xmm1, xmmword [0x102d36b0]
mov byte [edi], al
ja 0x1005b5f9
movsd xmm0, qword [0x102d36a8]
comisd xmm0, xmm1
ja 0x1005b5f9
cmp dword [edi + 4], 8
jne 0x1005b6f1
test al, al
je 0x1005b05e
lea ecx, [ebp - 0x1a0]
call fcn.100671f0
cmp al, 0xa
je 0x1005afd0
cmp al, 0x20
je 0x1005afd0
cmp al, 9
je 0x1005afd0
cmp al, 0xd
jne 0x1005afdd
lea ecx, [ebp - 0x1a0]
call fcn.10067890
jmp 0x1005afb5
push 0
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.10067320
cmp dword [ebp - 0x18], 1
je 0x1005b05e
push ecx
lea ecx, [ebp - 0xe8]
call fcn.1005b8d0
push ecx
lea ecx, [ebp - 0xe8]
call fcn.10066cc0
mov edx, str.Binary_msh_file
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0xd8]
call fcn.1006be70
mov edx, dword [ebp - 0x1a4]
mov ecx, eax
call fcn.1006be50
mov edx, str._is_saved_with_different_endianness_than_this_machine.
mov ecx, eax
call fcn.1006be70
push ecx
mov ecx, eax
call fcn.10068020
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10066bd0
mov byte [ebp - 4], 0x1b
jmp 0x1005b73b
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1a0]
call fcn.1006dcd0
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
cmp edi, 0xf
mov eax, dword [ebp - 0x20]
cmova edx, ecx
cmp eax, 0xe
jne 0x1005b5aa
sub eax, 4
mov esi, str._EndMeshFormat
mov dword [ebp - 0x18], eax
jb 0x1005b0ab
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1005b0b0
mov eax, dword [ebp - 0x18]
add edx, 4
add esi, 4
sub eax, 4
mov dword [ebp - 0x18], eax
jae 0x1005b094
cmp eax, 0xfffffffc
je 0x1005b0e7
mov al, byte [edx]
cmp al, byte [esi]
jne 0x1005b0e0
cmp dword [ebp - 0x18], 0xfffffffd
je 0x1005b0e7
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x1005b0e0
cmp dword [ebp - 0x18], 0xfffffffe
je 0x1005b0e7
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x1005b0e0
cmp dword [ebp - 0x18], 0xffffffff
je 0x1005b0e7
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x1005b0e7
sbb eax, eax
or eax, 1
jmp 0x1005b0e9
xor eax, eax
test eax, eax
jne 0x1005b5aa
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x194], 1
jne 0x1005b4fb
nop dword [eax + eax]
cmp edi, 0xf
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x30]
cmova eax, ecx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1a0]
mov byte [eax], 0
call fcn.1006dcd0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x30]
cmp edi, 0xf
mov eax, dword [ebp - 0x20]
cmova ecx, esi
cmp eax, 6
jne 0x1005b212
mov eax, dword [ecx]
mov edx, str._Nodes
mov dword [ebp - 0x1a4], 2
cmp eax, dword [edx]
jne 0x1005b171
add ecx, 4
mov dword [ebp - 0x1a4], 0xfffffffe
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b19c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005b19c
cmp dword [ebp - 0x1a4], 0xfffffffe
je 0x1005b198
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005b19c
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1005b19c
xor eax, eax
jmp 0x1005b1a1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1005b20f
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1a0]
push eax
call fcn.1005b8f0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1a0]
call fcn.1006dcd0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
cmp edi, 0xf
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x20], 9
jne 0x1005b4a5
mov edx, str._EndNodes
mov esi, 5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b1f7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b1e6
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b49c
cmp esi, 0xfffffffd
je 0x1005b498
jmp 0x1005b398
mov eax, dword [ebp - 0x20]
cmp edi, 0xf
lea ecx, [ebp - 0x30]
cmova ecx, esi
cmp eax, 9
jne 0x1005b2d4
mov edx, str._Elements
lea esi, [eax - 4]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b241
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b230
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b268
cmp esi, 0xfffffffd
je 0x1005b264
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005b268
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005b268
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1005b268
xor eax, eax
jmp 0x1005b26d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1005b2ce
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1a0]
push eax
call fcn.1005baa0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1a0]
call fcn.1006dcd0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
cmp edi, 0xf
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x20], 0xc
jne 0x1005b4a5
mov edx, str._EndElements
mov esi, 8
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b38e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b2b2
xor eax, eax
jmp 0x1005b4a1
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp edi, 0xf
lea ecx, [ebp - 0x30]
cmova ecx, esi
cmp eax, 9
jne 0x1005b3c9
mov edx, str._NodeData
lea esi, [eax - 4]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b301
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b2f0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b328
cmp esi, 0xfffffffd
je 0x1005b324
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005b328
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005b328
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1005b328
xor eax, eax
jmp 0x1005b32d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1005b3c3
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1a0]
push eax
call fcn.1005bf20
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1a0]
call fcn.1006dcd0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
cmp edi, 0xf
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x20], 0xc
jne 0x1005b4a5
mov edx, str._EndNodeData
mov esi, 8
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b38e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b376
xor eax, eax
jmp 0x1005b4a1
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b49c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005b49c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005b49c
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1005b49c
xor eax, eax
jmp 0x1005b4a1
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp edi, 0xf
lea ecx, [ebp - 0x30]
cmova ecx, esi
cmp eax, 0xc
jne 0x1005b4ba
mov edx, str._ElementData
lea esi, [eax - 4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b3f8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b3e3
xor eax, eax
jmp 0x1005b41f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b41a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005b41a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005b41a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1005b41a
xor eax, eax
jmp 0x1005b41f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1005b4ba
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1a0]
push eax
call fcn.1005c610
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1a0]
call fcn.1006dcd0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
cmp edi, 0xf
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x20], 0xf
jne 0x1005b4a5
mov edx, str._EndElementData
mov esi, 0xb
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005b475
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1005b464
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005b49c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005b49c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005b49c
cmp esi, 0xffffffff
je 0x1005b498
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1005b49c
xor eax, eax
jmp 0x1005b4a1
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005b4e0
push str.Unexpected_tag
lea ecx, [ebp - 0x1ac]
call fcn.1004c170
jmp 0x1005b747
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x194], 1
jne 0x1005b4fb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.1005cc20
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x194], 1
jne 0x1005b4fb
mov ecx, dword [ebp - 0x30]
jmp 0x1005b110
lea ecx, [ebp - 0x190]
call fcn.10069e10
test eax, eax
jne 0x1005b533
mov eax, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x1a0]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.1004cc70
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1005b567
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b55d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b758
push ecx
push edx
call fcn.101e9982
add esp, 8
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.1005b770
mov eax, dword [ebp - 0x1b0]
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.101e9427
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push ecx
lea ecx, [ebp - 0xe8]
call fcn.1005b8d0
push ecx
lea ecx, [ebp - 0xe8]
call fcn.10066cc0
mov edx, str.Unexpected_contents_in_the_file_header.
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0xd8]
call fcn.1006be70
push ecx
mov ecx, eax
call fcn.10068020
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10066bd0
mov byte [ebp - 4], 0x1d
jmp 0x1005b73b
push ecx
lea ecx, [ebp - 0xe8]
call fcn.1005b8d0
push ecx
lea ecx, [ebp - 0xe8]
call fcn.10066cc0
mov edx, str.Error:_Unsupported_file_version:
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xd8]
call fcn.1006be70
movsd xmm1, qword [ebp - 0x38]
mov ecx, eax
call fcn.10067b90
push ecx
mov ecx, eax
call fcn.10068020
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10066bd0
mov byte [ebp - 4], 0x15
jmp 0x1005b73b
push str.Unexpected_.msh_format
lea ecx, [ebp - 0x1ac]
call fcn.1004c170
jmp 0x1005b747
push ecx
lea ecx, [ebp - 0xe8]
call fcn.1005b8d0
push ecx
lea ecx, [ebp - 0xe8]
call fcn.10066cc0
mov edx, str.failed_to_open_file__
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xd8]
call fcn.1006be70
mov edx, esi
mov ecx, eax
call fcn.1006be50
mov edx, 0x102d1fb4
mov ecx, eax
call fcn.1006be70
lea eax, [ebp - 0x1a8]
push 1
push eax
call fcn.1004c2a0
add esp, 8
lea ecx, [ebp - 0xe8]
mov esi, eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.10066bd0
push esi
push eax
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x12
call fcn.1004cb50
push 0x102de01c
lea eax, [ebp - 0x1e0]
push eax
call fcn.101ebd9d
push ecx
lea ecx, [ebp - 0xe8]
call fcn.1005b8d0
push ecx
lea ecx, [ebp - 0xe8]
call fcn.10066cc0
mov edx, str.Error:_data_size_must_be_8_bytes.
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd8]
call fcn.1006be70
push ecx
mov ecx, eax
call fcn.10068020
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10066bd0
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1004c110
push 0x102ddf54
lea eax, [ebp - 0x1ac]
push eax
call fcn.101ebd9d
call fcn.101fdc69
int3