Function at 0x401cea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov dword [ebp - 0x204], sym.___gxx_personality_sj0
mov dword [ebp - 0x200], 0x45e8fa
lea eax, [ebp - 0x1fc]
lea esi, [ebp - 0x18]
mov dword [eax], esi
mov edx, 0x402484
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov dword [esp + 4], 0x4600b7
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [ebp - 0x218], 0xffffffff
call sym._fopen
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x50
lea eax, [ebp - 0x1c0]
mov dword [esp], eax
call sym._fread
cmp eax, 1
je 0x401d8d
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, 0
jmp 0x40247c
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x100]
mov dword [esp], eax
mov dword [ebp - 0x218], 0xffffffff
call sym._fread
cmp eax, 1
je 0x401dd6
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, 0
jmp 0x40247c
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xfc]
mov dword [esp], edx
mov dword [ebp - 0x218], 1
mov ecx, eax
call method.void_std::vector_SimpleVolume__std::allocator_SimpleVolume___.emplace_back_SimpleVolume__SimpleVolume___clone_.local.137_
sub esp, 4
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x401e26
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, eax
mov eax, edx
sub ecx, eax
mov eax, ecx
sar eax, 2
imul eax, eax, 0xaaaaaaab
lea ecx, [eax - 1]
mov eax, ecx
add eax, eax
add eax, ecx
shl eax, 2
add eax, edx
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x401e66
mov dword [ebp - 0x1c], 0
jmp 0x402455
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x218], 0xffffffff
call sym._fclose
mov eax, 0
jmp 0x40247c
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc
lea eax, [ebp - 0x1c0]
mov dword [esp], eax
mov dword [ebp - 0x218], 0xffffffff
call sym._fread
cmp eax, 1
je 0x401ec9
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
jmp 0x40244e
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x24
lea eax, [ebp - 0x1e4]
mov dword [esp], eax
mov dword [ebp - 0x218], 0xffffffff
call sym._fread
cmp eax, 1
je 0x401f0d
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
jmp 0x40244e
fld dword [ebp - 0x1dc]
fld dword [ebp - 0x1e0]
fld dword [ebp - 0x1e4]
fstp qword [ebp - 0xf0]
fstp qword [ebp - 0xe8]
fstp qword [ebp - 0xe0]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x15c], eax
fld qword [ebp - 0x170]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x168]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x160]
fstp qword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x10]
fmul qword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x28]
fmul qword [ebp - 0x38]
faddp st(1)
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x40]
fmul qword [ebp - 0x40]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fnstcw word [ebp - 0x21e]
movzx eax, word [ebp - 0x21e]
mov ah, 0xc
mov word [ebp - 0x220], ax
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov ecx, eax
mov eax, dword [ebp - 0x24]
fld qword [eax + 8]
fmul qword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x20]
fmul qword [ebp - 0x38]
faddp st(1)
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x38]
fmul qword [ebp - 0x40]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov ebx, eax
mov eax, dword [ebp - 0x24]
fld qword [eax]
fmul qword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x18]
fmul qword [ebp - 0x38]
faddp st(1)
mov eax, dword [ebp - 0x24]
fld qword [eax + 0x30]
fmul qword [ebp - 0x40]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ecx
fld dword [ebp - 0x1d0]
fld dword [ebp - 0x1d4]
fld dword [ebp - 0x1d8]
fstp qword [ebp - 0xd8]
fstp qword [ebp - 0xd0]
fstp qword [ebp - 0xc8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x144], eax
fld qword [ebp - 0x158]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x150]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x148]
fstp qword [ebp - 0x60]
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x10]
fmul qword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x28]
fmul qword [ebp - 0x58]
faddp st(1)
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x40]
fmul qword [ebp - 0x60]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov ecx, eax
mov eax, dword [ebp - 0x44]
fld qword [eax + 8]
fmul qword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x20]
fmul qword [ebp - 0x58]
faddp st(1)
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x38]
fmul qword [ebp - 0x60]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov ebx, eax
mov eax, dword [ebp - 0x44]
fld qword [eax]
fmul qword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x18]
fmul qword [ebp - 0x58]
faddp st(1)
mov eax, dword [ebp - 0x44]
fld qword [eax + 0x30]
fmul qword [ebp - 0x60]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ecx
fld dword [ebp - 0x1c4]
fld dword [ebp - 0x1c8]
fld dword [ebp - 0x1cc]
fstp qword [ebp - 0xc0]
fstp qword [ebp - 0xb8]
fstp qword [ebp - 0xb0]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x12c], eax
fld qword [ebp - 0x140]
fstp qword [ebp - 0x70]
fld qword [ebp - 0x138]
fstp qword [ebp - 0x78]
fld qword [ebp - 0x130]
fstp qword [ebp - 0x80]
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x10]
fmul qword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x28]
fmul qword [ebp - 0x78]
faddp st(1)
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x40]
fmul qword [ebp - 0x80]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov ecx, eax
mov eax, dword [ebp - 0x64]
fld qword [eax + 8]
fmul qword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x20]
fmul qword [ebp - 0x78]
faddp st(1)
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x38]
fmul qword [ebp - 0x80]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov ebx, eax
mov eax, dword [ebp - 0x64]
fld qword [eax]
fmul qword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x18]
fmul qword [ebp - 0x78]
faddp st(1)
mov eax, dword [ebp - 0x64]
fld qword [eax + 0x30]
fmul qword [ebp - 0x80]
faddp st(1)
fld qword [0x460148]
fmulp st(1)
fldcw word [ebp - 0x220]
fistp qword [ebp - 0x228]
fldcw word [ebp - 0x21e]
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0xa8]
mov dword [esp], edx
mov dword [ebp - 0x218], 0xffffffff
mov ecx, eax
call method.void_std::vector_SimpleFace__std::allocator_SimpleFace___.emplace_back_SimpleFace__SimpleFace___clone_.local.154_
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x1c0]
mov dword [esp], eax
call sym._fread
cmp eax, 1
je 0x402448
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
jmp 0x40244e
add dword [ebp - 0x1c], 1
jmp 0x402455
mov eax, 0
jmp 0x40247c
mov eax, dword [ebp - 0x100]
cmp dword [ebp - 0x1c], eax
jb 0x401e85
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x218], 0xffffffff
call sym._fclose
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
jmp 0x4024bd
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x22c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret