Function at 0x417fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43de8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x36c
push ebx
push esi
push edi
lea ecx, [esp + 0x98]
call dword [sym.imp.SpVzvFile.dll_public:_void___thiscall_CSpVzvFile::constructor_void_]
mov eax, dword [ebp + 0xc]
push 0x44ccec
push eax
mov dword [esp + 0x388], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x4183e1
mov ecx, dword [ebp + 8]
push 2
push ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.SpVzvFile.dll_public_virtual:_int___thiscall_CSpVzvFile::Open_char_const___unsigned_int_]
test eax, eax
je 0x4183e1
mov eax, dword [esp + 0xb8]
xor edx, edx
test eax, eax
mov dword [esp + 0x14], edx
jle 0x418066
mov ecx, dword [esp + 0xb4]
add ecx, 4
cmp dword [ecx], 0x1faf
je 0x418062
inc edx
add ecx, 0x20
cmp edx, eax
jl 0x418052
mov dword [esp + 0x14], edx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
cmp edx, eax
jne 0x4180d2
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x78]
push 0x1faf
lea edx, [esp + 0x8a]
push str._.7d
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x88], 0x1faf
call ebx
sub esp, 0x14
mov ecx, 8
lea esi, [esp + 0x98]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd0]
call dword [sym.imp.SpVzvFile.dll_public:_int___thiscall_CSpVzvFile::CArray_LAYDAT::Append_struct_tagLAYDAT_]
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x150], 1
xor edx, edx
test eax, eax
mov dword [esp + 0x18], edx
jle 0x4180fa
mov ecx, dword [esp + 0xb4]
add ecx, 4
cmp dword [ecx], 0x1fb0
je 0x4180f6
inc edx
add ecx, 0x20
cmp edx, eax
jl 0x4180e6
mov dword [esp + 0x18], edx
cmp edx, eax
jne 0x418159
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x78]
push 0x1fb0
lea edx, [esp + 0x8a]
push str._.7d
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x88], 0x1fb0
call ebx
sub esp, 0x14
mov ecx, 8
lea esi, [esp + 0x98]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd0]
call dword [sym.imp.SpVzvFile.dll_public:_int___thiscall_CSpVzvFile::CArray_LAYDAT::Append_struct_tagLAYDAT_]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x150], 1
push 0
push 0
lea ecx, [esp + 0x6c]
call dword [sym.imp.SpVzvFile.dll_public:_void___thiscall_CSpEntity::CArray_ENTCRD::constructor_struct_tagENTCRD___int_]
mov eax, dword [sym.imp.SpVzvFile.dll_const_CSpEntity::vftable]
mov ecx, 8
mov dword [esp + 0x38], eax
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
push ebx
push ebx
lea ecx, [esp + 0x80]
mov byte [esp + 0x388], 1
mov dword [esp + 0x68], ebx
call dword [sym.imp.SpVzvFile.dll_public:_void___thiscall_CSpEntity::CArray_ENTCRD::constructor_struct_tagENTCRD___int_]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpEntity::CArray_ENTCRD::destructor_void_]
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x380], 2
mov edi, dword [sym.imp.MSVCRT.dll_fscanf]
lea ecx, [esp + 0xc]
push ecx
push 0x44c0c4
push esi
mov dword [esp + 0x80], ebx
call edi
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
je 0x41839e
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push str._lf_lf_f_d
push esi
call edi
add esp, 0x18
cmp eax, 4
jne 0x418410
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x41823d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebx
cmp eax, ebx
je 0x418252
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
push ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebx
call dword [sym.imp.SpVzvFile.dll_public:_void___thiscall_CSpEntity::CArray_ENTCRD::Reset_struct_tagENTCRD_const___int_]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp eax, ebx
je 0x418272
mov edx, dword [esp + 0x18]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov word [esp + 0x44], dx
cmp eax, ebx
mov byte [esp + 0x42], 0xff
jle 0x418297
mov dword [esp + 0x6c], ebx
jmp 0x4182a3
push ebx
push ebx
lea ecx, [esp + 0x6c]
call dword [sym.imp.SpVzvFile.dll_public:_void___thiscall_CSpEntity::CArray_ENTCRD::Reset_struct_tagENTCRD_const___int_]
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x4182b4
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebx
cmp eax, ebx
je 0x4182c9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebx
sub esp, 8
mov dword [esp + 0x68], ebx
fstp qword [esp]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
call dword [sym.imp.SpVzvFile.dll_public:_int___thiscall_CSpEntity::AppendPt_double__double__double__int_]
mov eax, dword [esp + 0xc]
mov esi, 1
cmp eax, esi
jle 0x418398
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
push str._lf_lf_f_d
push edi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x18
cmp eax, 4
jne 0x4183a9
test ebx, ebx
jne 0x41836e
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0x28
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea ecx, [esp + 0x54]
call dword [sym.imp.SpVzvFile.dll_public:_int___thiscall_CSpEntity::AppendPt_double__double__double__int_]
mov al, byte [esp + 0x41]
test al, al
setne bl
mov eax, dword [esp + 0xc]
dec eax
cmp esi, eax
jne 0x41838b
lea ecx, [esp + 0x38]
push 0
push ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.SpVzvFile.dll_public_virtual:_unsigned_int___thiscall_CSpVzvFile::AppendEnt_class_CSpEntity___int_]
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x41830b
mov esi, dword [esp + 0x10]
xor ebx, ebx
test byte [esi + 0xc], 0x10
jne 0x418410
jmp 0x4181ce
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [sym.imp.SpVzvFile.dll_const_CSpEntity::vftable]
add esp, 4
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x380], 3
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpEntity::Reset_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0x380], 0
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpEntity::CArray_ENTCRD::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0x380], 0xffffffff
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpVzvFile::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [esp + 0x9c]
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpVzvFile::Close_int_]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [sym.imp.SpVzvFile.dll_const_CSpEntity::vftable]
add esp, 4
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x380], 4
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpEntity::Reset_void_]
mov eax, dword [esp + 0x68]
mov ecx, dword [sym.imp.SpVzvFile.dll_const_CSpEntity::CArray_ENTCRD::vftable]
cmp eax, ebx
mov byte [esp + 0x380], 0
mov dword [esp + 0x64], ecx
je 0x418467
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x380], 0xffffffff
call dword [sym.imp.SpVzvFile.dll_public_virtual:_void___thiscall_CSpVzvFile::destructor_void_]
mov ecx, dword [esp + 0x378]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret