Function at 0x40be90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x49c69d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6cd4bc]
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 - 0x18], ebx
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x64]
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.0047f1a0
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0040d6d0
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040d480
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 0x40bf62
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x40bf6a
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40bf72
mov eax, dword [eax]
push edi
push esi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 2
push str.enter_DA_mode_START__flash_DA_mode:__s__tflash_XML:__s__truntime_parameter_XML:_n_s
push eax
mov dword [ebp - 0x24], str.Connection::conn_da
mov dword [ebp - 0x20], str.....GUIConnConnection.cpp
mov dword [ebp - 0x1c], 0x86
call fcn.0041e840
mov edx, dword [ebp + 0x8c]
add esp, 0x14
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x40bfdf
mov ecx, dword [ebp + 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bfd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049a730
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 0x40c031
mov ecx, dword [ebp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c027
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c027
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049a730
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 0x40c07d
mov ecx, dword [ebp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c073
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c073
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049a730
add esp, 8
lea eax, [ebp - 0x64]
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.0041cbc0
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x38], esi
test esi, esi
js 0x40c305
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 2
push str.enter_DA_mode_successed.
push eax
mov dword [ebp - 0x24], str.Connection::conn_da
mov dword [ebp - 0x20], str.....GUIConnConnection.cpp
mov dword [ebp - 0x1c], 0x91
call fcn.0041e840
push 0x10
call fcn.0049aa23
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40c0ff
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 0x40c101
xor edi, edi
lea esi, [edi + 0xc]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
sub esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebx + 4]
push esp
call fcn.0040c810
mov ecx, esi
call fcn.00407a60
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push str.get_DA_HW_info_start
push eax
mov dword [ebp - 0x24], str.Connection::conn_da
mov dword [ebp - 0x20], str.....GUIConnConnection.cpp
mov dword [ebp - 0x1c], 0x97
call fcn.0041e840
add esp, 8
lea eax, [ebp - 0x64]
push eax
sub esp, 8
mov edx, esp
mov dword [ebp - 0x14], esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40c172
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.0040c810
mov byte [ebp - 4], 9
call fcn.00405c60
mov ecx, dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
add esp, 0x14
push eax
call fcn.00406bb0
mov ebx, eax
push 0
push 0x6cda80
push 0x6cd75c
push 0
push dword [ebx]
mov byte [ebp - 4], 0xb
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40c1da
mov esi, dword [ebx + 4]
test esi, esi
je 0x40c1e1
lock inc dword [esi + 4]
mov esi, dword [ebx + 4]
jmp 0x40c1e1
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x40c216
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x40c216
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x40c216
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0047a3d0
mov ecx, dword [ebp - 0x18]
add ecx, 0x230
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp - 0x18]
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], 0xd
test ecx, ecx
je 0x40c27f
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax + 8]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x40c27f
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
test esi, esi
je 0x40c2a2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40c2a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40c2a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x40c2c4
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40c2c4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40c2c4
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 - 0x38]
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.0049a9ef
lea esp, [ebp + 0x94]
pop ebp
ret
push dword [ebx + 0x2c]
lea eax, [ebp - 0x10]
push eax
call fcn.0041ce00
add esp, 8
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405c00
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 0x8d
push str.....GUIConnConnection.cpp
push str.Connection::conn_da
push 4
lea ecx, [ebp - 0x28]
call fcn.004059c0
push eax
call fcn.0041e840
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
push 0x8f
push str.....GUIConnConnection.cpp
push str.Connection::conn_da
lea eax, [ebp - 0x10]
push eax
push esi
lea ecx, [ebp + 0x40]
call fcn.0041bd20
push 0x6a84d0
lea eax, [ebp + 0x40]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3