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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dd1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [edi + 0x414]
mov eax, dword [edi + 0x41c]
add eax, esi
mov dword [esp + 0x10c], esi
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x40d161
mov ebx, eax
inc eax
mov dword [esp + 0x74], eax
lea ecx, [esp + 0xec]
call fcn.0041e680
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xc38], 0
call fcn.0041e6f0
test eax, eax
jne 0x40d207
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x2c]
push edx
push 0xef2c
push eax
mov byte [esp + 0xc3c], 1
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0
push 0x2030
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc30], 0
call fcn.0042fd2e
lea ecx, [esp + 0xec]
mov dword [esp + 0xc30], 0xffffffff
call fcn.0041e6c0
xor eax, eax
mov ecx, dword [esp + 0xc28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x860]
mov eax, dword [edi + 0x864]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xf8]
xor ecx, ecx
mov dword [esp + 0x68], eax
test edx, edx
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x34], 0
sete cl
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x70], edx
call dword [sym.imp.VzSatData.dll_public:_void___thiscall_CSubModelData::constructor_void_]
lea ecx, [esp + 0xa10]
mov byte [esp + 0xc30], 2
call dword [sym.imp.SpGeoCvt.dll_public:_void___thiscall_CSpGeoCvt::constructor_void_]
mov eax, dword [ebp + 0x20]
mov byte [esp + 0xc30], 3
test eax, eax
jne 0x40d27b
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40d2e3
lea eax, [edi + 0x63c]
lea ecx, [esp + 0xa10]
push eax
call dword [sym.imp.SpGeoCvt.dll_public:_int___thiscall_CSpGeoCvt::Load4File_char_const__]
test eax, eax
jne 0x40d2e3
lea ecx, [esp + 0xa10]
mov byte [esp + 0xc30], 2
call dword [sym.imp.SpGeoCvt.dll_public_virtual:_void___thiscall_CSpGeoCvt::destructor_void_]
mov ecx, dword [sym.imp.VzSatData.dll_const_CSubModelData::vftable]
mov dword [esp + 0xc30], 0xffffffff
mov dword [esp + 0x2c0], ecx
lea ecx, [esp + 0xec]
call fcn.0041e6c0
xor eax, eax
mov ecx, dword [esp + 0xc28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], ebx
cmp ebx, eax
jge 0x40e348
jmp 0x40d2fc
mov esi, dword [esp + 0x10c]
cmp ebx, esi
jge 0x40d3f7
push ebx
mov ecx, edi
call dword [sym.imp.VzSatData.dll_public:_class_CVzSatModel____thiscall_CVzSatPro::GetModel_int_]
mov esi, eax
test esi, esi
je 0x40e326
mov ebx, dword [esi + 0x368]
mov edx, dword [esi + 0x36c]
lea eax, [esp + 0x90]
lea ecx, [esp + 0xa0]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x64], esi
call dword [sym.imp.VzSatData.dll_public:_void___thiscall_CVzSatModel::GetParallax_float___float__]
fld dword [esp + 0xa0]
fchs
fstp qword [esp + 0x110]
fld dword [esp + 0x90]
lea edx, [esp + 0x110]
mov ecx, esi
fchs
fstp qword [esp + 0x128]
push edx
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0x3ff00000
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0x3ff00000
call dword [sym.imp.VzSatData.dll_public:_int___thiscall_CVzSatModel::GetAtf_double__]
mov esi, eax
mov ecx, 0xc
neg esi
sbb esi, esi
lea edi, [esp + 0x1b8]
inc esi
xor eax, eax
mov dword [esp + 0x60], esi
rep stosd dword es:[edi], eax
jmp 0x40d4a2
sub ebx, esi
mov ecx, edi
push ebx
call dword [sym.imp.VzSatData.dll_public:_class_CVzSatTLA____thiscall_CVzSatPro::GetTLA_int_]
mov edi, dword [sym.imp.VzSatData.dll_public:_class_CVzSatPhoto____thiscall_CVzSatTLA::GetPhoto_enum_CVzSatTLA::_SIGHT_]
mov esi, eax
push 0
mov ecx, esi
call edi
push 2
mov ecx, esi
mov dword [esp + 0x44], eax
call edi
push 1
mov ecx, esi
mov dword [esp + 0x54], eax
call edi
mov edi, dword [sym.imp.VzSatData.dll_public:_int___thiscall_CVzSatTLA::GetAtf_double___enum_CVzSatTLA::_SIGHT__enum_CVzSatTLA::_SIGHT_]
mov dword [esp + 0x38], eax
push 2
lea eax, [esp + 0x114]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x68], esi
call edi
push 1
lea ecx, [esp + 0x1bc]
push 0
push ecx
mov ecx, esi
call edi
fld qword [esp + 0x110]
fchs
fstp dword [esp + 0xa0]
fld qword [esp + 0x128]
fchs
fstp dword [esp + 0x90]
fld qword [esp + 0x1b8]
fchs
fstp dword [esp + 0xa4]
fld qword [esp + 0x1d0]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x60], 0
mov esi, dword [esp + 0x60]
fchs
fstp dword [esp + 0x94]
mov eax, dword [ebx + 0x30c]
mov edx, dword [ebx + 0x310]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
fild dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x30c]
mov ecx, dword [eax + 0x310]
mov dword [esp + 0xc], edx
fstp dword [esp + 0xd4]
fild dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
test eax, eax
fstp dword [esp + 0xdc]
fild dword [esp + 0xc]
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 0
fstp dword [esp + 0x80]
fild dword [esp + 0x10]
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0
fstp dword [esp + 0x88]
je 0x40d581
mov ecx, dword [eax + 0x30c]
mov edx, dword [eax + 0x310]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
mov dword [esp + 0xc], edx
fstp dword [esp + 0xc4]
fild dword [esp + 0xc]
fstp dword [esp + 0xcc]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push 0
push eax
push ecx
lea ecx, [ebx + 0x350]
call dword [sym.imp.VzSatData.dll_public:_double___thiscall_CVzSatAbsPara::GetGsd_double__bool_]
fld dword [ebp + 0x10]
fdiv st(1)
fadd qword [0x442540]
call sub.MSVCRT.dll__ftol
fld dword [ebp + 0x14]
fdiv st(1)
mov dword [esp + 0x108], eax
fadd qword [0x442540]
call sub.MSVCRT.dll__ftol
test esi, esi
fstp st(0)
mov dword [esp + 0x104], eax
je 0x40d5de
push 0x80
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x8c], 0
test eax, eax
jle 0x40e31f
jmp 0x40d5fb
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0xec]
push edx
call fcn.0041f2e0
mov esi, eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x260]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c0]
mov dword [esp + 0xc], esi
call dword [sym.imp.VzSatData.dll_public:_void___thiscall_CSubModelData::Reset_void_]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040d000
add esp, 0xc
test eax, eax
je 0x40d66c
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x2c8]
add edx, 0xcc
push edx
push esi
push str._s_Strip_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x40d692
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x108]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x308]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x508]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + 0x108]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x260]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x30], edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 8
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
lea ebx, [ecx + 0x40]
lea ecx, [eax + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], ecx
neg eax
lea esi, [esp + eax + 0x6e8]
mov dword [esp + 0xfc], esi
lea esi, [esp + eax + 0x6ec]
mov dword [esp + 0xe4], esi
lea esi, [esp + eax + 0x708]
mov dword [esp + 0xe8], esi
lea esi, [esp + eax + 0x70c]
mov dword [esp + 0xe0], esi
lea esi, [esp + eax + 0x97c]
lea eax, [esp + eax + 0x980]
mov dword [esp + 0x100], esi
mov dword [esp + 0x9c], eax
jmp 0x40d783
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx - 8]
mov esi, edx
mov dword [edx], eax
mov eax, dword [ecx - 4]
mov dword [edx + 4], eax
mov eax, dword [ecx]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x64]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [edx + 0x14], ecx
mov ecx, 6
lea edi, [esp + 0x14]
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x40d810
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [edx + 0xc]
push eax
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx]
push eax
push ecx
push edx
lea ecx, [esp + 0xa34]
call dword [sym.imp.SpGeoCvt.dll_public:_int___thiscall_CSpGeoCvt::Cvt_Prj2LBH_double__double__double__double___double___double__]
fld qword [esp + 0x14]
fmul qword [0x442580]
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fmul qword [0x442580]
fstp qword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CVzSatPhoto::GeodeticToPhoto_double__double__double__float___float__]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x60]
call esi
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x54]
lea eax, [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
call esi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], 0
test ecx, ecx
mov dword [esp + 0x4c], 0
je 0x40d8b4
lea edx, [esp + 0x44]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call esi
fld dword [esp + 0x58]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xe8]
fstp dword [ebx + ecx]
fld dword [esp + 0x3c]
mov ecx, dword [esp + 0xe0]
fstp dword [ebx + edx]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x100]
fstp dword [ebx + eax]
fld dword [esp + 0x54]
mov eax, dword [esp + 0x9c]
fstp dword [ebx + ecx]
fld dword [esp + 0x4c]
fstp dword [ebx + edx]
fld dword [esp + 0x44]
fstp dword [ebx + eax]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40d92b
fld dword [esp + 0x58]
fstp qword [ebx - 0x40]
fld dword [esp + 0x3c]
fstp qword [ebx - 0x20]
fld dword [esp + 0x48]
fstp qword [ebx]
fld dword [esp + 0x54]
fstp qword [ebx + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
fstp dword [esp + eax + 0x198]
fld dword [esp + 0x54]
mov dword [esp + eax + 0x178], ecx
mov dword [esp + eax + 0x17c], edx
fstp dword [esp + eax + 0x19c]
fld dword [esp + 0x4c]
mov edx, dword [esp + 0x78]
mov ecx, 0x18
fstp dword [esp + eax + 0x158]
fld dword [esp + 0x44]
add edx, ecx
add edi, ecx
fstp dword [esp + eax + 0x15c]
add eax, 8
add ebx, 8
cmp eax, 0x20
mov dword [esp + 0x78], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], eax
jl 0x40d77b
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40dbe9
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
mov ecx, 4
lea esi, [eax + 0x20]
mov eax, esi
fld qword [esp + 0x14]
fadd qword [eax]
add eax, 0x18
dec ecx
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fadd qword [eax - 0x10]
fstp qword [esp + 0x1c]
jne 0x40d9c3
fld qword [esp + 0x14]
fmul qword [0x442590]
lea ebx, [esp + 0x260]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 4
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fmul qword [0x442590]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x98]
test eax, eax
je 0x40da57
mov edx, dword [esp + 0x68]
lea eax, [ebx + 8]
fld qword [esi + 8]
fmul qword [0x442588]
lea ecx, [eax + 8]
push ecx
push eax
mov eax, dword [esp + 0x6c]
push ebx
push edx
push eax
sub esp, 8
lea ecx, [esp + 0xa2c]
fstp qword [esp]
fld qword [esi]
fmul qword [0x442588]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.SpGeoCvt.dll_public:_int___thiscall_CSpGeoCvt::Cvt_LBH2Prj_double__double__double__double___double___double__]
jmp 0x40da64
mov ecx, 6
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
fld qword [esi]
fcomp qword [esp + 0x14]
fld dword [ebp + 0x10]
fnstsw ax
test ah, 0x41
je 0x40da76
fchs
fadd qword [ebx]
fstp qword [ebx]
fld qword [esi + 8]
fcomp qword [esp + 0x1c]
fld dword [ebp + 0x14]
fnstsw ax
test ah, 0x41
je 0x40da8d
fchs
fadd qword [ebx + 8]
mov eax, dword [esp + 0x10]
add ebx, 0x18
add esi, 0x18
dec eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
fstp qword [ebx - 0x10]
jne 0x40da0d
lea esi, [esp + 0x268]
xor edi, edi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esi - 4]
push eax
mov eax, dword [esi - 8]
push ecx
push edx
push eax
lea ecx, [esp + 0xa34]
call dword [sym.imp.SpGeoCvt.dll_public:_int___thiscall_CSpGeoCvt::Cvt_Prj2LBH_double__double__double__double___double___double__]
fld qword [esp + 0x14]
fmul qword [0x442580]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x58]
mov ebx, dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CVzSatPhoto::GeodeticToPhoto_double__double__double__float___float__]
push ecx
mov ecx, dword [esp + 0x28]
fstp qword [esp + 0x18]
fld qword [esp + 0x20]
fmul qword [0x442580]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
fstp qword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push edx
call ebx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x70]
call ebx
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x40db98
lea edx, [esp + 0x44]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call ebx
fld dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x3c]
fstp dword [esp + edi + 0x198]
fld dword [esp + 0x54]
mov dword [esp + edi + 0x178], ecx
mov dword [esp + edi + 0x17c], edx
fstp dword [esp + edi + 0x19c]
fld dword [esp + 0x4c]
add esi, 0x18
fstp dword [esp + edi + 0x158]
fld dword [esp + 0x44]
fstp dword [esp + edi + 0x15c]
add edi, 8
cmp edi, 0x20
jl 0x40dab5
mov edi, dword [sym.imp.VzSatData.dll_public:_void___thiscall_CFltRect::constructor_struct_tagFPoint___int_]
lea eax, [esp + 0x178]
push 4
push eax
lea ecx, [esp + 0x238]
call edi
mov esi, dword [sym.imp.VzSatData.dll_public:_void___thiscall_CFltRect::operator_class_CFltRect_const__]
push eax
lea ecx, [esp + 0x70c]
call esi
lea ecx, [esp + 0x198]
push 4
push ecx
lea ecx, [esp + 0x258]
call edi
push eax
lea ecx, [esp + 0x71c]
call esi
lea edx, [esp + 0x158]
push 4
push edx
lea ecx, [esp + 0x248]
call edi
push eax
lea ecx, [esp + 0x9b0]
call esi
mov ecx, dword [esp + 0xd0]
push 0
mov edi, dword [esp + 0xd8]
sub esp, 0x10
mov esi, dword [esp + 0xec]
mov eax, esp
mov ebx, dword [esp + 0xf0]
mov dword [eax], ecx
lea ecx, [esp + 0x2d4]
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
call dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CSubModelData::IsModelInRect_class_CFltRect__int_]
test al, al
je 0x40e304
mov eax, dword [esp + 0x7c]
push 2
mov ecx, dword [esp + 0x84]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x98]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x9c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x2d4]
call dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CSubModelData::IsModelInRect_class_CFltRect__int_]
test al, al
je 0x40e304
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x40dd8a
mov eax, dword [esp + 0xd0]
sub esp, 0x10
mov edx, esp
lea ecx, [esp + 0x718]
mov dword [edx], eax
mov dword [edx + 4], edi
mov edi, dword [ebp + 0x10]
mov dword [edx + 8], esi
mov esi, dword [ebp + 0x14]
push esi
push edi
mov dword [edx + 0xc], ebx
mov ebx, dword [sym.imp.VzSatData.dll_public:_void___thiscall_CFltRect::Expand_float__float__class_CFltRect_]
call ebx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
sub esp, 0x10
mov ecx, esp
push esi
push edi
mov dword [ecx], edx
mov edx, dword [esp + 0x9c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x730]
call ebx
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
sub esp, 0x10
mov ecx, esp
push esi
push edi
mov dword [ecx], edx
mov edx, dword [esp + 0xe0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x9c4]
call ebx
fld dword [ebp + 0x10]
fadd dword [0x442554]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x768], eax
jmp 0x40ddae
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x104]
mov ebx, dword [sym.imp.VzSatData.dll_public:_void___thiscall_CFltRect::Expand_float__float__class_CFltRect_]
mov dword [esp + 0x768], ecx
mov dword [esp + 0x76c], edx
jmp 0x40ddc3
fld dword [ebp + 0x14]
fadd dword [0x442554]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x76c], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40e062
mov edx, dword [esp + 0x34]
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x1e8]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x140]
lea esi, [edx + 0x20]
mov dword [esp + 0xa8], eax
rep stosd dword es:[edi], eax
mov ecx, edx
sub esi, edx
mov dword [esp + 0xac], 0x3ff00000
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], 4
jmp 0x40de2e
mov esi, dword [esp + 0x30]
fld qword [esi + ecx]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
fstp qword [esp + 0xb8]
fld qword [ecx + 0x40]
mov edi, 3
xor esi, esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
test edi, edi
lea eax, [esp + 0x1e8]
jle 0x40de82
lea edx, [esp + esi + 0xa8]
mov ebx, edi
mov ecx, edx
fld qword [ecx]
fmul qword [edx]
add eax, 8
add ecx, 8
dec ebx
fadd qword [eax - 8]
fstp qword [eax - 8]
jne 0x40de6b
mov ecx, dword [esp + 0xc]
fld st(0)
fmul qword [esp + esi + 0xa8]
add esi, 8
dec edi
test edi, edi
fadd qword [esp + esi + 0x138]
fstp qword [esp + esi + 0x138]
jg 0x40de60
mov eax, dword [esp + 0x10]
add ecx, 8
dec eax
mov dword [esp + 0xc], ecx
fstp st(0)
mov dword [esp + 0x10], eax
jne 0x40de2a
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x18
call edi
push 0x18
mov esi, eax
call edi
mov ebx, eax
mov ecx, 6
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 6
mov edi, ebx
push 3
push 3
rep stosd dword es:[edi], eax
push ebx
lea eax, [esp + 0x1fc]
push esi
push eax
call fcn.0040cc60
push 3
lea ecx, [esp + 0x130]
push 3
lea edx, [esp + 0x164]
push ecx
push edx
push esi
push ebx
call fcn.0040ce40
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push ebx
call esi
add esp, 0x3c
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x1e8]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0x3ff00000
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 4
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x30]
mov edi, 3
xor esi, esi
fld qword [ecx + eax]
test edi, edi
fstp qword [esp + 0xb8]
fld qword [ecx + 0x60]
mov dword [esp + 0xb4], edx
lea eax, [esp + 0x1e8]
jle 0x40dfc2
lea edx, [esp + esi + 0xa8]
mov ebx, edi
mov ecx, edx
fld qword [ecx]
fmul qword [edx]
add eax, 8
add ecx, 8
dec ebx
fadd qword [eax - 8]
fstp qword [eax - 8]
jne 0x40dfab
mov ecx, dword [esp + 0xc]
fld st(0)
fmul qword [esp + esi + 0xa8]
add esi, 8
dec edi
test edi, edi
fadd qword [esp + esi + 0x138]
fstp qword [esp + esi + 0x138]
jg 0x40dfa0
mov eax, dword [esp + 0x10]
add ecx, 8
dec eax
mov dword [esp + 0xc], ecx
fstp st(0)
mov dword [esp + 0x10], eax
jne 0x40df6a
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x18
call edi
push 0x18
mov esi, eax
call edi
mov ebx, eax
mov ecx, 6
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 6
mov edi, ebx
rep stosd dword es:[edi], eax
push 3
push 3
push ebx
lea ecx, [esp + 0x1fc]
push esi
push ecx
call fcn.0040cc60
push 3
lea edx, [esp + 0x148]
push 3
lea eax, [esp + 0x164]
push edx
push eax
push esi
push ebx
call fcn.0040ce40
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push ebx
call esi
mov ebx, dword [sym.imp.VzSatData.dll_public:_void___thiscall_CFltRect::Expand_float__float__class_CFltRect_]
add esp, 0x3c
mov ecx, dword [esp + 0x5c]
lea esi, [esp + 0x110]
lea edi, [esp + 0x770]
mov eax, dword [ecx + 0x360]
mov ecx, 0xc
mov word [esp + 0x7a8], ax
test ax, ax
rep movsd dword es:[edi], dword [esi]
jne 0x40e108
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xa0]
mov esi, dword [sym.imp.VzSatData.dll_public:_void___thiscall_CSubModelData::AutoCalcCorner_bool__float__float__bool__int_]
push 2
push 1
push edx
push eax
push 0
lea ecx, [esp + 0x2d4]
call esi
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xa4]
push 2
push 1
push ecx
push edx
push 0
lea ecx, [esp + 0x2d4]
call esi
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
sub esp, 0x10
mov eax, esp
push 0
push 0
mov dword [eax], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x730]
mov dword [eax + 0xc], edx
call ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40e157
mov ecx, 0xc
lea esi, [esp + 0x1b8]
lea edi, [esp + 0x9e0]
mov byte [esp + 0x7aa], 1
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x108]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7ab]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub esp, 0x750
mov ecx, 0x10
mov eax, esp
lea esi, [esp + 0xa18]
mov dword [esp + 0x7ec], esp
lea edi, [eax + 8]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x48]
mov ecx, 0x80
lea esi, [esp + 0xa58]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x248]
mov ecx, 0x80
lea esi, [esp + 0xc58]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0xe58]
lea ecx, [eax + 0x448]
lea edi, [eax + 0x468]
lea esi, [esp + 0xe78]
mov dword [ecx], edx
mov edx, dword [esp + 0xe5c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xe60]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xe64]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0xe68]
lea ecx, [eax + 0x458]
mov dword [eax + 0x458], edx
mov edx, dword [esp + 0xe6c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xe70]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xe74]
mov dword [ecx + 0xc], edx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x488]
mov ecx, 8
lea esi, [esp + 0xe98]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xeb8]
lea edi, [eax + 0x4b0]
mov dword [eax + 0x4a8], ecx
mov edx, dword [esp + 0xebc]
mov ecx, 0xc
lea esi, [esp + 0xec0]
mov dword [eax + 0x4ac], edx
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + 0xef0]
lea edi, [eax + 0x4eb]
mov byte [eax + 0x4e0], cl
mov edx, dword [esp + 0xef4]
mov dword [eax + 0x4e4], edx
mov cx, word [esp + 0xef8]
mov word [eax + 0x4e8], cx
mov dl, byte [esp + 0xefa]
mov ecx, 0x80
lea esi, [esp + 0xefb]
mov byte [eax + 0x4ea], dl
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10fc]
lea ecx, [eax + 0x6ec]
lea edi, [eax + 0x6fc]
lea esi, [esp + 0x110c]
mov dword [ecx], edx
mov edx, dword [esp + 0x1100]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x1104]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x1108]
mov dword [ecx + 0xc], edx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x720]
mov ecx, 0xc
lea esi, [esp + 0x1130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [sym.imp.VzSatData.dll_const_CSubModelData::vftable]
mov dword [eax], ecx
mov ecx, dword [esp + 0x7ac]
call dword [sym.imp.VzSatData.dll_public:_void___thiscall_CVzSatStrip::AddSubModel_class_CSubModelData_]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x70]
inc eax
cmp eax, ecx
mov dword [esp + 0x8c], eax
jl 0x40d5f7
mov ebx, dword [esp + 0x2c]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x74]
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], ebx
jl 0x40d2f5
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40e348
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xa10]
mov byte [esp + 0xc30], 2
call dword [sym.imp.SpGeoCvt.dll_public_virtual:_void___thiscall_CSpGeoCvt::destructor_void_]
mov edx, dword [sym.imp.VzSatData.dll_const_CSubModelData::vftable]
lea ecx, [esp + 0xec]
mov dword [esp + 0x2c0], edx
mov dword [esp + 0xc30], 0xffffffff
call fcn.0041e6c0
mov ecx, dword [esp + 0xc28]
mov eax, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret