Function at 0x40de90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x43c]
sub esp, 0x43c
push 0xffffffffffffffff
push 0x58befd
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x62d414]
xor eax, ebp
mov dword [ebp + 0x438], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x40], esi
mov edi, str.CTunnellerDevLink::GetRegistryConfig
mov dword [ebp - 0x1c], edi
push str..TunnellerDevLink.cpp
push 0x1081
push edi
mov ecx, dword [0x63dd80]
call fcn.0041ac10
mov byte [ebp - 0x11], 0
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [ebp - 4], ebx
mov eax, 0x100
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], eax
push 0x44c5f0
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e48e
lea ecx, [ebp - 0x28]
push ecx
push str.CLSID_
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e48e
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00405e90
mov byte [ebp - 4], 2
push ebx
push 0x5d9bec
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_first_of_wchar_t_const___unsigned_int_const]
cmp eax, ebx
jle 0x40dfb5
push eax
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40dfc1
lea eax, [ebp + 4]
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e477
mov byte [ebp - 0x12], al
mov edi, dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
mov ebx, dword [sym.imp.MSVCR90.dll__wtoi]
jmp 0x40dff0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp + 0x238]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp + 0x38]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40e304
lea edx, [ebp + 0x38]
push edx
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5d9bf0
lea eax, [ebp + 0x1c]
push eax
call edi
add esp, 8
test al, al
je 0x40e061
lea ecx, [ebp + 0x238]
push ecx
lea ecx, [esi + 0x2b8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.Port
lea edx, [ebp + 0x1c]
push edx
call edi
add esp, 8
test al, al
je 0x40e099
lea eax, [ebp + 0x238]
push eax
call ebx
add esp, 4
mov word [esi + 0x2d4], ax
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.TruncateRawHDATimes
lea ecx, [ebp + 0x1c]
push ecx
call edi
add esp, 8
test al, al
je 0x40e104
lea edx, [ebp + 0x238]
push edx
call ebx
add esp, 4
test eax, eax
jne 0x40e0c3
mov byte [esi + 0x2a4], al
jmp 0x40e0ca
mov byte [esi + 0x2a4], 1
cmp byte [esi + 0x2a4], 0
je 0x40e2f1
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.Truncate_read_raw_start_end_times_enabled.
mov edx, dword [ebp - 0x1c]
push edx
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x10
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.TruncateProcessedHDATimes
lea ecx, [ebp + 0x1c]
push ecx
call edi
add esp, 8
test al, al
je 0x40e16f
lea edx, [ebp + 0x238]
push edx
call ebx
add esp, 4
test eax, eax
jne 0x40e12e
mov byte [esi + 0x2a5], al
jmp 0x40e135
mov byte [esi + 0x2a5], 1
cmp byte [esi + 0x2a5], 0
je 0x40e2f1
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.Truncate_read_processed_start_end_times_enabled.
mov edx, dword [ebp - 0x1c]
push edx
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x10
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.Timeout
lea ecx, [ebp + 0x1c]
push ecx
call edi
add esp, 8
test al, al
je 0x40e1a6
lea edx, [ebp + 0x238]
push edx
call ebx
add esp, 4
mov dword [esi + 0x29c], eax
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.CommTimeout
lea eax, [ebp + 0x1c]
push eax
call edi
add esp, 8
test al, al
je 0x40e1dd
lea ecx, [ebp + 0x238]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x2a0], eax
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.Retries
lea edx, [ebp + 0x1c]
push edx
call edi
add esp, 8
test al, al
je 0x40e214
lea eax, [ebp + 0x238]
push eax
call ebx
add esp, 4
mov dword [esi + 0x2a8], eax
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.RetryForever
lea ecx, [ebp + 0x1c]
push ecx
call edi
add esp, 8
test al, al
je 0x40e251
lea edx, [ebp + 0x238]
push edx
call ebx
add esp, 4
test eax, eax
jle 0x40e2f1
mov byte [ebp - 0x12], 1
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.UseCompression
lea eax, [ebp + 0x1c]
push eax
call edi
add esp, 8
test al, al
je 0x40e28d
lea ecx, [ebp + 0x238]
push ecx
call ebx
add esp, 4
test eax, eax
setne dl
mov byte [esi + 0x270], dl
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.LocalIPAddress
lea eax, [ebp + 0x1c]
push eax
call edi
add esp, 8
test al, al
je 0x40e2c8
lea ecx, [esi + 0x274]
push ecx
lea edx, [ebp + 0x238]
push edx
call fcn.0051dd50
add esp, 8
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
push str.AERefreshOnConnect
lea eax, [ebp + 0x1c]
push eax
call edi
add esp, 8
test al, al
je 0x40e2f1
lea ecx, [ebp + 0x238]
push ecx
call ebx
add esp, 4
test eax, eax
setne dl
mov byte [esi + 0x36c], dl
inc dword [ebp - 0x24]
mov eax, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40dff0
cmp byte [ebp - 0x12], 0
je 0x40e314
mov dword [esi + 0x2a8], 0xffffffff
push 0x5d1aa8
lea eax, [esi + 0x2b8]
push eax
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 8
test al, al
je 0x40e468
cmp word [esi + 0x2d4], 0
jbe 0x40e468
lea ecx, [ebp - 0x18]
push ecx
push str.TunnellerID
mov edx, dword [ebp - 0x20]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
call edi
test eax, eax
jne 0x40e3d6
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x238]
push ecx
push 0x5d1aa8
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x40e3cd
lea eax, [ebp + 0x238]
push eax
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [ebp + 0x30]
push ecx
push 0x5d9e00
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
inc eax
mov edx, dword [ebp + 0x30]
push edx
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x34c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x40e462
lea edx, [ebp - 0x18]
push edx
push str.ProgID
mov eax, dword [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x40e468
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp + 0x238]
push edx
push 0x5d1aa8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x40e45e
lea ecx, [ebp + 0x238]
push ecx
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov edx, dword [ebp + 0x30]
push edx
push 0x5d9e00
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
inc eax
mov ecx, dword [ebp + 0x30]
push ecx
push eax
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x34c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov dword [ebp - 4], ebx
jmp 0x40e4e6
cmp dword [esi + 0x2a0], ebx
jne 0x40e4fa
mov ecx, dword [esi + 0x29c]
mov dword [esi + 0x2a0], ecx
mov ebx, 1
cmp dword [esi + 0x2a0], ebx
jae 0x40e50d
mov dword [esi + 0x2a0], ebx
mov ecx, dword [esi + 0x29c]
cmp dword [esi + 0x2a0], ecx
jbe 0x40e521
mov dword [esi + 0x2a0], ecx
cmp ecx, dword [0x68cda4]
jne 0x40e583
mov edx, dword [esi + 0x2a0]
cmp edx, dword [0x68cda8]
jne 0x40e583
mov eax, dword [esi + 0x2a8]
cmp eax, dword [0x68cdbc]
jne 0x40e583
mov dx, word [esi + 0x2d4]
cmp dx, word [0x68cdac]
jne 0x40e583
mov al, byte [esi + 0x270]
cmp al, byte [0x68cdae]
jne 0x40e583
mov edx, dword [esi + 0x240]
cmp edx, dword [0x68cdb0]
jne 0x40e583
mov al, byte [esi + 0x36c]
cmp al, byte [0x68cdaf]
je 0x40e6b6
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push ecx
push str.Option_Processing_timeout______d
push edi
push ebx
push eax
mov eax, dword [edx]
call eax
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
mov edx, dword [esi + 0x2a0]
push edx
push str.Option_Communication_timeout___d
push edi
push ebx
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
mov edx, dword [esi + 0x2a8]
push edx
push str.Option_Retries_________________d
push edi
push ebx
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
movzx edx, word [esi + 0x2d4]
push edx
push str.Option_Port_number_____________d
push edi
push ebx
push eax
mov eax, dword [ecx]
call eax
add esp, 0x50
cmp byte [esi + 0x270], 0
mov ecx, 0x5d9f24
jne 0x40e5fc
mov ecx, 0x5d9f30
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push ecx
push str.Option_UseCompression__________s
push edi
push ebx
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [0x63dd80]
mov ebx, dword [ecx]
mov eax, 0x10624dd3
mul dword [esi + 0x240]
shr edx, 6
push edx
push str.Option_MaxCachedItemIdAge______d
push edi
push 1
push ecx
mov ecx, dword [ebx]
call ecx
add esp, 0x28
cmp byte [esi + 0x36c], 0
mov ecx, 0x5d9f24
jne 0x40e64a
mov ecx, 0x5d9f30
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push ecx
push str.Option_AE_Refresh_On_Connect___s
push edi
push 1
push eax
mov eax, dword [edx]
call eax
add esp, 0x14
mov ecx, dword [esi + 0x29c]
mov dword [0x68cda4], ecx
mov edx, dword [esi + 0x2a0]
mov dword [0x68cda8], edx
mov eax, dword [esi + 0x2a8]
mov dword [0x68cdbc], eax
mov cx, word [esi + 0x2d4]
mov word [0x68cdac], cx
mov dl, byte [esi + 0x270]
mov byte [0x68cdae], dl
mov eax, dword [esi + 0x240]
mov dword [0x68cdb0], eax
mov cl, byte [esi + 0x36c]
mov byte [0x68cdaf], cl
mov bl, byte [ebp - 0x11]
movzx edx, bl
push edx
push str.bRetVal
push str..TunnellerDevLink.cpp
push 0x115c
push edi
mov ecx, dword [0x63dd80]
call fcn.0041aca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x438]
xor ecx, ebp
call fcn.0051ed00
add ebp, 0x43c
mov esp, ebp
pop ebp
ret