Function at 0x40ba10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x49a53f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6cb4ec]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [ebp + 0x28], 0
mov ecx, dword [ebx + 0x24]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
call fcn.0047d740
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0040d280
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040d030
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_QString::toStdString_void_]
mov edi, eax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_QString::toStdString_void_]
mov esi, eax
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_QString::toStdString_void_]
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x40bae2
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x40baea
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40baf2
mov eax, dword [eax]
push edi
push esi
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push str.enter_DA_mode_START__flash_DA_mode:__s__tflash_XML:__s__truntime_parameter_XML:_n_s
push eax
mov dword [ebp - 0x20], str.Connection::conn_da
mov dword [ebp - 0x1c], str.....GUIConnConnection.cpp
mov dword [ebp - 0x18], 0x84
call fcn.0041cd40
mov edx, dword [ebp + 0x8c]
add esp, 0x14
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x40bb5f
mov ecx, dword [ebp + 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bb55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bb55
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00498598
add esp, 8
mov edx, dword [ebp + 0x74]
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 0xf
mov byte [ebp + 0x78], 0
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x40bbb1
mov ecx, dword [ebp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bba7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bba7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00498598
add esp, 8
mov edx, dword [ebp + 0x5c]
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 0xf
mov byte [ebp + 0x60], 0
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40bbfd
mov ecx, dword [ebp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bbf3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00498598
add esp, 8
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0x2c]
call fcn.0041b0d0
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x3c], esi
test esi, esi
js 0x40becb
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push str.enter_DA_mode_successed.
push eax
mov dword [ebp - 0x20], str.Connection::conn_da
mov dword [ebp - 0x1c], str.....GUIConnConnection.cpp
mov dword [ebp - 0x18], 0x8f
call fcn.0041cd40
push 0x10
call fcn.0049888b
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40bc7f
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_DASLACmdHandler_.0
mov dword [edi + 0xc], vtable.DASLACmdHandler.0
jmp 0x40bc81
xor edi, edi
lea esi, [edi + 0xc]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
sub esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebx + 4]
push esp
call fcn.0040c3c0
mov ecx, esi
call fcn.00407550
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push str.get_DA_HW_info_start
push eax
mov dword [ebp - 0x20], str.Connection::conn_da
mov dword [ebp - 0x1c], str.....GUIConnConnection.cpp
mov dword [ebp - 0x18], 0xa5
call fcn.0041cd40
add esp, 8
lea eax, [ebp - 0x68]
push eax
sub esp, 8
mov edx, esp
mov dword [ebp - 0x10], esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40bcf2
lock inc dword [eax + 4]
mov eax, dword [ebx + 0x1c]
mov dword [edx], eax
mov eax, dword [ebx + 0x20]
mov dword [edx + 4], eax
sub esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebx + 4]
push esp
call fcn.0040c3c0
mov byte [ebp - 4], 9
call fcn.004057e0
mov ecx, dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
add esp, 0x14
push eax
call fcn.00406700
mov ebx, eax
push 0
push 0x6cbadc
push 0x6cb7f4
push 0
push dword [ebx]
mov byte [ebp - 4], 0xb
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bd5a
mov esi, dword [ebx + 4]
test esi, esi
je 0x40bd61
lock inc dword [esi + 4]
mov esi, dword [ebx + 4]
jmp 0x40bd61
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40bd96
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x40bd96
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x40bd96
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.00478a30
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.Qt5Core.dll__toLocal8Bit_QString__QGBE_AVQByteArray__XZ]
mov ecx, eax
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], str.Connection::conn_da
mov dword [ebp - 0x1c], str.....GUIConnConnection.cpp
mov dword [ebp - 0x18], 0xab
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea eax, [ebp - 0x24]
push str.get_DA_HW_info_successed__XML:__s
push eax
call fcn.0041cd40
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, dword [ebp - 0x38]
lea edx, [ebp]
push edx
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp + 0x24]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x40be3c
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x40be3c
mov edx, dword [ecx]
lea eax, [ebp]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x24], 0
lea ecx, [ebp - 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
test esi, esi
je 0x40be68
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40be68
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40be68
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x40be8a
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40be8a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40be8a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x34]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.00498857
lea esp, [ebp + 0x94]
pop ebp
ret
push dword [ebx + 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.0041b310
add esp, 8
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405780
add esp, 4
mov ecx, eax
call dword [sym.imp.Qt5Core.dll__toLocal8Bit_QString__QGBE_AVQByteArray__XZ]
mov ecx, eax
mov byte [ebp - 4], 8
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
push esi
push str.enter_DA_mode_failed__error_code:__d__error_msg:__s.
push 0x8b
push str.....GUIConnConnection.cpp
push str.Connection::conn_da
push 4
lea ecx, [ebp - 0x24]
call fcn.00405540
push eax
call fcn.0041cd40
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
push 0x8d
push str.....GUIConnConnection.cpp
push str.Connection::conn_da
lea eax, [ebp - 0x14]
push eax
push esi
lea ecx, [ebp + 0x40]
call fcn.0041a230
push 0x6a5258
lea eax, [ebp + 0x40]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3