Function at 0x40ee30
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x419474
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x42a018]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x42a018]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x40f64a
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push edi
call sub.MFC80U.DLL_Ordinal_1197
test eax, eax
jne 0x40eea8
push str.Fatal_Error:_MFC_initialization_failed_n
jmp 0x40f64f
mov ebx, dword [ebp + 8]
cmp ebx, 1
jg 0x40eec5
push str.type_SketchUpConverter_help_for_usage..._n
call dword [sym.imp.MSVCR80.dll_wprintf]
mov eax, 2
jmp 0x40f65a
mov eax, dword [esi]
mov edi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::constructor_wchar_t_const__]
push eax
lea ecx, [esp + 0x34]
call edi
mov dword [esp + 0x2c0], 0
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x24]
call edi
cmp ebx, 2
mov byte [esp + 0x2c0], 1
jne 0x40ef3d
push str.help
lea ecx, [esp + 0x24]
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_wString::CompareNoCase_char_const__const]
test eax, eax
jne 0x40ef42
call fcn.0040ed60
mov byte [esp + 0x2c0], 0
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [esp + 0x20]
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c0], 0xffffffff
call esi
mov eax, 2
jmp 0x40f65d
cmp ebx, 3
jge 0x40ef52
push str.type_SketchUpConverter_help_for_usage..._n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 4
jmp 0x40ef0e
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::constructor_void_]
lea ecx, [esp + 0x2c]
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 2
call esi
mov byte [esp + 0x2c0], 3
mov esi, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push 4
lea ecx, [esp + 0x24]
call esi
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x40eff5
mov esi, dword [sym.imp.MSVCR80.dll_wprintf]
push str.Cannot_open_input_file_for_reading._n
call esi
add esp, 4
push str.type_SketchUpConverter_help_for_usage..._n
call esi
mov byte [esp + 0x2c4], 2
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
add esp, 4
lea ecx, [esp + 0x28]
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 1
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c0], 0
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c0], 0xffffffff
call esi
mov eax, 3
jmp 0x40f65d
lea edx, [esp + 0x7c]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x30]
call esi
mov esi, dword [sym.imp.MSVCR80.dll__wsplitpath]
push eax
call esi
mov ebx, dword [reloc.opennurbs.dll___4ON_wString__QAEABV0_PB_W_Z]
add esp, 0x14
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x30]
call ebx
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 8]
push edx
lea ecx, [esp + 0x28]
call edi
mov byte [esp + 0x2c0], 4
mov edi, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push 2
lea ecx, [esp + 0x28]
call edi
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
lea ecx, [esp + 0x24]
je 0x40f135
push 0x41b920
mov dword [esp + 0x3c], 0
call edi
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x40f0c2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40f0c2
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esp + 0x24]
call edi
push eax
call dword [sym.imp.MSVCR80.dll__wunlink]
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x34]
call edi
push eax
call esi
add esp, 0x14
lea edx, [esp + 0x7c]
push edx
jmp 0x40f14d
mov esi, dword [sym.imp.MSVCR80.dll_wprintf]
push str.Cannot_open_output_file_for_writing._n
call esi
add esp, 4
push str.type_SketchUpConverter_help_for_usage..._n
call esi
mov byte [esp + 0x2c4], 3
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
add esp, 4
lea ecx, [esp + 0x24]
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 2
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 1
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c0], 0
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c0], 0xffffffff
call esi
mov eax, 3
jmp 0x40f65d
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push 0
call edi
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x2c]
call ebx
fld qword [0x41d738]
mov edi, dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_wString::CompareNoCase_wchar_t_const__const]
fstp qword [esp + 0x5c]
push str..3dm
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x50], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x40], 0
call edi
test eax, eax
je 0x40f1a7
push str..tmp
lea ecx, [esp + 0x30]
call edi
test eax, eax
jne 0x40f1bd
push str..skp
lea ecx, [esp + 0x2c]
call edi
test eax, eax
jne 0x40f1bd
mov byte [esp + 0x37], 1
jmp 0x40f1f7
push str..skp
lea ecx, [esp + 0x30]
call edi
test eax, eax
jne 0x40f63a
push str..3dm
lea ecx, [esp + 0x2c]
call edi
test eax, eax
je 0x40f1f2
push str..tmp
lea ecx, [esp + 0x2c]
call edi
test eax, eax
jne 0x40f63a
mov byte [esp + 0x37], 0
mov esi, 3
cmp dword [ebp + 8], esi
jle 0x40f447
mov edi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_String::destructor_void_]
jmp 0x40f210
mov ebx, dword [esp + 0x48]
mov edx, dword [ebx + esi*4]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_String::constructor_wchar_t_const__]
push str.WriteNgons
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c4], 5
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40f24b
mov byte [esp + 0x50], 1
jmp 0x40f431
push str.EmbedTextures
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40f268
mov byte [esp + 0x44], 1
jmp 0x40f431
push str.MakeTrimmedPlanes
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40f285
mov byte [esp + 0x40], 1
jmp 0x40f431
push str.JoinEdges
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40f2a2
mov byte [esp + 0x4c], 1
jmp 0x40f431
push str.JoinFaces
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40f2c2
mov dword [esp + 0x3c], 1
jmp 0x40f431
push str.UseSKPTextureWriter
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40f2df
mov byte [esp + 0x54], 1
jmp 0x40f431
push str.Weld
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
je 0x40f306
push str.Weld
lea ecx, [esp + 0x20]
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::Find_char_const__const]
cmp eax, 0xffffffff
je 0x40f42d
push str.Weld
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 1
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
jne 0x40f3e8
add esi, 1
cmp dword [ebp + 8], esi
jle 0x40f4f2
mov eax, dword [ebx + esi*4]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_String::constructor_wchar_t_const__]
push 0x41d284
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c4], 6
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::CompareNoCase_char_const__const]
test eax, eax
jne 0x40f3ad
add esi, 1
cmp dword [ebp + 8], esi
jle 0x40f567
mov ecx, dword [ebx + esi*4]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.opennurbs.dll_public:_class_ON_String____thiscall_ON_String::operator_wchar_t_const__]
lea ecx, [esp + 0x38]
call dword [sym.imp.opennurbs.dll_public:_char____thiscall_ON_String::Array_void_]
push eax
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.MSVCR80.dll__atodbl]
add esp, 8
test eax, eax
jne 0x40f567
fld qword [esp + 0x74]
lea ecx, [esp + 0x38]
fstp qword [esp + 0x5c]
mov byte [esp + 0x2c0], 5
call edi
jmp 0x40f42d
push 1
lea ecx, [esp + 0x3c]
call dword [sym.imp.opennurbs.dll_public:_char____thiscall_ON_String::operator___int_]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.MSVCR80.dll__atodbl]
add esp, 8
test eax, eax
jne 0x40f567
fld qword [esp + 0x64]
lea ecx, [esp + 0x38]
fstp qword [esp + 0x5c]
mov byte [esp + 0x2c0], 5
call edi
jmp 0x40f42d
push 0x41d284
lea ecx, [esp + 0x20]
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_String::Find_char_const__const]
cmp eax, 0xffffffff
je 0x40f4f2
add eax, 1
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.opennurbs.dll_public:_char____thiscall_ON_String::operator___int_]
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR80.dll__atodbl]
add esp, 8
test eax, eax
jne 0x40f4f2
fld qword [esp + 0x6c]
fstp qword [esp + 0x5c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c0], 4
call edi
add esi, 1
cmp dword [ebp + 8], esi
jg 0x40f210
cmp byte [esp + 0x37], 1
jne 0x40f588
mov edx, dword [esp + 0x50]
push edx
lea ecx, [esp + 0x28]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
mov esi, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
lea ecx, [esp + 0x24]
mov ebx, eax
call esi
lea ecx, [esp + 0x34]
mov edi, eax
call esi
mov ecx, edi
mov edi, eax
call fcn.004158e0
add esp, 4
test al, al
jne 0x40f5e1
push str.type_SketchUpConverter_help_for_usage..._n
call dword [sym.imp.MSVCR80.dll_wprintf]
mov byte [esp + 0x2c4], 3
mov edi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
add esp, 4
lea ecx, [esp + 0x24]
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 2
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 1
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c0], 0
call edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c0], 0xffffffff
call edi
mov eax, 4
jmp 0x40f65d
push str.type_SketchUpConverter_help_for_usage..._n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c0], 4
call edi
mov byte [esp + 0x2c0], 3
mov edi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [esp + 0x24]
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 2
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 1
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c0], 0
call edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c0], 0xffffffff
call edi
mov eax, 3
jmp 0x40f65d
push str.type_SketchUpConverter_help_for_usage..._n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c0], 5
call edi
jmp 0x40f500
fld qword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
mov esi, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
lea ecx, [esp + 0x40]
mov ebx, eax
call esi
lea ecx, [esp + 0x50]
mov edi, eax
call esi
mov edx, edi
mov ecx, eax
call fcn.0040c670
add esp, 0x20
jmp 0x40f483
mov byte [esp + 0x2c0], 3
mov edi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [esp + 0x24]
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 2
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 1
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c0], 0
call edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c0], 0xffffffff
call edi
call dword [sym.imp.tl.dll_TL_End]
xor eax, eax
jmp 0x40f65d
push str.type_SketchUpConverter_help_for_usage..._n
call dword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x40f0d9
push 0x41d288
call dword [sym.imp.MSVCR80.dll_wprintf]
mov eax, 1
add esp, 4
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0041620c
mov esp, ebp
pop ebp
ret