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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4101e9
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x418020]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x418020]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [vtable.AdMutex.0]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
xor ebx, ebx
mov ecx, 0x418c10
mov dword [esp + 0x40], edi
mov dword [esp + 0x5c], ebx
call eax
lea ecx, [esp + 0x5c]
lea esi, [esp + 0x28]
mov dword [esp + 0x28], vtable.AdThreadLock.0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
call fcn.0040e000
push 0x7530
mov ecx, esi
call fcn.0040e050
mov dword [esp + 0xc0], ebx
cmp byte [esp + 0x3c], bl
jne 0x4071df
mov dword [esp + 0xc0], 0xffffffff
mov ecx, esi
mov dword [esp + 0x28], vtable.AdThreadLock.0
call dword [0x411fb8]
test al, al
je 0x4071c4
mov edx, dword [esp + 0x2c]
push edx
mov byte [esp + 0x40], bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4071d5
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 0x800700a7
jmp 0x4077b6
cmp edi, ebx
jne 0x40722e
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.AdThreadLock.0
call dword [0x411fb8]
test al, al
je 0x407213
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x40], bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x407224
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 0x80070057
jmp 0x4077b6
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
mov dword [edi], ebx
jne 0x407256
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040dfc0
mov eax, 0x80070057
jmp 0x4077b6
mov edx, dword [sym.imp.acdb17.dll_s_pServices]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x58], eax
je 0x407798
cmp byte [eax + 0x38], bl
jne 0x407798
cmp byte [0x419178], bl
jne 0x407798
lea ebx, [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
call fcn.00407b80
mov eax, dword [0x4191cc]
lea esi, [esp + 0x50]
lea edi, [esp + 0x20]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 0x4191c8
call fcn.00407c30
test al, al
je 0x4072d0
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040dfc0
mov eax, 0x80070006
jmp 0x4077b6
lea esi, [esp + 0x20]
call fcn.00407c00
mov edi, dword [eax]
call fcn.00407c00
test edi, edi
mov ebx, dword [eax + 4]
mov dword [esp + 0x10], ebx
jne 0x407309
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040dfc0
mov eax, 0x80004003
jmp 0x4077b6
mov eax, dword [edi + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00406600
test ebx, ebx
mov byte [esp + 0xc0], 1
jne 0x407515
lea edx, [esp + 0x60]
mov ecx, edi
call fcn.00401600
mov byte [esp + 0xc0], 2
cmp dword [esp + 0x78], ebx
je 0x4073ce
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x407353
lea eax, [esp + 0x68]
lea esi, [esp + 0x14]
call fcn.00408250
mov edx, dword [esp + 0x40]
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x14]
mov dword [edx], eax
cmp byte [edi + 0x31], 0
mov dword [esp + 0x14], 0
je 0x407389
mov eax, dword [edi + 0x5c]
mov edx, dword [eax + 0x1c]
add edi, 0x5c
mov ecx, edi
call edx
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 1
call fcn.0040b810
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.004066f0
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040dfc0
xor eax, eax
jmp 0x4077b6
cmp byte [edi + 0x31], 0
je 0x4074d6
call fcn.004013f0
test al, al
je 0x407480
lea esi, [esp + 0x88]
mov eax, edi
call fcn.00406360
mov byte [esp + 0xc0], 4
cmp dword [esp + 0xa0], 0
je 0x40746c
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x40741d
lea eax, [esp + 0x90]
lea esi, [esp + 0x10]
call fcn.00408250
mov ecx, dword [esp + 0x40]
mov byte [esp + 0xc0], 5
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov edx, dword [edi + 0x34]
mov eax, dword [edx + 0x1c]
lea ecx, [edi + 0x34]
mov dword [esp + 0x10], 0
call eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x88]
mov byte [esp + 0xc0], 2
call fcn.0040b810
jmp 0x407391
lea ecx, [esp + 0x88]
mov byte [esp + 0xc0], 2
call fcn.0040b810
mov edx, dword [edi + 0x88]
lea ecx, [edi + 0x8c]
push ecx
push edx
add edi, 0x84
push edi
call sub.acdb17.dll_bool___cdecl_AcHsUtil::readDwgStringsEnd_class_AcFsByteReader____class_AcHsTrie_unsigned_long_int____class_AcHsTrieIterator_unsigned_long_int____
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
push ecx
call fcn.00406f90
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 1
call fcn.0040b810
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.004066f0
jmp 0x40779d
mov esi, dword [edi + 0x2c]
call fcn.00403740
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x4074f4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
jmp 0x4074a7
lea esi, [esp + 0x20]
call fcn.00407c00
lea ecx, [esp + 0x60]
mov dword [eax + 4], edi
mov byte [esp + 0xc0], 1
call fcn.0040b810
mov ebx, edi
jmp 0x40752b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
test al, al
jne 0x40752b
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
xor ecx, ecx
mov eax, 0x8200
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x1c], 0
neg ecx
or ecx, eax
push ecx
call fcn.0040e82a
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40758d
call fcn.004068d0
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.004066f0
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040dfc0
mov eax, 0x8007000e
jmp 0x4077b6
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
test al, al
jne 0x407766
mov eax, dword [esp + 0x58]
cmp byte [eax + 0x38], 0
jne 0x407717
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov esi, eax
test esi, esi
je 0x407766
call fcn.0040aad0
push eax
mov ecx, esi
call sub.acdb17.dll__x_AcRxObject__QBEPAV1_PBVAcRxClass___Z
mov edi, eax
call fcn.00406750
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov ecx, esi
mov dword [esp + 0x14], eax
call sub.acdb17.dll_public:_enum_Acad::ErrorStatus___thiscall_AcDbObject::close_void_
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4076fd
call fcn.00408230
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e82a
mov ecx, dword [esp + 0x18]
mov edi, eax
add esp, 4
mov edx, edi
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407620
lea eax, [esp + 0x14]
push eax
call sub.acdb17.dll_void___cdecl_acutDelBuffer_void___
add esp, 4
test edi, edi
je 0x4076fd
mov ecx, edi
call fcn.00408230
mov ebx, eax
test ebx, ebx
jne 0x407661
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x4076f9
mov ecx, dword [esp + 0x1c]
lea esi, [ebx + ecx + 1]
cmp esi, 0x8200
jle 0x4076c3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e82a
add esp, 4
test eax, eax
mov dword [esp + 0x50], eax
je 0x40755e
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x18]
push edx
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx*2]
lea ecx, [ebx + ebx]
push ecx
mov word [eax], 0x20
add eax, 2
push edi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp esi, 0x8000
mov dword [esp + 0x1c], esi
jge 0x407717
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
test al, al
je 0x40759e
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x407766
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
jne 0x407738
push 0x8007000e
call fcn.00405a90
lea ecx, [edi + edi]
mov edi, dword [esp + 0x18]
push ecx
push edi
push esi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x4c]
add esp, 0xc
push edi
mov dword [edx], esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4073a2
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
push ecx
push edx
call fcn.00406f90
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 0
call fcn.004066f0
jmp 0x40779d
call fcn.004068d0
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0040dfc0
mov eax, 0x80041700
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040e836
mov esp, ebp
pop ebp
ret 0xc