Function at 0x588c50
Capabilities:
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 0x5cde4d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x118
mov eax, dword [0x623ec0]
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 edi, ecx
mov esi, dword [ebx + 8]
mov dword [ebp - 0x100], esi
mov dword [ebp - 4], 0
wait
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x588cb0
sub ecx, edx
cmp ecx, 2
jbe 0x588d05
push 0
push esi
call fcn.0047c216
add esp, 8
cmp eax, 0xffffffff
je 0x588d05
mov dword [ebp - 0xf0], 0
push 0x5ec588
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.0046c5d4
add esp, 0xc
mov eax, dword [ebp - 0xf0]
test eax, eax
jne 0x588d0d
push esi
push str.ReadingError_:__s_n
call fcn.00586620
add esp, 8
xor eax, eax
wait
jmp 0x5895a9
push eax
push 1
push 4
lea eax, [edi + 0x10]
push eax
call fcn.0047004e
push dword [ebp - 0xf0]
push 1
push 4
lea eax, [edi + 0xc]
push eax
call fcn.0047004e
lea esi, [edi + 0x14]
push dword [ebp - 0xf0]
push 1
push 4
push esi
call fcn.0047004e
push dword [ebp - 0xf0]
push dword [esi]
push 0x14
lea eax, [edi + 0x18]
push eax
call fcn.0047004e
add esp, 0x40
mov edx, dword [ebp - 0x100]
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x588d62
sub esi, ecx
mov dword [ebp - 0x110], esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x104], 0
xor eax, eax
mov dword [ebp - 0x104], eax
cmp eax, esi
jge 0x588da2
mov cl, byte [edx + eax]
cmp cl, 0x5c
je 0x588da2
mov byte [ebp + eax - 0x7c], cl
inc eax
jmp 0x588d89
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
movq qword [ebp - 0x54], xmm0
add edx, 2
add eax, edx
push eax
push 0x5ec718
lea eax, [ebp - 0x64]
push eax
call fcn.004602a0
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
push 0x40
push 0
lea eax, [ebp - 0xc0]
push eax
call fcn.00468b40
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0xf0]
nop dword [eax + eax]
cmp eax, dword [edi + 0x14]
jae 0x5890b6
cmp byte [ebp - 0x64], 0x61
jne 0x588e94
cmp byte [ebp - 0x63], 0x61
jne 0x588e94
push ecx
push 1
push 0xb
lea eax, [ebp - 0x34]
push eax
call fcn.0047004e
add esp, 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
xor eax, eax
mov dword [ebp - 0x104], eax
cmp eax, esi
jge 0x588e52
mov cl, byte [ebp + eax - 0x64]
cmp cl, 0x2e
je 0x588e52
mov byte [ebp + eax - 0x34], cl
inc eax
jmp 0x588e38
push str.effect
lea eax, [ebp - 0x7c]
push eax
call fcn.0047c2d9
add esp, 8
test eax, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc0]
jne 0x588f63
push str.Effect_s.wys
push eax
call fcn.00462da0
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
call fcn.004dfb40
jmp 0x588f7d
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
push ecx
push 1
push 0xb
lea eax, [ebp - 0x4c]
push eax
call fcn.0047004e
add esp, 0x10
lea esi, [ebp - 0x4c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x588eb7
sub esi, ecx
mov dword [ebp - 0x110], esi
dec esi
mov dword [ebp - 0x104], esi
test esi, esi
jle 0x588ef1
cmp byte [ebp + esi - 0x4c], 0x5c
jne 0x588ec6
lea eax, [ebp - 0x4b]
add eax, esi
push eax
push 0x5ec718
lea eax, [ebp - 0x34]
push eax
call fcn.004602a0
add esp, 0xc
test esi, esi
jne 0x588f08
lea eax, [ebp - 0x4c]
push eax
push 0x5ec718
lea eax, [ebp - 0x34]
push eax
call fcn.004602a0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x5ec718
lea eax, [ebp - 0x4c]
push eax
call fcn.004602a0
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
lea esi, [ebp - 0x4c]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x588f30
sub esi, ecx
mov dword [ebp - 0x110], esi
xor eax, eax
mov dword [ebp - 0x104], eax
cmp eax, esi
jge 0x588e52
mov cl, byte [ebp + eax - 0x4c]
cmp cl, 0x2e
je 0x588e52
mov byte [ebp + eax - 0x34], cl
inc eax
jmp 0x588f41
push str.mesh_s.wys
push eax
call fcn.00462da0
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
call fcn.004df3d0
mov ecx, dword [ebp - 0x108]
mov dword [edi + ecx*4 + 0x298], eax
mov eax, ecx
cmp dword [edi + eax*4 + 0x298], 0xffffffff
jne 0x58909e
lea esi, [ebp - 0x64]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x588fa0
sub esi, ecx
mov dword [ebp - 0x110], esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
xor eax, eax
mov dword [ebp - 0x104], eax
cmp eax, esi
jge 0x588fd7
mov cl, byte [ebp + eax - 0x64]
cmp cl, 0x2e
je 0x588fd7
mov byte [ebp + eax - 0x34], cl
inc eax
jmp 0x588fbd
push str.effect
lea eax, [ebp - 0x7c]
push eax
call fcn.0047c2d9
add esp, 8
test eax, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc0]
jne 0x589012
push str.Effect_s.wys
push eax
call fcn.00462da0
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
call fcn.004dfb40
jmp 0x58902c
push str.mesh_s.wys
push eax
call fcn.00462da0
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
call fcn.004df3d0
mov ecx, dword [ebp - 0x108]
mov dword [edi + ecx*4 + 0x298], eax
mov eax, ecx
cmp dword [edi + eax*4 + 0x298], 0xffffffff
jne 0x58909e
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x100]
push str._s____s__r_n
call fcn.00461520
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x100]
push str._s____s__r_n
call fcn.00586620
add esp, 0xc
mov ecx, dword [ebp - 0xf0]
test ecx, ecx
je 0x5890a4
push ecx
call fcn.0046bf19
add esp, 4
mov dword [ebp - 0xf0], 0
xor eax, eax
wait
jmp 0x5895a9
mov ecx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
jmp 0x588e00
mov dword [ebp - 0xf8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xc4], 0
push ecx
push 1
push 4
lea eax, [ebp - 0xc4]
push eax
call fcn.0047004e
add esp, 0x10
mov edx, dword [ebp - 0xc4]
test edx, edx
je 0x589154
mov eax, dword [0x9c25a4]
mov ecx, dword [eax + 0x10c]
mov eax, dword [ecx]
lea esi, [edi + 0x31c]
push 0
push esi
push 1
push 0x65
push 8
push edx
push ecx
call dword [eax + 0x6c]
mov ecx, dword [esi]
test ecx, ecx
je 0x588d05
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0xf8]
push edx
push 0
push 0
push ecx
call dword [eax + 0x2c]
push dword [ebp - 0xf0]
push 1
push dword [ebp - 0xc4]
push dword [ebp - 0xf8]
call fcn.0047004e
add esp, 0x10
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov dword [ebp - 0xf4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xec], xmm0
movq qword [ebp - 0xdc], xmm0
push dword [ebp - 0xf0]
push 1
push 4
lea eax, [ebp - 0xdc]
push eax
call fcn.0047004e
add esp, 0x10
mov eax, dword [edi + 0xc]
shr eax, 2
mov dword [ebp - 0xfc], eax
mov esi, dword [ebp - 0xdc]
mov eax, esi
xor edx, edx
div dword [edi + 0xc]
mov dword [ebp - 0x114], eax
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x318]
push 0
cmp ecx, 0x142
jne 0x5891d8
mov ecx, dword [0x9c25a4]
mov edx, dword [ecx + 0x10c]
mov ecx, dword [edx]
push eax
push 1
push dword [edi + 0x10]
push 8
push esi
push edx
call dword [ecx + 0x68]
jmp 0x589210
add ecx, 0x100
mov dword [edi + 0x10], ecx
mov eax, dword [0x9c25a4]
mov esi, dword [eax + 0x10c]
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
lea eax, [edi + 0x318]
push eax
push 1
push ecx
push 8
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xdc]
lea eax, [ecx + eax*8]
push eax
push esi
call edx
mov ecx, dword [edi + 0x318]
test ecx, ecx
je 0x588d05
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0xf4]
push edx
push 0
push 0
push ecx
call dword [eax + 0x2c]
cmp dword [edi + 0x10], 0x142
jne 0x58925e
push dword [ebp - 0xf0]
push 1
push dword [ebp - 0xdc]
push dword [ebp - 0xf4]
call fcn.0047004e
add esp, 0x10
mov edx, dword [ebp - 0xf4]
jmp 0x5892ad
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0x10c], edx
xor esi, esi
mov dword [ebp - 0x118], esi
mov ecx, dword [edi + 0xc]
lea eax, [ecx + 8]
cmp esi, dword [ebp - 0x114]
jge 0x5892aa
push dword [ebp - 0xf0]
push 1
push ecx
imul eax, esi
add eax, dword [ebp - 0x10c]
push eax
call fcn.0047004e
add esp, 0x10
inc esi
mov dword [ebp - 0x118], esi
mov edx, dword [ebp - 0xf4]
jmp 0x589272
mov dword [edi + 0xc], eax
mov eax, 2
xor ecx, ecx
cmp dword [edi + 0x10], 0x142
cmove eax, ecx
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0xfc]
add eax, ecx
movss xmm5, dword [edx + eax*4]
movss dword [ebp - 0x100], xmm5
movss dword [edi + 0x348], xmm5
movss dword [edi + 0x344], xmm5
movss xmm6, dword [edx + eax*4 + 4]
movss dword [edi + 0x350], xmm6
movss dword [edi + 0x34c], xmm6
movss xmm4, dword [edx + eax*4 + 8]
movss dword [edi + 0x358], xmm4
movss dword [edi + 0x354], xmm4
xor esi, esi
movaps xmm3, xmm5
movaps xmm2, xmm6
movaps xmm1, xmm4
mov dword [ebp - 0x11c], esi
mov eax, dword [ebp - 0x114]
dec eax
cmp esi, eax
jge 0x58944f
cmp dword [edi + 0x10], 0x212
jne 0x589371
add ecx, dword [ebp - 0x10c]
imul ecx, esi
movss xmm0, dword [edx + ecx*4 + 0x18]
movss dword [edx + ecx*4 + 0x20], xmm0
mov eax, dword [ebp - 0xf4]
movss xmm0, dword [eax + ecx*4 + 0x1c]
movss dword [eax + ecx*4 + 0x24], xmm0
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x10c]
add eax, ecx
imul eax, esi
movss xmm0, dword [edx + eax*4]
movss xmm5, dword [edi + 0x344]
movss dword [ebp - 0x100], xmm5
comiss xmm0, xmm5
jbe 0x5893a9
movss dword [edi + 0x344], xmm0
movaps xmm5, xmm0
movss dword [ebp - 0x100], xmm5
movss xmm3, dword [edi + 0x348]
movss xmm0, dword [edx + eax*4]
comiss xmm3, xmm0
jbe 0x5893c6
movss dword [edi + 0x348], xmm0
movaps xmm3, xmm0
movss xmm0, dword [edx + eax*4 + 4]
movss xmm6, dword [edi + 0x34c]
comiss xmm0, xmm6
jbe 0x5893e4
movss dword [edi + 0x34c], xmm0
movaps xmm6, xmm0
movss xmm2, dword [edi + 0x350]
movss xmm0, dword [edx + eax*4 + 4]
comiss xmm2, xmm0
jbe 0x589402
movss dword [edi + 0x350], xmm0
movaps xmm2, xmm0
mov eax, dword [ebp - 0x10c]
add eax, ecx
imul eax, esi
movss xmm0, dword [edx + eax*4 + 8]
movss xmm4, dword [edi + 0x354]
comiss xmm0, xmm4
jbe 0x58942b
movss dword [edi + 0x354], xmm0
movaps xmm4, xmm0
movss xmm1, dword [edi + 0x358]
movss xmm0, dword [edx + eax*4 + 8]
comiss xmm1, xmm0
jbe 0x589449
movss dword [edi + 0x358], xmm0
movaps xmm1, xmm0
inc esi
jmp 0x589320
movss xmm7, dword [0x6057c0]
andps xmm5, xmm7
movss dword [ebp - 0xfc], xmm5
movss xmm0, dword [edi + 0x340]
comiss xmm5, xmm0
jbe 0x58947a
movaps xmm0, xmm5
movss dword [edi + 0x340], xmm0
movaps xmm5, xmm3
andps xmm5, xmm7
movss dword [ebp - 0xfc], xmm5
comiss xmm5, xmm0
jbe 0x589498
movaps xmm0, xmm5
movss dword [edi + 0x340], xmm0
movaps xmm5, xmm6
andps xmm5, xmm7
movss dword [ebp - 0xfc], xmm5
comiss xmm5, xmm0
jbe 0x5894b6
movaps xmm0, xmm5
movss dword [edi + 0x340], xmm0
movaps xmm5, xmm2
andps xmm5, xmm7
movss dword [ebp - 0xfc], xmm5
comiss xmm5, xmm0
jbe 0x5894d4
movaps xmm0, xmm5
movss dword [edi + 0x340], xmm0
movaps xmm5, xmm4
andps xmm5, xmm7
movss dword [ebp - 0xfc], xmm5
comiss xmm5, xmm0
jbe 0x5894f2
movaps xmm0, xmm5
movss dword [edi + 0x340], xmm0
movaps xmm5, xmm1
andps xmm5, xmm7
movss dword [ebp - 0xfc], xmm5
movaps xmm7, xmm5
comiss xmm7, xmm0
movss xmm5, dword [ebp - 0x100]
jbe 0x589518
movss dword [edi + 0x340], xmm7
addss xmm3, xmm5
movss xmm0, dword [0x604d2c]
mulss xmm3, xmm0
addss xmm2, xmm6
mulss xmm2, xmm0
addss xmm1, xmm4
mulss xmm1, xmm0
movss dword [ebp - 0x128], xmm3
movss dword [ebp - 0x124], xmm2
movss dword [ebp - 0x120], xmm1
movss dword [edi + 0x334], xmm3
movss dword [edi + 0x338], xmm2
movss dword [edi + 0x33c], xmm1
mov eax, dword [edi + 0x318]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
push dword [ebp - 0xf0]
call fcn.0046bf19
add esp, 4
mov eax, 1
wait
jmp 0x5895a9
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.0046676f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4