Function at 0x10001ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007e784
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax]
push 0x10089080
mov ebx, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
xor esi, esi
add esp, 8
cmp edi, esi
je 0x10001b7d
push edi
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10001b7d
cmp byte [esp + 0x13], 0x5e
jne 0x10001b7d
lea edx, [esp + 0x18]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [ebx + 8]
push edx
push eax
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call sym.AdjustBase.dll_int___cdecl_ReadNasew95_struct__iobuf___struct_WHOLE16___int___struct_POINT3D16____int___struct_OBSERVE16___
add esp, 0x18
test eax, eax
jne 0x10001baa
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x10001b6c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10001b7d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
push esi
push 0x10089064
call sub.MFC42.DLL_AfxMessageBox
xor ax, ax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebx + 0xc8]
add esp, 4
call sym.AdjustBase.dll_public:_int___thiscall_CDataInterface::Clear_void_
mov cx, word [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0xc8]
call sym.AdjustBase.dll_public:_void___thiscall_CDataInterface::SetNetType_short_int_
mov dx, word [ebx + 0x16]
mov ecx, dword [ebx + 0xc8]
push edx
call sym.AdjustBase.dll_public:_void___thiscall_CDataInterface::SetHandleType_short_int_
fld dword [ebx + 0xbc]
call sub.MSVCRT.dll__ftol
cmp ax, si
je 0x10001bf5
cmp ax, 0xa
jle 0x10001bfa
mov eax, 2
mov ecx, dword [ebx + 0xc8]
push eax
call sym.AdjustBase.dll_public:_void___thiscall_CDataInterface::SetCloseMultiple_short_int_
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
cmp eax, 1
jle 0x10001cfc
mov edi, 0x28
jmp 0x10001c24
xor esi, esi
push 0x58
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov dword [esp + 0x48], esi
je 0x10001c43
mov ecx, eax
call sym.AdjustBase.dll_public:_void___thiscall_CPoint3D::constructor_void_
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [edi + eax]
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
lea eax, [edi + edx + 8]
mov ecx, dword [edi + edx + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x14]
lea ecx, [edi + eax + 0x10]
mov edx, dword [edi + eax + 0x10]
mov dword [esi + 0x18], edx
mov eax, dword [ecx + 4]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
lea edx, [edi + ecx + 0x18]
mov eax, dword [edi + ecx + 0x18]
mov dword [esi + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov eax, dword [edi + edx + 0x20]
push ecx
shr eax, 8
and eax, 7
mov ecx, esi
mov dword [esp + 0x24], eax
call sym.AdjustBase.dll_public:_void___thiscall_CPoint3D::SetPlaneAttribute_short_int_const__
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [edi + edx + 0x20]
shr eax, 0xb
and eax, 7
mov dword [esp + 0x2c], eax
call sym.AdjustBase.dll_public:_void___thiscall_CPoint3D::SetHeightAttribute_short_int_const__
mov ecx, dword [ebx + 0xc8]
push 1
push esi
call sym.AdjustBase.dll_public:_int___thiscall_CDataInterface::AddPoint_class_CPoint3D___int_
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc ecx
add edi, 0x28
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x10001c22
mov edi, 1
cmp eax, edi
mov dword [esp + 0x1c], edi
jle 0x10001e40
mov dword [esp + 0x20], 0x28
mov ecx, dword [ebx + 0xc8]
lea eax, [esp + 0x28]
lea edx, [edi - 1]
push eax
mov dword [esp + 0x2c], edx
call sym.AdjustBase.dll_public:_class_CPoint3D____thiscall_CDataInterface::GetPoint_int_const__
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x28], eax
mov si, word [edx + ecx + 0x24]
test esi, esi
jle 0x10001e24
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x48], 1
je 0x10001d6c
mov ecx, eax
call sym.AdjustBase.dll_public:_void___thiscall_CObserve::constructor_void_
mov edi, eax
jmp 0x10001d6e
xor edi, edi
mov ecx, dword [esp + 0x18]
xor eax, eax
shl esi, 5
lea edx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
mov ax, word [esi + ecx]
mov ecx, dword [ebx + 0xc8]
dec eax
push edx
mov dword [esp + 0x30], eax
call sym.AdjustBase.dll_public:_class_CPoint3D____thiscall_CDataInterface::GetPoint_int_const__
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + eax + 8]
mov edx, dword [esi + eax + 8]
mov dword [edi + 0x18], edx
mov eax, dword [ecx + 4]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 0x18]
fld dword [esi + ecx + 0x10]
lea ecx, [esp + 0x30]
fstp qword [edi + 8]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, edi
mov al, byte [esi + edx + 0x14]
and eax, 7
mov dword [esp + 0x34], eax
call sym.AdjustBase.dll_public:_void___thiscall_CObserve::SetAttribute_short_int_const__
mov edx, dword [esp + 0x18]
mov eax, dword [esi + edx + 0x14]
shr eax, 3
and eax, 0xff
push eax
call sym.AdjustBase.dll_public:_static_short_int___cdecl_CObserve::ConvertTypeFromObs95_short_int_
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
push ecx
mov ecx, edi
call sym.AdjustBase.dll_public:_void___thiscall_CObserve::SetType_short_int_const__
mov ecx, dword [esp + 0x28]
push 1
push edi
call sym.AdjustBase.dll_public:_int___thiscall_CPoint3D::AddObserve_class_CObserve___int_
mov eax, dword [esp + 0x18]
xor edx, edx
mov dx, word [esi + eax + 0x18]
mov esi, edx
test esi, esi
jg 0x10001d47
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc edi
add ecx, 0x28
cmp edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
jl 0x10001d15
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x48]
add esp, 8
mov ax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4