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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54bd29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
mov ebx, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x138]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fstp qword [esp + 0x40]
add esp, 4
mov ecx, ebx
call fcn.00419170
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
lea edi, [ebx + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0x174], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi]
push 0x574f24
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x34], esi
jne 0x419e9e
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
xor al, al
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebx + 0x1b8]
push str.SWEDGE___Surface_Wedge_Stability_Analysis
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
push 0x15
lea edx, [esp + 0x78]
push str._File_Format_Version
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
jne 0x419ef5
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x7e]
push eax
push 0x57bb50
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x419f05
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x40000000
push esi
call fcn.00419a20
push esi
lea edx, [esp + 0x70]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x67], 0xa
jne 0x419f46
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x67], al
lea eax, [esp + 0x68]
lea ecx, [ebx + 0x1b8]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
call fcn.00419a20
mov edi, dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 4
lea eax, [ebx + 0x368]
push eax
push 0x57bb4c
push esi
call edi
mov eax, dword [ebx + 0x368]
add esp, 0xc
cmp eax, 1
je 0x419fa4
cmp eax, 2
je 0x419fa4
push 0
push 4
push str.Can_not_determine_the_unit_system_used_for_nthis_file._Does_this_file_use_metric_units_
call sub.MFC42.DLL_AfxMessageBox_1
xor ecx, ecx
cmp eax, 6
setne cl
inc ecx
mov dword [ebx + 0x368], ecx
lea edx, [ebx + 0x1c8]
lea eax, [ebx + 0x1c0]
push edx
push eax
push str._lg___lg
push esi
call edi
add esp, 0x10
lea ecx, [ebx + 0x1d8]
lea edx, [ebx + 0x1d0]
push ecx
push edx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x36c]
push eax
push 0x57bb4c
push esi
call edi
add esp, 0xc
lea ecx, [ebx + 0x1e8]
lea edx, [ebx + 0x1e0]
push ecx
push edx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x1f8]
lea ecx, [ebx + 0x1f0]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea edx, [ebx + 0x208]
lea eax, [ebx + 0x200]
push edx
push eax
push str._lg___lg
push esi
call edi
add esp, 0x10
lea ecx, [ebx + 0x2a8]
push ecx
push str._lg
push esi
call edi
add esp, 0xc
lea eax, [ebx + 0x2b0]
push eax
push str._lg
push esi
call edi
fld qword [ebx + 0x2b0]
fcomp qword [0x558680]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x41a071
mov byte [ebx + 0x370], 0
lea eax, [ebx + 0x290]
lea ecx, [ebx + 0x2a0]
lea edx, [ebx + 0x298]
push eax
push ecx
push edx
push str._lg___lg___lg
push esi
call edi
add esp, 0x14
lea edx, [ebx + 0x2b8]
push edx
push str._lg
push esi
call edi
add esp, 0xc
lea eax, [ebx + 0x318]
push eax
push str._lg
push esi
call edi
fld qword [ebx + 0x318]
fcomp qword [0x558680]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x41a106
mov byte [ebx + 0x371], 0
mov eax, dword [ebx + 0x368]
cmp eax, 1
jne 0x41a0f0
mov dword [ebx + 0x318], 0
mov dword [ebx + 0x31c], 0x3ff00000
jmp 0x41a10d
mov dword [ebx + 0x318], 0x14b599aa
mov dword [ebx + 0x31c], 0x3f9ff690
jmp 0x41a10d
mov byte [ebx + 0x371], 1
lea eax, [ebx + 0x218]
lea ecx, [ebx + 0x210]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea edx, [ebx + 0x228]
lea eax, [ebx + 0x220]
push edx
push eax
push str._lg___lg
push esi
call edi
add esp, 0x10
lea ecx, [ebx + 0x770]
lea edx, [ebx + 0x768]
push ecx
push edx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x780]
lea ecx, [ebx + 0x778]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea edx, [ebx + 0x788]
push edx
push 0x57bac8
push esi
call edi
add esp, 0xc
lea eax, [ebx + 0x790]
push eax
push 0x57bac8
push esi
call edi
add esp, 0xc
lea ecx, [ebx + 0x7a0]
lea edx, [ebx + 0x798]
push ecx
push edx
push 0x57babc
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x7b0]
lea ecx, [ebx + 0x7a8]
push eax
push ecx
push 0x57babc
push esi
call edi
push esi
call fcn.00419a20
add esp, 0x14
lea eax, [ebx + 0x760]
push eax
push 0x57bb4c
push esi
call edi
mov eax, dword [ebx + 0x760]
add esp, 0xc
cmp eax, 2
jne 0x41a775
lea edx, [ebx + 0x75c]
push edx
push 0x57bb4c
push esi
call edi
add esp, 0xc
cmp eax, 1
je 0x41a218
mov ecx, ebx
call fcn.00419a70
mov ecx, ebx
call fcn.00419bd0
jmp 0x41b5ad
lea eax, [ebx + 0x830]
lea ecx, [ebx + 0x828]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x840]
lea ecx, [ebx + 0x838]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x850]
lea ecx, [ebx + 0x848]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x860]
lea ecx, [ebx + 0x858]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x870]
lea ecx, [ebx + 0x868]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x880]
lea ecx, [ebx + 0x878]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x890]
lea ecx, [ebx + 0x888]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x89c]
lea ecx, [ebx + 0x898]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x8a4]
lea ecx, [ebx + 0x8a0]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x8ac]
lea ecx, [ebx + 0x8a8]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x8b4]
lea ecx, [ebx + 0x8b0]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x8bc]
lea ecx, [ebx + 0x8b8]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x8c4]
lea ecx, [ebx + 0x8c0]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x8cc]
lea ecx, [ebx + 0x8c8]
push eax
push ecx
push 0x57bab4
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x940]
lea ecx, [ebx + 0x8d0]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x948]
lea ecx, [ebx + 0x8d8]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x950]
lea ecx, [ebx + 0x8e0]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x958]
lea ecx, [ebx + 0x8e8]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x960]
lea ecx, [ebx + 0x8f0]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x968]
lea ecx, [ebx + 0x8f8]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x970]
lea ecx, [ebx + 0x900]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x978]
lea ecx, [ebx + 0x908]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x980]
lea ecx, [ebx + 0x910]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x988]
lea ecx, [ebx + 0x918]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x998]
lea ecx, [ebx + 0x928]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x990]
lea ecx, [ebx + 0x920]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x9a8]
lea ecx, [ebx + 0x938]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x9a0]
lea ecx, [ebx + 0x930]
push eax
push ecx
push str._lg___lg
push esi
call edi
add esp, 0x10
lea eax, [ebx + 0x764]
push eax
push 0x57bab0
push esi
call edi
mov edx, dword [ebx + 0x898]
add esp, 0xc
cmp edx, 1
mov ecx, 0x40000000
mov eax, 0x40140000
jne 0x41a523
xor edx, edx
mov dword [ebx + 0x828], edx
mov dword [ebx + 0x82c], ecx
mov dword [ebx + 0x8d0], edx
mov dword [ebx + 0x8d4], eax
mov dword [ebx + 0x940], edx
mov dword [ebx + 0x944], eax
jmp 0x41a525
xor edx, edx
cmp dword [ebx + 0x8a0], 1
jne 0x41a552
mov dword [ebx + 0x838], edx
mov dword [ebx + 0x83c], ecx
mov dword [ebx + 0x8e0], edx
mov dword [ebx + 0x8e4], eax
mov dword [ebx + 0x950], edx
mov dword [ebx + 0x954], eax
cmp dword [ebx + 0x8a8], 1
jne 0x41a57f
mov dword [ebx + 0x848], edx
mov dword [ebx + 0x84c], ecx
mov dword [ebx + 0x8f0], edx
mov dword [ebx + 0x8f4], eax
mov dword [ebx + 0x960], edx
mov dword [ebx + 0x964], eax
cmp dword [ebx + 0x8b0], 1
jne 0x41a5ac
mov dword [ebx + 0x858], edx
mov dword [ebx + 0x85c], ecx
mov dword [ebx + 0x900], edx
mov dword [ebx + 0x904], eax
mov dword [ebx + 0x970], edx
mov dword [ebx + 0x974], eax
cmp dword [ebx + 0x8b8], 1
jne 0x41a5d9
mov dword [ebx + 0x868], edx
mov dword [ebx + 0x86c], ecx
mov dword [ebx + 0x910], edx
mov dword [ebx + 0x914], eax
mov dword [ebx + 0x980], edx
mov dword [ebx + 0x984], eax
cmp dword [ebx + 0x89c], 1
jne 0x41a606
mov dword [ebx + 0x830], edx
mov dword [ebx + 0x834], ecx
mov dword [ebx + 0x8d8], edx
mov dword [ebx + 0x8dc], eax
mov dword [ebx + 0x948], edx
mov dword [ebx + 0x94c], eax
cmp dword [ebx + 0x8a4], 1
jne 0x41a633
mov dword [ebx + 0x840], edx
mov dword [ebx + 0x844], ecx
mov dword [ebx + 0x8e8], edx
mov dword [ebx + 0x8ec], eax
mov dword [ebx + 0x958], edx
mov dword [ebx + 0x95c], eax
cmp dword [ebx + 0x8ac], 1
jne 0x41a660
mov dword [ebx + 0x850], edx
mov dword [ebx + 0x854], ecx
mov dword [ebx + 0x8f8], edx
mov dword [ebx + 0x8fc], eax
mov dword [ebx + 0x968], edx
mov dword [ebx + 0x96c], eax
cmp dword [ebx + 0x8b4], 1
jne 0x41a68d
mov dword [ebx + 0x860], edx
mov dword [ebx + 0x864], ecx
mov dword [ebx + 0x908], edx
mov dword [ebx + 0x90c], eax
mov dword [ebx + 0x978], edx
mov dword [ebx + 0x97c], eax
cmp dword [ebx + 0x8bc], 1
jne 0x41a6ba
mov dword [ebx + 0x870], edx
mov dword [ebx + 0x874], ecx
mov dword [ebx + 0x918], edx
mov dword [ebx + 0x91c], eax
mov dword [ebx + 0x988], edx
mov dword [ebx + 0x98c], eax
cmp dword [ebx + 0x8c0], 1
jne 0x41a6e7
mov dword [ebx + 0x878], edx
mov dword [ebx + 0x87c], edx
mov dword [ebx + 0x928], edx
mov dword [ebx + 0x92c], edx
mov dword [ebx + 0x998], edx
mov dword [ebx + 0x99c], edx
cmp dword [ebx + 0x8c8], 1
jne 0x41a714
mov dword [ebx + 0x888], edx
mov dword [ebx + 0x88c], edx
mov dword [ebx + 0x938], edx
mov dword [ebx + 0x93c], edx
mov dword [ebx + 0x9a8], edx
mov dword [ebx + 0x9ac], edx
cmp dword [ebx + 0x8c4], 1
jne 0x41a741
mov dword [ebx + 0x880], edx
mov dword [ebx + 0x920], edx
mov dword [ebx + 0x990], edx
mov dword [ebx + 0x884], edx
mov dword [ebx + 0x924], edx
mov dword [ebx + 0x994], edx
cmp dword [ebx + 0x8cc], 1
jne 0x41a76e
mov dword [ebx + 0x890], edx
mov dword [ebx + 0x930], edx
mov dword [ebx + 0x9a0], edx
mov dword [ebx + 0x894], edx
mov dword [ebx + 0x934], edx
mov dword [ebx + 0x9a4], edx
mov ecx, ebx
call fcn.00419a70
fld qword [esp + 0x3c]
fcomp qword [0x5588d0]
fnstsw ax
test ah, 1
jne 0x41b536
test byte [esi + 0xc], 0x10
jne 0x41abe1
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
push esi
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call edi
push 7
lea edx, [esp + 0x78]
push str._Bolts
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41a7cb
test byte [esi + 0xc], 0x10
je 0x41a79a
jmp 0x41ab33
lea eax, [esp + 0x20]
push eax
push 0x57bb4c
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0xc
cmp eax, 1
jne 0x41ab33
mov ecx, ebx
call fcn.00440fd0
mov ecx, dword [esp + 0x20]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x10], ecx
jne 0x41a82b
mov eax, dword [ebx + 0xd64]
cmp eax, edi
je 0x41a81a
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ebx + 0xd64], edi
mov dword [ebx + 0xd6c], edi
mov dword [ebx + 0xd68], edi
jmp 0x41aa24
mov edx, dword [ebx + 0xd64]
cmp edx, edi
jne 0x41a8c4
lea edi, [ecx + ecx*2]
shl edi, 5
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0xd64], edx
mov dword [esp + 0x28], edx
mov edi, edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edi
test edi, edi
mov dword [esp + 0x170], 1
je 0x41a88e
mov ecx, edi
call fcn.0041b5e0
mov eax, dword [esp + 0x14]
add edi, 0x60
dec eax
mov dword [esp + 0x170], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
jne 0x41a874
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xd6c], eax
mov dword [ebx + 0xd68], eax
jmp 0x41aa24
mov edi, dword [ebx + 0xd6c]
cmp ecx, edi
jg 0x41a95e
mov eax, dword [ebx + 0xd68]
cmp ecx, eax
jle 0x41a94f
sub ecx, eax
lea edi, [eax + eax*2]
mov dword [esp + 0x14], ecx
xor eax, eax
lea ecx, [ecx + ecx*2]
shl edi, 5
shl ecx, 5
add edi, edx
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x24], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov ecx, eax
dec eax
test ecx, ecx
je 0x41a94b
lea edi, [eax + 1]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x170], 2
je 0x41a936
mov ecx, dword [esp + 0x24]
call fcn.0041b5e0
mov eax, dword [esp + 0x24]
add eax, 0x60
dec edi
mov dword [esp + 0x170], 0xffffffff
mov dword [esp + 0x24], eax
jne 0x41a916
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0xd68], edx
jmp 0x41aa24
mov eax, dword [ebx + 0xd70]
test eax, eax
jne 0x41a98f
mov eax, dword [ebx + 0xd68]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41a983
mov eax, 4
jmp 0x41a98f
cmp eax, 0x400
jle 0x41a98f
mov eax, 0x400
add eax, edi
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x41a99d
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*2]
shl eax, 5
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0xd68]
mov esi, dword [ebx + 0xd64]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x14], eax
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xd68]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
shl ecx, 5
add ecx, eax
push edx
push ecx
call fcn.00444ec0
mov edx, dword [ebx + 0xd64]
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xd68], esi
mov esi, dword [esp + 0x38]
mov dword [ebx + 0xd6c], ecx
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ebx + 0xd64], eax
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], edi
jle 0x41ab33
mov edx, dword [ebx + 0xd64]
lea eax, [edi + edx]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x10]
push ecx
add eax, 8
push edx
push eax
push str._lg__lg__lg
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x14
cmp eax, 3
jne 0x41ab2c
mov eax, dword [ebx + 0xd64]
add eax, edi
lea ecx, [eax + 0x30]
lea edx, [eax + 0x28]
push ecx
add eax, 0x20
push edx
push eax
push str._lg__lg__lg
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x14
cmp eax, 3
jne 0x41ab2c
mov eax, dword [ebx + 0xd64]
add eax, edi
lea ecx, [eax + 0x50]
lea edx, [eax + 0x40]
push ecx
push eax
lea ecx, [eax + 0x48]
push edx
add eax, 0x38
push ecx
push eax
push str._lg__lg__lg__d__lg
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x1c
cmp eax, 5
je 0x41ab07
cmp eax, 4
jne 0x41aad5
mov edx, dword [ebx + 0xd64]
mov ecx, dword [edi + edx + 0x48]
lea eax, [edi + edx]
mov dword [eax + 0x50], ecx
mov edx, dword [eax + 0x4c]
mov dword [eax + 0x54], edx
jmp 0x41ab07
cmp eax, 2
jne 0x41ab2c
mov eax, dword [ebx + 0xd64]
add eax, edi
mov ecx, dword [eax + 0x48]
mov dword [eax + 0x50], ecx
mov edx, dword [eax + 0x4c]
mov dword [eax + 0x54], edx
mov ecx, dword [ebx + 0xd64]
xor eax, eax
mov dword [edi + ecx + 0x40], eax
mov dword [edi + ecx + 0x44], eax
mov edx, dword [ebx + 0xd64]
mov dword [edi + edx], eax
mov eax, dword [ebx + 0xd64]
add edi, 0x60
mov byte [edi + eax - 8], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41aa32
jmp 0x41ab33
mov ecx, ebx
call fcn.00440fd0
test byte [esi + 0xc], 0x10
jne 0x41abe1
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
push esi
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call edi
push 0x11
lea edx, [esp + 0x78]
push str._Seismic_Loading
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41ab71
test byte [esi + 0xc], 0x10
je 0x41ab43
jmp 0x41abe1
mov edi, dword [sym.imp.MSVCRT.dll_fscanf]
lea eax, [esp + 0x14]
push eax
push 0x57bb4c
push esi
call edi
add esp, 0xc
cmp eax, 1
jne 0x41abe1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41ab9d
mov byte [ebx + 0xa74], 1
jmp 0x41aba4
mov byte [ebx + 0xa74], 0
lea ecx, [ebx + 0xa70]
push ecx
push 0x57bb4c
push esi
call edi
add esp, 0xc
lea edx, [ebx + 0xa38]
push edx
push 0x57bb50
push esi
call edi
add esp, 0xc
lea eax, [ebx + 0xa48]
lea ecx, [ebx + 0xa40]
push eax
push ecx
push str._lg_lg
push esi
call edi
add esp, 0x10
mov eax, dword [ebx + 0xd78]
xor edi, edi
cmp eax, edi
je 0x41abfc
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0xd78], edi
fld qword [esp + 0x3c]
fcomp qword [0x5588c8]
mov dword [ebx + 0xd80], edi
mov dword [ebx + 0xd7c], edi
fnstsw ax
test ah, 1
jne 0x41aeac
test byte [esi + 0xc], 0x10
jne 0x41b061
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
push esi
lea edx, [esp + 0x6c]
push 0xff
push edx
call edi
push 0x11
lea eax, [esp + 0x78]
push str._External_Forces
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41ac5e
test byte [esi + 0xc], 0x10
je 0x41ac2d
jmp 0x41b067
lea ecx, [esp + 0x20]
push ecx
push 0x57bb4c
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0xc
cmp eax, 1
jne 0x41b067
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0xd78]
test ecx, ecx
mov dword [esp + 0x10], ecx
jne 0x41acbb
test eax, eax
je 0x41aca8
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ebx + 0xd78], 0
xor eax, eax
mov dword [ebx + 0xd80], eax
mov dword [ebx + 0xd7c], eax
jmp 0x41ae30
test eax, eax
jne 0x41ad03
lea edi, [ecx + ecx*2]
shl edi, 3
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0xd78], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xd80], eax
mov dword [ebx + 0xd7c], eax
jmp 0x41ae2a
cmp ecx, dword [ebx + 0xd80]
jg 0x41ad54
mov edx, dword [ebx + 0xd7c]
cmp ecx, edx
jle 0x41ad45
mov eax, ecx
mov ecx, dword [ebx + 0xd78]
sub eax, edx
lea edx, [edx + edx*2]
lea edi, [ecx + edx*8]
lea ecx, [eax + eax*2]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xd7c], eax
jmp 0x41ae30
mov eax, dword [ebx + 0xd84]
test eax, eax
jne 0x41ad85
mov eax, dword [ebx + 0xd7c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41ad79
mov eax, 4
jmp 0x41ad85
cmp eax, 0x400
jle 0x41ad85
mov eax, 0x400
mov edx, dword [ebx + 0xd80]
add eax, edx
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x41ad99
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*2]
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0xd7c]
mov esi, dword [ebx + 0xd78]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0xd7c]
mov ecx, esi
sub ecx, edx
lea edx, [edx + edx*2]
lea ecx, [ecx + ecx*2]
lea edi, [eax + edx*8]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xd78]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0xd78], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0xd7c], esi
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 0xd80], edx
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x41b067
xor edi, edi
mov eax, dword [ebx + 0xd78]
add eax, edi
lea ecx, [eax + 0x10]
lea edx, [eax + 8]
push ecx
push edx
push eax
push str._lg__lg__lg
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x14
cmp eax, 3
jne 0x41ae80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
add edi, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41ae42
jmp 0x41b061
mov eax, dword [ebx + 0xd78]
xor edi, edi
cmp eax, edi
je 0x41ae9b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0xd78], edi
mov dword [ebx + 0xd80], edi
mov dword [ebx + 0xd7c], edi
jmp 0x41b061
fld qword [ebx + 0x290]
fcomp qword [0x558680]
fnstsw ax
test ah, 0x40
jne 0x41b061
mov edx, dword [ebx + 0xd78]
cmp edx, edi
jne 0x41aefe
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov ecx, 6
xor eax, eax
mov dword [ebx + 0xd78], edi
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [ebx + 0xd80], eax
mov dword [ebx + 0xd7c], eax
jmp 0x41b01a
mov ecx, dword [ebx + 0xd80]
cmp ecx, 1
jl 0x41af46
mov ecx, dword [ebx + 0xd7c]
cmp ecx, 1
jge 0x41af37
mov eax, 1
sub eax, ecx
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*8]
lea ecx, [eax + eax*2]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xd7c], 1
jmp 0x41b01a
mov eax, dword [ebx + 0xd84]
cmp eax, edi
jne 0x41af77
mov eax, dword [ebx + 0xd7c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41af6b
mov eax, 4
jmp 0x41af77
cmp eax, 0x400
jle 0x41af77
mov eax, 0x400
add eax, ecx
cmp eax, 1
mov dword [esp + 0x10], eax
jg 0x41af8a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0xd7c]
mov esi, dword [ebx + 0xd78]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0xd7c]
mov ecx, 1
sub ecx, edx
lea edx, [edx + edx*2]
lea ecx, [ecx + ecx*2]
shl ecx, 3
lea edi, [eax + edx*8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xd78]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 0xd78], ecx
mov dword [ebx + 0xd7c], 1
mov dword [ebx + 0xd80], edx
mov eax, dword [ebx + 0xd78]
mov ecx, dword [ebx + 0x298]
mov dword [eax], ecx
mov edx, dword [ebx + 0x29c]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xd78]
mov ecx, dword [ebx + 0x2a0]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x2a4]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0xd78]
mov ecx, dword [ebx + 0x290]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0x294]
mov dword [eax + 0x14], edx
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
fld qword [esp + 0x3c]
fcomp qword [0x5588c8]
fnstsw ax
test ah, 1
jne 0x41b23a
test byte [esi + 0xc], 0x10
jne 0x41b23a
push esi
lea eax, [esp + 0x6c]
push 0xff
push eax
call edi
push 0xe
lea ecx, [esp + 0x78]
push str._Water_Forces
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41b0b7
test byte [esi + 0xc], 0x10
je 0x41b086
jmp 0x41b142
lea edx, [esp + 0x60]
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
push str._d_d_lg_lg_lg
push esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x64
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x1c
cmp eax, 5
jne 0x41b142
lea edi, [ebx + 0xaf0]
mov ecx, 8
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
test byte [esi + 0xc], 0x10
jne 0x41b23a
push esi
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call edi
push 0xe
lea edx, [esp + 0x78]
push str._Pseudo_Random
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41b17a
test byte [esi + 0xc], 0x10
je 0x41b14c
jmp 0x41b1a8
lea eax, [esp + 0x14]
push eax
push 0x57bb4c
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0xc
cmp eax, 1
jne 0x41b1a8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41b19f
push 0
jmp 0x41b1a1
push 1
mov ecx, ebx
call fcn.00442c60
test byte [esi + 0xc], 0x10
jne 0x41b23a
push esi
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call edi
push 0xb
lea edx, [esp + 0x78]
push str._Shotcrete
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41b1e0
test byte [esi + 0xc], 0x10
je 0x41b1b2
jmp 0x41b23a
lea eax, [esp + 0x34]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push 0x57ba10
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x14
cmp eax, 3
jne 0x41b23a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ebx + 0xa78], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0xa7c], edx
test eax, eax
setne al
mov byte [ebx + 0xa90], al
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xa88], eax
mov dword [ebx + 0xa8c], ecx
fld qword [esp + 0x3c]
fcomp qword [0x5588c0]
fnstsw ax
test ah, 1
jne 0x41b2e1
test byte [esi + 0xc], 0x10
jne 0x41b2e1
push esi
lea edx, [esp + 0x6c]
push 0xff
push edx
call edi
push 0xf
lea eax, [esp + 0x78]
push str._Scale_Factors
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41b287
test byte [esi + 0xc], 0x10
je 0x41b259
jmp 0x41b2e1
lea ecx, [esp + 0x34]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x57ba10
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x14
cmp eax, 3
jne 0x41b2e1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x738], edx
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x73c], eax
setne cl
mov byte [ebx + 0x730], cl
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x338], ecx
mov dword [ebx + 0x33c], edx
fld qword [esp + 0x3c]
fcomp qword [0x5588b8]
fnstsw ax
test ah, 1
jne 0x41b45f
test byte [esi + 0xc], 0x10
jne 0x41b45f
push esi
lea eax, [esp + 0x6c]
push 0xff
push eax
call edi
push 0xf
lea ecx, [esp + 0x78]
push str._Support_Pressure
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41b331
test byte [esi + 0xc], 0x10
je 0x41b300
jmp 0x41b45f
push esi
lea edx, [esp + 0x6c]
push 0xff
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x7c]
push str._d_lg_lg_lg_d
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x1c
cmp eax, 5
jne 0x41b3c8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
cmp eax, 1
sete al
mov byte [ebx + 0xac8], al
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xa98], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0xa9c], edx
mov edx, dword [esp + 0x24]
mov dword [ebx + 0xaa0], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xaa4], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xaa8], edx
mov dword [ebx + 0xaac], eax
mov dword [ebx + 0xacc], ecx
push esi
lea edx, [esp + 0x6c]
push 0xff
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x7c]
push str._d_lg_lg_lg_d
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x1c
cmp eax, 5
jne 0x41b45f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
cmp eax, 1
sete al
mov byte [ebx + 0xac9], al
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xab0], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0xab4], edx
mov edx, dword [esp + 0x24]
mov dword [ebx + 0xab8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xabc], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xac0], edx
mov dword [ebx + 0xac4], eax
mov dword [ebx + 0xad0], ecx
fld qword [esp + 0x3c]
fcomp qword [0x5588b0]
fnstsw ax
test ah, 1
jne 0x41b536
test byte [esi + 0xc], 0x10
jne 0x41b536
push esi
lea edx, [esp + 0x6c]
push 0xff
push edx
call edi
push 0x13
lea eax, [esp + 0x78]
push str._c_phi_Correlation
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x18
test eax, eax
je 0x41b4af
test byte [esi + 0xc], 0x10
je 0x41b47e
jmp 0x41b536
push esi
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x78]
push str._d_lg_d_lg
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x18
cmp eax, 4
jne 0x41b536
mov edx, dword [esp + 0x34]
mov eax, 1
cmp edx, eax
sete cl
mov byte [ebx + 0xad4], cl
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0xad8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xadc], ecx
sete dl
mov byte [ebx + 0xad5], dl
mov edx, dword [esp + 0x24]
mov dword [ebx + 0xae0], edx
mov dword [ebx + 0xae4], eax
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
fld qword [esp + 0x40]
fcomp qword [0x5588a8]
add esp, 4
fnstsw ax
test ah, 0x40
je 0x41b558
mov ecx, ebx
call fcn.00441790
fld qword [esp + 0x3c]
fcomp qword [0x5588c8]
fnstsw ax
test ah, 0x41
je 0x41b582
mov ecx, ebx
call fcn.0041cfc0
push 1
mov ecx, ebx
fstp st(0)
call fcn.00420e30
mov ecx, ebx
call fcn.00419c30
mov eax, dword [ebx + 0x760]
mov ecx, ebx
cmp eax, 2
jne 0x41b596
call fcn.00430840
jmp 0x41b59d
call fcn.0041cfc0
fstp st(0)
mov ecx, ebx
call fcn.0042d780
push 1
mov ecx, ebx
call fcn.00420e30
mov ecx, dword [esp + 0x168]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4