Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47479f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c6b0c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, ecx
mov ecx, dword [eax]
push ecx
mov esi, edx
push 0x4b8494
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
push ecx
inc eax
push eax
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
mov edi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
mov ebp, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [sym.imp.MSVCR90.dll_toupper]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00401580
mov eax, dword [esp + 0x8c]
mov edi, dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov dword [ebx + 8], eax
mov edx, dword [eax + 0x168]
lea eax, [esp + 0x58]
push 0x4b8498
push eax
mov dword [ebx + 0xc], edx
call edi
add esp, 0x28
test al, al
je 0x40116d
push 0x138
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x64], 1
test eax, eax
je 0x40112d
cmp dword [esi + 0x18], 0x10
jb 0x40111e
mov esi, dword [esi + 4]
push esi
mov ecx, eax
call fcn.00419f20
mov esi, eax
jmp 0x40112f
add esi, 4
push esi
mov ecx, eax
call fcn.00419f20
mov esi, eax
jmp 0x40112f
xor esi, esi
push 0
push ebx
mov ecx, esi
mov byte [esp + 0x6c], 0
call fcn.0041eed0
mov bl, al
test esi, esi
je 0x401154
mov ecx, esi
call fcn.00419790
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
jmp 0x40122f
lea ecx, [esp + 0x38]
push 0x4b849c
push ecx
call edi
add esp, 8
test al, al
je 0x4011f8
push 0x4c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x64], 2
test eax, eax
je 0x4011bb
cmp dword [esi + 0x18], 0x10
jb 0x4011ac
mov esi, dword [esi + 4]
push esi
mov ecx, eax
call fcn.0040b6d0
mov esi, eax
jmp 0x4011bd
add esi, 4
push esi
mov ecx, eax
call fcn.0040b6d0
mov esi, eax
jmp 0x4011bd
xor esi, esi
push 0
push ebx
mov ecx, esi
mov byte [esp + 0x6c], 0
call fcn.0040e310
mov bl, al
test esi, esi
je 0x4011e2
mov ecx, esi
call fcn.0040b760
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
jmp 0x40122f
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
push ecx
push str.file_extension_can_be_dxf_or_dwg
push eax
call fcn.004015c0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0046980b
add esp, 0x54
ret 4