Function at 0x405a70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e4d5
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x43fe30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x405eab
push 1
lea eax, [ebp - 0x40]
push eax
call sub.TD_DbCore_22.12_15.dll_public:_class_OdDbObjectId___thiscall_OdDbDatabase::getGroupDictionaryId_bool_
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call sub.TD_DbCore_22.12_15.dll_public:_class_OdSmartPtr_class_OdDbObject____thiscall_OdDbObjectId::safeOpenObject_enum_OdDb::OpenMode__bool_
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00402240
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x405af5
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00404ee0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.00404ec0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push 1
push eax
mov byte [ebp - 4], 7
call sub.TD_DbCore_22.12_15.dll_public:_class_OdSmartPtr_class_OdDbDictionaryIterator____thiscall_OdDbDictionary::newIterator_enum_OdRx::DictIterType_
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x405bc4
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x40]
nop dword [eax]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ecx]
call dword [eax + 0x40]
push esi
push eax
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401e40
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
push edi
push eax
push 0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x34]
call fcn.00401fc0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call sub.TD_Root_22.12_15.dll_public:_void___thiscall_OdString::destructor_void_
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x405b60
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x405bd4
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
mov dword [ebp - 0x100], 0x422f7c
mov dword [ebp - 0xf0], 0x422f84
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::constructor_void_]
push 0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x2c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::constructor_class_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
mov eax, dword [ebp - 0x100]
mov dword [ebp - 4], 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], vtable.std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::constructor_void_]
mov dword [ebp - 0xe8], vtable.std::basic_stringbuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
mov esi, dword [edi]
cmp esi, edi
je 0x405d00
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xc], 0
jne 0x405c9b
cmp dword [eax + 0x10], 0
je 0x405c9b
lea ecx, [esi + 0x10]
call sub.TD_Root_22.12_15.dll_protected:_void___thiscall_OdString::syncUnicode_void_const
mov eax, dword [esi + 0x10]
push 0x422f8c
push dword [eax + 0xc]
lea eax, [ebp - 0xf0]
push eax
call fcn.00401580
add esp, 8
push eax
call fcn.00401580
mov eax, dword [esi + 8]
add esp, 8
cmp byte [eax + 0xd], 0
je 0x405ce4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x405ce0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x405ce0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x405cd0
mov esi, eax
jmp 0x405cfc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x405cfc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x405cf0
cmp esi, edi
jne 0x405c81
lea eax, [ebp - 0xf0]
push 0x422f94
push eax
call fcn.00401580
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xe
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 5
test al, 2
jne 0x405d7c
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_protected:_unsigned_short_int____thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::pptr_void_const]
test eax, eax
je 0x405d76
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_protected:_unsigned_short_int____thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::pbase_void_const]
lea ecx, [ebp - 0xe8]
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_unsigned_short_int____thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::pptr_void_const]
cmp eax, dword [ebp - 0xb0]
cmovb eax, dword [ebp - 0xb0]
jmp 0x405daa
mov eax, dword [ebp - 0xac]
test al, 4
jne 0x405db8
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_protected:_unsigned_short_int____thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::gptr_void_const]
test eax, eax
je 0x405db8
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_protected:_unsigned_short_int____thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::eback_void_const]
lea ecx, [ebp - 0xe8]
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_unsigned_short_int____thiscall_std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::egptr_void_const]
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.004057e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xd
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405e0d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405e03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405e03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041c677
add esp, 8
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x100], vtable.std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xe8]
call fcn.004036b0
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x48]
call fcn.00403600
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
push dword [esi + 4]
call fcn.00405140
mov eax, dword [ebp - 0x34]
push 0x14
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x34]
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], esi
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
call fcn.0041c677
add esp, 8
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x10
test eax, eax
je 0x405ea8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0x11
test ecx, ecx
je 0x405ebb
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c63c
mov esp, ebp
pop ebp
ret 4