Function at 0x401690
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a2346
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.00446420
push ebx
push ebp
push esi
mov esi, dword [sym.imp.DMDataTk53.dll_public:_static_int___cdecl_eaiInfo::setFilter_enum_eaiInfo::Streams_]
push edi
push 1
call esi
push 0x10
call esi
push 0x100
call esi
push 0x1000
call esi
mov ebp, dword [esp + 0x1038]
add esp, 0x10
test ebp, ebp
je 0x401948
mov edi, 0x4ddef4
mov esi, ebp
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401948
mov ecx, dword [0x4ddef0]
push ebp
call fcn.004341b0
mov ecx, dword [0x4ddef0]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x40171a
push str.Export_not_available_in_demo_mode..._n
jmp 0x40194d
lea ecx, [esp + 0x10]
call sub.Jt52.dll_public:_void___thiscall_JtString::constructor_void_
lea ecx, [esp + 0x14]
mov dword [esp + 0x1020], 0
call sub.Jt52.dll_public:_void___thiscall_JtString::constructor_void_
mov eax, dword [0x4ddeec]
mov byte [esp + 0x1020], 1
test eax, eax
lea ecx, [esp + 0x10]
je 0x40175b
push eax
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::setString_char_const__
mov edx, dword [0x4ddeec]
push edx
jmp 0x401766
push ebp
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::setString_char_const__
push 0x4af4c8
lea ecx, [esp + 0x18]
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::setString_char_const__
mov ebx, dword [sym.imp.DMDataTk53.dll_void___cdecl_extractFileName_class_JtString__]
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.DMDataTk53.dll_void___cdecl_removeExtension_class_JtString__]
add esp, 8
lea edx, [esp + 0x818]
lea ecx, [esp + 0x10]
push 0x800
push edx
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::stringToMbs_char___int_const
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.DMDataTk53.dll_void___cdecl_extractPath_class_JtString__]
add esp, 4
lea ecx, [esp + 0x18]
push 0x800
push ecx
lea ecx, [esp + 0x1c]
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::stringToMbs_char___int_const
push 0x4af374
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
jne 0x40180a
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cerr]
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push 0x4af444
push ebp
push str.ERROR:__cannot_open_file
call esi
mov ecx, eax
call esi
mov ecx, eax
call esi
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cerr]
push str.________Exiting..._n
call esi
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edi, 0x4ddef4
lea esi, [esp + 0x818]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401860
push ebp
lea ecx, [esp + 0x14]
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::setString_char_const__
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.DMDataTk53.dll_void___cdecl_removeExtension_class_JtString__]
add esp, 8
lea edx, [esp + 0x818]
lea ecx, [esp + 0x10]
push 0x800
push edx
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtString::stringToMbs_char___int_const
mov ecx, dword [0x4ddef0]
push str.Parsing_WRL_input...
call fcn.00445fd0
mov ecx, dword [0x4ddef0]
call fcn.004434f0
push ebp
call fcn.00401980
add esp, 4
test eax, eax
lea eax, [esp + 0x818]
je 0x40189b
push eax
push ebp
call fcn.0040ee20
add esp, 8
jmp 0x4018b2
mov ecx, dword [0x4ddef0]
mov edx, dword [ecx + 0x2d0]
push edx
push eax
push ebp
call fcn.00428a20
add esp, 0xc
mov esi, eax
test esi, esi
je 0x401921
mov eax, dword [0x4ddeec]
test eax, eax
je 0x401902
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4018f2
cmp byte [esp + edx + 0x18], 0x5c
jne 0x4018df
mov byte [esp + edx + 0x18], 0x2f
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4018d3
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x4ddef0]
call fcn.00445be0
mov ecx, dword [0x4ddef0]
call fcn.004434f0
mov ecx, dword [0x4ddef0]
push esi
call fcn.00402630
mov ecx, esi
call dword [sym.imp.DMDataTk53.dll_public:_void___thiscall_eaiEntity::unref_void_const]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1020], 0
call sub.Jt52.dll_public:_void___thiscall_JtString::destructor_void_
lea ecx, [esp + 0x10]
mov dword [esp + 0x1020], 0xffffffff
call sub.Jt52.dll_public:_void___thiscall_JtString::destructor_void_
jmp 0x401959
push str.Input_file_not_specified..._n
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cerr]
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1014
ret