Function at 0x40c2d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x6b0]
sub esp, 0x6b0
push 0xffffffffffffffff
push 0x5924cf
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x62d414]
xor eax, ebp
mov dword [ebp + 0x6ac], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0xc8], ebx
mov eax, dword [ebp + 0x6b8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], str.CTunnellerDevLink::ReConnect
push str..TunnellerDevLink.cpp
push 0xc24
push str.CTunnellerDevLink::ReConnect
mov ecx, dword [0x63dd80]
call fcn.0041ac10
xor esi, esi
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x14], esi
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 - 0x4c], eax
mov dword [ebp - 4], esi
mov cl, byte [ebx + 0x368]
test cl, cl
je 0x40d2f0
mov dword [ebp - 0x3c], esi
push 0x200
push esi
lea edx, [ebp + 0x238]
push edx
call sub.MSVCR90.dll_memset
push 0x200
push esi
lea eax, [ebp + 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebx + 0x2cc]
mov dword [ebp - 0x110], eax
cmp eax, 0x100
jae 0x40c49c
lea eax, [ebx + 0x2b8]
mov dword [ebp - 0x130], eax
cmp dword [eax + 0x18], 8
jb 0x40c3c7
mov eax, dword [eax + 4]
jmp 0x40c3ca
add eax, 4
mov dword [ebp - 0xf0], eax
push eax
push 0x100
lea ecx, [ebp + 0x238]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
lea edi, [ebp + 0x438]
lea edx, [ebp + 0x238]
call fcn.00418820
mov edx, edi
push edx
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x40c49c
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xfc], eax
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
lea edi, [ebp + 0x238]
mov edx, dword [esi]
call fcn.00418850
push 0xff
mov edx, dword [esi]
push edx
push 0x100
lea eax, [ebp + 0x438]
push eax
call dword [sym.imp.MSVCR90.dll_strncpy_s]
add esp, 0x10
lea ecx, [ebp + 0x438]
push ecx
call sub.WS2_32.dll_inet_addr
cmp eax, dword [ebp - 0x3c]
jne 0x40c49c
lea edx, [ebp + 0x438]
push edx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc4], eax
push 2
push 4
lea eax, [ebp - 0xc4]
push eax
call sub.WS2_32.dll_gethostbyaddr
test eax, eax
je 0x40c49c
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c481
sub eax, esi
cmp eax, 0x100
jae 0x40c49c
lea edi, [ebp + 0x238]
call fcn.00418850
push 0xff
lea ecx, [ebp + 0x438]
push ecx
call sub.WS2_32.dll_gethostname
lea edx, [ebp + 0x438]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x100], eax
xor esi, esi
cmp eax, esi
je 0x40c4df
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ecx]
mov dword [ebp - 0x48], edx
lea edi, [ebp + 0x38]
mov edx, dword [eax]
call fcn.00418850
xor eax, eax
mov dword [ebp - 0xdc], eax
cmp eax, 0xc
jge 0x40c4fd
mov dword [ebp + eax*8 - 0xb8], esi
mov dword [ebp + eax*8 - 0xb4], esi
inc eax
jmp 0x40c4e1
push 0xe
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
call esi
add esp, 4
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x40c5b0
lea eax, [ebx + 0x34c]
mov dword [ebp - 0x104], eax
cmp dword [eax + 0x18], 8
jb 0x40c52f
mov eax, dword [eax + 4]
jmp 0x40c532
add eax, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c535
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov dword [ebp - 0x2c], edi
lea eax, [edi + edi]
push eax
call esi
add esp, 4
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x40c5a9
push str.ProgID
push 7
mov ecx, dword [ebp - 0xb8]
push ecx
mov esi, dword [sym.imp.MSVCR90.dll_wcscpy_s]
call esi
add esp, 0xc
lea eax, [ebx + 0x34c]
mov dword [ebp - 0x124], eax
cmp dword [eax + 0x18], 8
jb 0x40c58d
mov eax, dword [eax + 4]
jmp 0x40c590
add eax, 4
push eax
push edi
mov edx, dword [ebp - 0xb4]
push edx
call esi
add esp, 0xc
mov edi, dword [ebp - 0x1c]
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
jmp 0x40c5d1
push str.FATAL:_Failed_to_allocate_connect_option_0__value.
jmp 0x40c5b5
push str.FATAL:_Failed_to_allocate_connect_option_0__name.
mov edi, dword [ebp - 0x1c]
push edi
mov eax, dword [0x63dd80]
push 1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x18
call esi
add esp, 4
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x40c6bd
push 0xa
push 5
lea eax, [ebp + 0x6a0]
push eax
push 2
call dword [sym.imp.MSVCR90.dll__itow_s]
add esp, 0x10
lea ecx, [ebp + 0x6a0]
push ecx
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_wchar_t_const__]
mov byte [ebp - 4], 1
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40c61c
lea eax, [ebp + 0x20]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c620
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
mov dword [ebp - 0x2c], esi
lea edx, [esi + esi]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0xac], eax
test eax, eax
je 0x40c690
push str.OPCCategory
push 0xc
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40c66f
lea eax, [ebp + 0x20]
push eax
push esi
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov byte [ebp - 4], 0
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_]
jmp 0x40c6db
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_1__value.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
add esp, 0x10
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
mov byte [ebp - 4], 0
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_]
jmp 0x40c6db
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_1__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x10
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
push 0xa
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x40c79b
lea eax, [ebx + 0x40c]
mov dword [ebp - 0x10c], eax
cmp dword [eax + 0x18], 8
jb 0x40c70b
mov eax, dword [eax + 4]
jmp 0x40c70e
add eax, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c711
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
mov dword [ebp - 0x2c], esi
lea eax, [esi + esi]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x40c794
push str.User
push 5
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebx + 0x40c]
mov dword [ebp - 0x114], eax
cmp dword [eax + 0x18], 8
jb 0x40c77d
mov eax, dword [eax + 4]
push eax
push esi
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
jmp 0x40c7b9
add eax, 4
push eax
push esi
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
jmp 0x40c7b9
push str.FATAL:_Failed_to_allocate_connect_option_2__value.
jmp 0x40c7a0
push str.FATAL:_Failed_to_allocate_connect_option_2__name.
push edi
mov eax, dword [0x63dd80]
push 1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x1e
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
call esi
add esp, 4
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x40c838
push 0x28
call esi
add esp, 4
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x40c831
push str.LocalIPaddress
push 0xf
mov eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov eax, dword [ebp - 0x48]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
and edx, 0xff
push edx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
push ecx
movzx edx, al
push edx
push str._d._d._d._d
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
jmp 0x40c856
push str.FATAL:_Failed_to_allocate_connect_option_3__value.
jmp 0x40c83d
push str.FATAL:_Failed_to_allocate_connect_option_3__name.
push edi
mov eax, dword [0x63dd80]
push 1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x14
call esi
add esp, 4
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40c8b1
push 0x1fe
call esi
add esp, 4
mov dword [ebp - 0x94], eax
test eax, eax
je 0x40c8aa
push str.LocalName
push 0xa
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea ecx, [ebp + 0x38]
push ecx
push 0xff
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0x18
jmp 0x40c8cf
push str.FATAL:_Failed_to_allocate_connect_option_4__value.
jmp 0x40c8b6
push str.FATAL:_Failed_to_allocate_connect_option_4__name.
push edi
mov eax, dword [0x63dd80]
push 1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x2a
call esi
add esp, 4
mov dword [ebp - 0x90], eax
test eax, eax
je 0x40c958
push 0x1fe
call esi
add esp, 4
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x40c942
push 0xa
push 0x23
lea eax, [ebp + 0x658]
push eax
mov ecx, dword [ebx + 0x2a0]
push 0
push ecx
mov esi, dword [sym.imp.MSVCR90.dll__ui64tow_s]
call esi
push str.CommunicationTimeout
push 0x15
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea eax, [ebp + 0x658]
push eax
push 0xff
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0x2c
jmp 0x40c97c
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_5__value.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
jmp 0x40c96c
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_5__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
mov esi, dword [sym.imp.MSVCR90.dll__ui64tow_s]
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x2a
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x88], eax
test eax, eax
je 0x40ca07
push 0x1fe
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x84], eax
test eax, eax
je 0x40c9f1
push 0xa
push 0x23
lea eax, [ebp + 0x610]
push eax
mov ecx, dword [ebx + 0x2a8]
push 0
push ecx
call esi
push str.CommunicationRetries
push 0x15
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea eax, [ebp + 0x610]
push eax
push 0xff
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0x2c
jmp 0x40ca25
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_6__value.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
jmp 0x40ca1b
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_6__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x1a
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x80], eax
test eax, eax
je 0x40caa4
push 0x1fe
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x40ca8e
push 0xa
push 0x23
lea eax, [ebp + 0x538]
push eax
mov ecx, dword [ebx + 0x258]
push 0
push ecx
call esi
push str.ConnectDelay
push 0xd
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea eax, [ebp + 0x538]
push eax
push 0xff
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0x2c
jmp 0x40cac2
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_7__value.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
jmp 0x40cab8
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_7__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x24
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40cb41
push 0x1fe
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x74], eax
test eax, eax
je 0x40cb2b
push 0xa
push 0x23
lea eax, [ebp + 0x580]
push eax
mov ecx, dword [ebx + 0x29c]
push 0
push ecx
call esi
push str.ProcessingTimeout
push 0x12
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea eax, [ebp + 0x580]
push eax
push 0xff
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0x2c
jmp 0x40cb5f
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_8__value.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
jmp 0x40cb55
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_8__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x1c
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x70], eax
test eax, eax
je 0x40cbdc
push 0x1fe
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x40cbc6
push 0xa
push 0x23
lea eax, [ebp + 0x5c8]
push eax
mov ecx, dword [ebx + 0x248]
push 0
push ecx
call esi
push str.ReconnectTime
push 0xe
mov edx, dword [ebp - 0x70]
push edx
mov esi, dword [sym.imp.MSVCR90.dll_wcscpy_s]
call esi
lea eax, [ebp + 0x5c8]
push eax
push 0xff
mov ecx, dword [ebp - 0x6c]
push ecx
call esi
add esp, 0x2c
jmp 0x40cbfa
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_9__value.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
jmp 0x40cbf0
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_9__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
push 0x1e
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
call esi
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
je 0x40cc41
push 0x28
call esi
add esp, 4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x40cc3a
push str.BoundIPaddress
push 0xf
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x64]
mov word [edx], cx
jmp 0x40cc5f
push str.FATAL:_Failed_to_allocate_connect_option_10__value.
jmp 0x40cc46
push str.FATAL:_Failed_to_allocate_connect_option_10__name.
push edi
mov eax, dword [0x63dd80]
push 1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call edx
mov dword [ebp - 0x14], reloc.WS2_32.dll_closesocket
add esp, 0x10
mov dword [ebp - 0x11c], 0xa
push 0x14
call esi
add esp, 4
mov dword [ebp - 0x60], eax
test eax, eax
je 0x40cce4
push 0x1fe
call esi
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x40ccc8
push str.BoundName
push 0xa
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x5c]
mov word [edx], cx
cmp dword [ebp - 0x14], 0x80000003
je 0x40d2ae
lea eax, [ebx + 0x2b8]
mov dword [ebp - 0xf8], eax
cmp dword [eax + 0x18], 8
jb 0x40cd00
mov ecx, dword [eax + 4]
jmp 0x40cd03
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_11__value.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x10
jmp 0x40d2ae
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.FATAL:_Failed_to_allocate_connect_option_11__name.
push edi
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x10
jmp 0x40d2ae
lea ecx, [eax + 4]
mov eax, dword [0x63dd80]
mov edx, dword [eax]
movzx esi, word [ebx + 0x2d4]
push esi
push ecx
mov ecx, dword [ebx + 0x370]
push ecx
push str.ReOpening_session__0x_x_to___ls:_d_
push edi
push 3
push eax
mov edx, dword [edx]
call edx
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x50], eax
mov ecx, dword [ebx + 0x288]
mov dword [ebp - 0x108], ecx
cmp ecx, 7
jbe 0x40cd6d
lea eax, [ebx + 0x274]
mov dword [ebp - 0xf4], eax
cmp dword [eax + 0x18], 0x10
jb 0x40cd57
mov eax, dword [eax + 4]
jmp 0x40cd5a
add eax, 4
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x40cd6d
xor eax, eax
mov dword [ebp - 0x50], eax
lea esi, [ebx + 0x2b8]
mov dword [ebp - 0x118], esi
cmp dword [esi + 0x18], 8
jb 0x40cd84
mov ecx, dword [esi + 4]
jmp 0x40cd87
lea ecx, [esi + 4]
push eax
mov eax, dword [ebx + 0x2a0]
push eax
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0xb8]
push eax
lea edx, [ebx + 0x2d6]
push edx
mov eax, dword [ebx + 0x2a8]
push eax
mov edx, dword [ebx + 0x29c]
push edx
movzx eax, word [ebx + 0x2d4]
push eax
push ecx
mov ecx, dword [ebx + 0x370]
call fcn.00445100
add esp, 0x24
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x30]
test eax, eax
jne 0x40ce00
mov dword [ecx], eax
cmp dword [esi + 0x18], 8
jb 0x40cde0
mov esi, dword [esi + 4]
jmp 0x40cde3
add esi, 4
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push esi
push str.ERROR:_Failed_to_reconnect_to_Tunneller_server:___ls_.
push edi
push 1
push eax
mov eax, dword [edx]
call eax
add esp, 0x14
jmp 0x40d2ae
mov byte [ebp - 0x15], 1
cmp dword [ecx], 1
jne 0x40d2ae
mov dword [ebp - 0x128], esi
cmp dword [esi + 0x18], 8
jb 0x40ce1e
mov ecx, dword [esi + 4]
jmp 0x40ce21
lea ecx, [esi + 4]
mov eax, dword [0x63dd80]
mov edx, dword [eax]
mov esi, dword [ebx + 0x370]
push esi
movzx esi, word [ebx + 0x2d4]
push esi
push ecx
push str.Connected_to_Tunneller_Server___ls:_d_:_Session__08X_
mov ecx, dword [ebp - 0x1c]
push ecx
push 2
push eax
mov edx, dword [edx]
call edx
add esp, 0x1c
mov esi, dword [ebx + 0x300]
call fcn.00405f70
lea eax, [ebx + 0x39c]
push eax
call dword [sym.imp.ole32.dll_CoFileTimeNow]
mov byte [ebx + 0x369], 0
mov byte [ebx + 0x59], 1
xor esi, esi
cmp dword [ebx + 0x25c], esi
jbe 0x40d29f
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 0x124]
mov eax, dword [eax]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
mov ecx, dword [ebx + 0x10c]
mov dword [ebp - 0x38], ecx
jmp 0x40cea0
mov eax, dword [ebx + 0x124]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], eax
mov edx, dword [ebx + 0x10c]
mov dword [ebp - 0xd8], edx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00412220
test al, al
je 0x40cfe9
push esi
push 0x63c34c
push 0x63c32c
push esi
lea ecx, [ebp - 0x38]
call fcn.00420f80
mov ecx, dword [eax + 0x1c]
push ecx
call sub.MSVCR90.dll___RTDynamicCast
add esp, 0x14
mov esi, eax
test esi, esi
je 0x40cfa2
cmp dword [esi + 0xc8], 0
ja 0x40cfda
cmp dword [ebp - 0x24], 0
jne 0x40cf20
mov edx, dword [ebx]
push 0
mov ecx, ebx
mov eax, dword [edx + 0x74]
call eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.0044d5a0
mov byte [ebp - 4], 2
push 0x60
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x40cf63
push esi
call fcn.0044e090
push eax
push 0
push 0
lea edx, [ebp]
push edx
mov ecx, edi
call fcn.004603c0
mov edi, eax
jmp 0x40cf65
xor edi, edi
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [eax + 4]
call edx
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
call edx
push esi
mov ecx, edi
call fcn.00460670
push edi
mov esi, dword [ebp - 0x28]
call fcn.0044c8a0
mov byte [ebx + 0x59], 1
inc dword [ebp - 0x24]
mov byte [ebp - 4], 0
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 edi, esi
mov eax, dword [ebp - 0x24]
test eax, eax
jbe 0x40cfda
xor edx, edx
div dword [ebx + 0x25c]
test edx, edx
jne 0x40cfda
mov esi, edi
call fcn.0044fa10
push 1
call fcn.0044fae0
push 0
call fcn.0044fa80
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
call fcn.0047dfe0
xor esi, esi
jmp 0x40cea0
mov eax, dword [ebx + 0x394]
mov eax, dword [eax]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x37c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x394]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebx + 0x37c]
mov dword [ebp - 0xec], ecx
lea esi, [ebp - 0xec]
lea edi, [ebp - 0x44]
call fcn.00405890
test al, al
je 0x40d07c
mov edx, dword [ebx]
push 0
mov ecx, ebx
mov eax, dword [edx + 0xb0]
call eax
mov edi, eax
test edi, edi
je 0x40d072
mov eax, dword [ebx + 0x398]
push eax
mov ecx, edi
call fcn.00461320
lea esi, [ebp - 0x44]
call fcn.00432190
mov eax, dword [eax + 4]
test eax, eax
je 0x40d06b
mov dword [edi + 0xb4], eax
mov ecx, edi
call fcn.00463fa0
lea esi, [ebp - 0x44]
call fcn.0046cc30
jmp 0x40d000
lea eax, [ebx + 0x37c]
call fcn.00410da0
xor edi, edi
cmp dword [ebp - 0x24], edi
jbe 0x40d0af
mov esi, dword [ebp - 0x28]
call fcn.0044fa10
push 1
call fcn.0044fae0
push edi
call fcn.0044fa80
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x24], edi
call fcn.0042c790
mov dword [ebx + 0x450], eax
mov dword [ebx + 0x454], edx
lea ecx, [ebx + 0x430]
call fcn.00404480
cmp dword [ebx + 0x128], 1
jbe 0x40d29b
cmp byte [ebx + 0x59], 0
je 0x40d29b
mov eax, dword [ebx + 0x124]
mov eax, dword [eax]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov ecx, dword [ebx + 0x10c]
mov dword [ebp - 0x58], ecx
lea esp, [esp]
mov eax, dword [ebx + 0x124]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], eax
mov edx, dword [ebx + 0x10c]
mov dword [ebp - 0xc0], edx
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x58]
call fcn.00412220
test al, al
je 0x40d29b
push edi
push 0x63c34c
push 0x63c32c
push edi
lea esi, [ebp - 0x58]
call fcn.00432190
mov ecx, dword [eax + 0x1c]
push ecx
call sub.MSVCR90.dll___RTDynamicCast
add esp, 0x14
mov esi, eax
cmp esi, edi
je 0x40d28c
cmp dword [esi + 0x108], edi
je 0x40d28c
lea edx, [ebp - 0x1a0]
push edx
mov ecx, esi
call fcn.00401fb0
mov byte [ebp - 4], 4
lea edi, [ebx + 0x430]
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], ecx
mov ecx, dword [edi]
mov dword [ebp - 0xd0], ecx
lea edx, [ebp - 0xd0]
push edx
push eax
lea eax, [ebp - 0x140]
push eax
mov ecx, edi
call fcn.0047d3f0
mov ecx, eax
call fcn.0042fe90
mov byte [ebp - 0x1d], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
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 byte [ebp - 0x1d], 0
je 0x40d28c
lea ecx, [ebp - 0x168]
push ecx
mov ecx, esi
call fcn.00401fb0
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 8
jb 0x40d1f5
mov ecx, dword [eax + 4]
jmp 0x40d1f8
lea ecx, [eax + 4]
mov eax, dword [0x63dd80]
mov edx, dword [eax]
mov ebx, dword [ebx + 0x370]
push ebx
push ecx
push str.Adding_item__ls_to_add_operation_pending_items_map_on_session_0x_08x.
mov ecx, dword [ebp - 0x1c]
push ecx
push 3
push eax
mov edx, dword [edx]
call edx
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
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 dword [ebp - 0xe4], esi
lea eax, [ebp - 0x184]
push eax
mov ecx, esi
call fcn.00401fb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe4]
push ecx
push eax
lea edx, [ebp - 0x1c0]
push edx
call fcn.00412250
mov byte [ebp - 4], 7
push eax
push edi
lea ebx, [ebp - 0x14c]
call fcn.004108f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c0]
call fcn.0046ddb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x184]
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 ebx, dword [ebp - 0xc8]
lea ecx, [ebp - 0x58]
call fcn.0047dfe0
xor edi, edi
jmp 0x40d100
mov byte [ebx + 0x5c], 1
mov byte [ebx + 0x59], 1
mov esi, dword [ebx + 0x300]
call fcn.00405f70
xor edi, edi
mov dword [ebp - 0xe0], edi
mov esi, dword [sym.imp.MSVCR90.dll_free]
lea esp, [esp]
cmp edi, 0xc
jge 0x40d2f0
mov eax, dword [ebp + edi*8 - 0xb8]
test eax, eax
je 0x40d2d6
push eax
call esi
add esp, 4
mov eax, dword [ebp + edi*8 - 0xb4]
test eax, eax
je 0x40d2e7
push eax
call esi
add esp, 4
inc edi
mov dword [ebp - 0xe0], edi
jmp 0x40d2c0
mov eax, dword [ebp - 0x4c]
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], 0xffffffff
mov bl, byte [ebp - 0x15]
movzx ecx, bl
push ecx
push str.bRetVal
push str..TunnellerDevLink.cpp
push 0xe59
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [0x63dd80]
call fcn.0041aca0
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 + 0x6ac]
xor ecx, ebp
call fcn.0051ed00
add ebp, 0x6b0
mov esp, ebp
pop ebp
ret 4