Function at 0x1002a9e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc740
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x80], edi
call fcn.1002b220
push dword [0x1010add8]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], edi
push 1
push 0xc
push eax
call fcn.100bb04f
push dword [0x1010add8]
lea eax, [ebp - 0x40]
push 1
push 0xc
push eax
call fcn.100bb04f
push dword [0x1010add8]
lea eax, [ebp - 0x60]
push 1
push 0x10
push eax
call fcn.100bb04f
add esp, 0x30
lea ecx, [ebp - 0x88]
call fcn.10030250
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
xor ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x98], ebx
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
mov esi, dword [ebp - 0x7c]
sub ecx, eax
je 0x1002af73
mov dword [ebp - 0x7c], esi
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
nop
push dword [0x1010add8]
lea eax, [ebp - 0xdc]
push 1
push 8
push eax
call fcn.100bb04f
add esp, 0x10
cmp eax, 1
jb 0x1002ae4c
push dword [0x1010add8]
call fcn.100bc2b6
add eax, dword [ebp - 0xd8]
add esp, 4
mov ecx, dword [0x1010adc4]
mov dword [ebp - 0x8c], eax
cmp ecx, dword [0x1010adc8]
je 0x1002ab05
mov dword [ecx], eax
add dword [0x1010adc4], 4
jmp 0x1002ab17
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, 0x1010adc0
call fcn.1000b4b0
mov eax, dword [ebp - 0xdc]
bswap eax
cmp eax, 0x4b455953
jg 0x1002aea6
je 0x1002ac9e
cmp eax, 0x414e494d
je 0x1002ac48
cmp eax, 0x424f4e45
jne 0x1002ae4c
push 0x240
call fcn.100acdf8
add esp, 4
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1002ab6f
mov ecx, eax
call fcn.10040780
mov edi, eax
mov dword [ebp - 0x80], eax
jmp 0x1002ab74
xor edi, edi
mov dword [ebp - 0x80], edi
mov eax, dword [0x1010adb8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x8c], edi
cmp eax, dword [0x1010adbc]
je 0x1002ab96
mov dword [eax], edi
add dword [0x1010adb8], 4
jmp 0x1002aba8
lea ecx, [ebp - 0x8c]
push ecx
push eax
mov ecx, 0x1010adb4
call fcn.1000b4b0
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
je 0x1002ae4c
nop word [eax + eax]
push dword [0x1010add8]
lea eax, [ebp - 0xac]
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0xb0]
push 1
push 4
push eax
call fcn.100bb04f
mov eax, dword [0x1010adb8]
add esp, 0x20
sub eax, dword [0x1010adb4]
movss xmm0, dword [ebp - 0xb0]
sar eax, 2
push eax
push ecx
movss dword [esp], xmm0
push esi
call fcn.100419d0
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
jne 0x1002abd0
jmp 0x1002ae4c
push dword [0x1010add8]
lea eax, [ebp - 0xfc]
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
lea eax, [ebp - 0xb4]
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
mov eax, dword [ebp - 0xb4]
push 1
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x100]
push 4
push eax
call fcn.100bb04f
add esp, 0x30
jmp 0x1002ae4c
push dword [0x1010add8]
lea eax, [ebp - 0xb8]
push 1
push 4
push eax
call fcn.100bb04f
push dword [0x1010add8]
mov ebx, dword [ebp - 0xb8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 0x14
sub ecx, eax
je 0x1002ae46
mov eax, ebx
and eax, 1
mov dword [ebp - 0xc0], eax
mov eax, ebx
and eax, 2
and ebx, 4
mov edi, eax
nop
push dword [0x1010add8]
lea eax, [ebp - 0xbc]
push 1
push 4
push eax
call fcn.100bb04f
mov esi, dword [ebp - 0xbc]
add esp, 0x10
cmp dword [ebp - 0xc0], 0
je 0x1002ad68
push dword [0x1010add8]
lea eax, [ebp - 0x1c]
push 1
push 0xc
push eax
call fcn.100bb04f
movss xmm0, dword [ebp - 0x1c]
lea eax, [ebp - 0xe8]
add esp, 0x10
movss dword [ebp - 0xe8], xmm0
movss xmm0, dword [ebp - 0x18]
lea ecx, [ebp - 0x88]
movss dword [ebp - 0xe4], xmm0
movss xmm0, dword [ebp - 0x14]
push eax
push esi
movss dword [ebp - 0xe0], xmm0
call fcn.10030aa0
test edi, edi
je 0x1002adbc
push dword [0x1010add8]
lea eax, [ebp - 0x28]
push 1
push 0xc
push eax
call fcn.100bb04f
movss xmm0, dword [ebp - 0x28]
lea eax, [ebp - 0xa8]
add esp, 0x10
movss dword [ebp - 0xa8], xmm0
movss xmm0, dword [ebp - 0x24]
lea ecx, [ebp - 0x88]
movss dword [ebp - 0xa4], xmm0
movss xmm0, dword [ebp - 0x20]
push eax
push esi
movss dword [ebp - 0xa0], xmm0
call fcn.10030b10
test ebx, ebx
je 0x1002ae24
push dword [0x1010add8]
lea eax, [ebp - 0x50]
push 1
push 0x10
push eax
call fcn.100bb04f
movss xmm0, dword [ebp - 0x44]
lea ecx, [ebp - 0x88]
movss xmm2, dword [ebp - 0x4c]
add esp, 0x10
movss xmm1, dword [ebp - 0x48]
movss dword [ebp - 0xec], xmm0
mov eax, dword [ebp - 0xec]
movss xmm0, dword [ebp - 0x50]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd4]
push eax
unpcklps xmm2, xmm1
push esi
movss dword [ebp - 0xd4], xmm0
movq qword [ebp - 0xd0], xmm2
call fcn.10030ae0
push dword [0x1010add8]
mov esi, dword [0x1010adc4]
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
jne 0x1002acf0
mov edi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x98]
mov ecx, dword [0x1010adc4]
push 0
push dword [ecx - 4]
push dword [0x1010add8]
call fcn.100bb459
mov esi, dword [0x1010adc4]
push dword [0x1010add8]
sub esi, 4
mov dword [0x1010adc4], esi
call fcn.100bc2b6
mov ecx, dword [esi - 4]
add esp, 0x10
sub ecx, eax
jne 0x1002aab0
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
test edi, edi
jne 0x1002afa8
jmp 0x1002af7c
cmp eax, 0x4d455348
je 0x1002af02
cmp eax, 0x4e4f4445
jne 0x1002ae4c
test edi, edi
jne 0x1002aef7
push 0x2a0
call fcn.100acdf8
add esp, 4
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1002aeee
mov ecx, eax
call fcn.1003bad0
mov edi, eax
mov dword [ebp - 0x80], eax
push edi
mov byte [ebp - 4], 1
call fcn.1002a9e0
jmp 0x1002ae4c
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x80], edi
push edi
call fcn.1002a9e0
jmp 0x1002ae4c
call fcn.10041cf0
push 0x2a0
call fcn.100acdf8
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1002af30
mov ecx, eax
call fcn.1003bad0
mov edi, eax
mov dword [ebp - 0x80], eax
jmp 0x1002af35
xor edi, edi
mov dword [ebp - 0x80], edi
push dword [0x1010add8]
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 1
push 1
push 4
mov ebx, edi
push eax
mov dword [ebp - 0x98], ebx
call fcn.100bb04f
mov eax, dword [ebp - 0x9c]
add esp, 0x10
mov dword [ebp - 0x7c], eax
call fcn.1002a7c0
mov dword [ebp - 0x94], eax
jmp 0x1002ae4c
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
push 0x2a0
call fcn.100acdf8
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x1002afa2
mov ecx, eax
call fcn.1003bad0
mov edi, eax
jmp 0x1002afa4
xor edi, edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.1002f400
movss xmm0, dword [ebp - 0x34]
lea eax, [ebp - 0xa8]
movss dword [ebp - 0xa8], xmm0
mov ecx, edi
movss xmm0, dword [ebp - 0x30]
movss dword [ebp - 0xa4], xmm0
movss xmm0, dword [ebp - 0x2c]
push eax
movss dword [ebp - 0xa0], xmm0
call fcn.1002f130
movss xmm0, dword [ebp - 0x40]
lea eax, [ebp - 0xa8]
movss dword [ebp - 0xa8], xmm0
mov ecx, edi
movss xmm0, dword [ebp - 0x3c]
movss dword [ebp - 0xa4], xmm0
movss xmm0, dword [ebp - 0x38]
push eax
movss dword [ebp - 0xa0], xmm0
call fcn.1002f260
movss xmm0, dword [ebp - 0x54]
mov ecx, edi
movss xmm2, dword [ebp - 0x5c]
movss xmm1, dword [ebp - 0x58]
movss dword [ebp - 0xec], xmm0
mov eax, dword [ebp - 0xec]
movss xmm0, dword [ebp - 0x60]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd4]
unpcklps xmm2, xmm1
push eax
movss dword [ebp - 0xd4], xmm0
movq qword [ebp - 0xd0], xmm2
call fcn.1002f180
lea eax, [ebp - 0x88]
push eax
lea ecx, [edi + 0x238]
call fcn.10030440
test ebx, ebx
je 0x1002b16d
push ebx
call fcn.10041dd0
test byte [ebp - 0x94], 1
jne 0x1002b096
mov ecx, ebx
call fcn.1003dba0
cmp esi, 0xffffffff
je 0x1002b0ab
mov eax, dword [0x1010adcc]
mov ecx, ebx
mov edx, dword [ebx]
lea eax, [eax + esi*4]
push eax
call dword [edx + 0x58]
mov edx, dword [0x1010adb8]
mov eax, edx
mov esi, dword [0x1010adb4]
sub eax, esi
test eax, 0xfffffffc
je 0x1002b16d
mov dword [ebp - 0x9c], ebx
cmp edx, dword [0x1010adbc]
je 0x1002b105
cmp esi, edx
jne 0x1002b0e3
mov dword [edx], ebx
add dword [0x1010adb8], 4
jmp 0x1002b117
mov eax, dword [edx - 4]
lea ecx, [edx - 4]
sub ecx, esi
mov dword [edx], eax
add dword [0x1010adb8], 4
sub edx, ecx
push ecx
push esi
push edx
call fcn.100aea50
add esp, 0xc
mov dword [esi], ebx
jmp 0x1002b117
lea eax, [ebp - 0x9c]
mov ecx, 0x1010adb4
push eax
push esi
call fcn.1000b4b0
push 0x40
call fcn.100acdf8
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x1002b144
mov esi, dword [ebp - 0x84]
mov ecx, eax
push esi
push 0x1010adb4
call fcn.10031480
jmp 0x1002b146
xor eax, eax
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10033f00
mov ecx, ebx
call fcn.1003c380
mov eax, dword [0x1010adb4]
cmp eax, dword [0x1010adb8]
je 0x1002b1a8
mov dword [0x1010adb8], eax
jmp 0x1002b1a8
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x1002b1a8
push 0x40
call fcn.100acdf8
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1002b19a
push esi
push edi
mov ecx, eax
call fcn.10031780
jmp 0x1002b19c
xor eax, eax
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.10033f00
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x1002b1ba
push eax
mov ecx, edi
call fcn.1002f510
lea ecx, [ebp - 0x88]
call fcn.10030400
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1002b1f5
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b1eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b215
push ecx
push edx
call fcn.100ace28
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret 4
call fcn.100b251a
int3