Function at 0x418340
Capabilities:
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4337a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x43e460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov esi, ecx
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xf1], dl
cmp ebx, 4
jb case.0x41839f.2
mov dword [eax], edx
mov eax, dword [edi]
dec eax
cmp eax, 0xbf
ja case.0x41839f.2
movzx eax, byte [eax + 0x4196b4]
jmp dword [eax*4 + 0x419684]
cmp ebx, 8
jb case.0x41839f.2
mov ecx, dword [edi + 4]
push ecx
push str.LME_requested_to_disconnect_with_reason_code_0x_08x_n
call fcn.0041c026
add esp, 8
jmp 0x4183d6
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0x20
jae 0x4183fb
mov ecx, esi
push 2
call fcn.00407bd0
mov ecx, esi
call fcn.00416c60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bdb5
mov esp, ebp
pop ebp
ret 0xc
add edi, 4
push str.auth_amt.intel.com
mov ecx, edi
call fcn.004019d0
test eax, eax
je 0x418433
push str.pfwd_amt.intel.com
mov ecx, edi
call fcn.004019d0
test eax, eax
je 0x418433
push 7
push str.Requesting_to_disconnect_from_LME_with_reason_code_0x_08x_n
call fcn.0041c026
add esp, 8
push 7
mov ecx, esi
jmp 0x4183d1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xd8], esp
push edi
call fcn.00401f40
mov ecx, esi
call fcn.004082e0
cmp dword [edi + 0x14], 0x10
jb 0x418455
mov eax, dword [edi]
jmp 0x418457
mov eax, edi
push eax
push str.Accepting_service:__s_n
call fcn.0041c026
add esp, 8
push str.pfwd_amt.intel.com
mov ecx, edi
call fcn.004019d0
test eax, eax
jne 0x4183dd
lea ecx, [esi + 0x124]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], eax
call fcn.004199b0
lea ecx, [ebp - 0xec]
mov dword [esi + 0x110], 1
call section..text
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0x5c
jb 0x4183cd
push str.Sending_Userauth_success_message_n
call fcn.0041c026
add esp, 4
mov ecx, esi
call fcn.00407c40
jmp 0x4183dd
cmp ebx, 0x10
jb case.0x41839f.2
lea ecx, [esi + 0x124]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], edx
call fcn.004199b0
mov eax, dword [esi + 0x10c]
sub eax, 0
mov dword [ebp - 4], 0
je 0x418539
dec eax
je 0x418568
dec eax
je 0x418539
push 0xb
mov ecx, esi
call fcn.00407bd0
mov ecx, esi
call fcn.00416c60
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
mov edx, dword [0x43e0d4]
mov ecx, dword [0x43e0d8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x43e0dc]
mov dword [eax + 4], ecx
mov ecx, dword [0x43e0e0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.00407cb0
mov ecx, dword [edi + 4]
mov eax, dword [0x43e0c8]
sub eax, ecx
jne 0x41857c
mov eax, dword [0x43e0cc]
sub eax, dword [edi + 8]
test eax, eax
jle 0x4185b9
mov edx, dword [edi + 8]
push edx
push ecx
push str.Version__d._d_is_not_supported._n
call fcn.0041c026
add esp, 0xc
push 8
mov ecx, esi
call fcn.00407bd0
mov ecx, esi
call fcn.00416c60
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
mov edx, dword [0x43e0d8]
mov eax, edx
sub eax, ecx
jne 0x4185cd
mov eax, dword [0x43e0dc]
sub eax, dword [edi + 8]
test eax, eax
jle 0x4185e2
mov dword [esi + 0x118], ecx
mov eax, dword [edi + 8]
mov dword [esi + 0x11c], eax
jmp 0x4185f4
mov dword [esi + 0x118], edx
mov ecx, dword [0x43e0dc]
mov dword [esi + 0x11c], ecx
lea ecx, [ebp - 0x11c]
mov dword [esi + 0x10c], 2
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 8
jb 0x4183cd
mov edx, dword [edi + 4]
push edx
push str.Global_Request_type_0x_02x_n
call fcn.0041c026
mov eax, dword [edi + 4]
xor edx, edx
add esp, 8
sub eax, edx
je 0x418964
dec eax
je 0x418744
dec eax
jne 0x4183cd
cmp ebx, 0x30
jb 0x4183cd
cmp dword [edi + 0x1c], 0x10
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
lea eax, [edi + 8]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], 2
mov dword [ebp - 0x108], 0x11
jb 0x4186bc
mov eax, dword [eax]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4186e8
push str.Unable_to_send_UDP_data._n
call fcn.0041c026
add esp, 4
jmp 0x4183dd
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x4186d6
mov edx, dword [edi + 0x24]
push 0
push 2
push edx
push eax
mov ecx, esi
call fcn.004136e0
mov esi, eax
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, 0xffffffff
je 0x4186d6
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
push 0
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [edi + 0x28]
push ecx
push eax
push str.Sent_UDP_data:__d_bytes_of__d._n
call fcn.0041c026
push esi
call fcn.0040ba80
add esp, 0x10
jmp 0x4183dd
cmp ebx, 0x28
jb 0x4183cd
lea ecx, [esi + 0xdc]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], edx
call fcn.004199b0
push str.__________FW_request_to_CLOSE_tunnel_n
mov dword [ebp - 4], 0x10
call fcn.0041c026
add esp, 4
lea ebx, [edi + 0x24]
push ebx
lea edx, [ebp - 0xd8]
push edx
lea ecx, [esi + 0xbc]
mov dword [ebp - 0xe0], ebx
call fcn.0040f060
mov eax, dword [esi + 0xc0]
cmp dword [ebp - 0xd8], eax
jne 0x4187dc
add edi, 8
cmp dword [edi + 0x14], 0x10
jb 0x4187ad
mov edi, dword [edi]
mov eax, dword [ebx]
push eax
push edi
push str.Previous_request_on_address__s_and_port__d_doesnt_exist._n
call fcn.0041c026
add esp, 0xc
mov ecx, esi
call fcn.00407ee0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
sub esp, 0x1c
lea ebx, [edi + 8]
mov ecx, esp
mov dword [ebp - 0xe4], esp
push ebx
call fcn.00401f40
mov ecx, esi
call fcn.0040e3b0
test al, al
je 0x418851
call fcn.00403e70
mov ecx, eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], 0
call fcn.004199b0
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x418825
mov eax, dword [ebx]
jmp 0x418827
mov eax, ebx
push eax
push str.__________FW_request_to_CLOSE_remote_tunnel____s_n
call fcn.0041c026
add esp, 8
call fcn.00403e70
lea ecx, [eax + 0x14]
call fcn.00406390
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x10
call section..text
mov eax, dword [ebp - 0xd8]
mov edi, dword [eax + 0x10]
cmp edi, dword [eax + 0x14]
je 0x4188cd
nop
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [edi]
call fcn.0040fcc0
or dword [ebp - 0xf0], 2
push ebx
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.004019a0
test eax, eax
jne 0x418890
mov edx, dword [edi]
mov byte [ebp - 0xd9], 1
cmp dword [edx + 0x38], eax
jne 0x418897
mov byte [ebp - 0xd9], 0
test byte [ebp - 0xf0], 2
mov dword [ebp - 4], 0x10
je 0x4188b6
and dword [ebp - 0xf0], 0xfffffffd
lea ecx, [ebp - 0x48]
call fcn.00401bb0
cmp byte [ebp - 0xd9], 0
jne 0x41890a
mov eax, dword [ebp - 0xd8]
add edi, 4
cmp edi, dword [eax + 0x14]
jne 0x418860
cmp dword [ebx + 0x14], 0x10
jb 0x4188d5
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx]
push edx
push ebx
push str.Previous_request_on_address__s_and_port__d_doesnt_exist._n
call fcn.0041c026
add esp, 0xc
mov ecx, esi
call fcn.00407ee0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
mov eax, dword [edi]
mov dword [eax + 0x38], 0
mov edi, dword [edi]
cmp dword [edi + 0x3c], 0
jne 0x418923
push edi
mov ecx, esi
call fcn.00415460
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xd8], esp
push ebx
call fcn.00401f40
mov ecx, esi
call fcn.0040e3b0
test al, al
je 0x418946
mov ecx, esi
call fcn.00410000
mov ecx, esi
call fcn.00407e70
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
cmp ebx, 0x28
jb 0x4183cd
sub esp, 0x1c
lea ebx, [edi + 8]
mov ecx, esp
mov dword [ebp - 0xe0], esp
push ebx
mov dword [ebp - 0xd8], ebx
call fcn.00401f40
mov ecx, esi
call fcn.0040e3b0
test al, al
je 0x4189b4
cmp dword [ebx + 0x14], 0x10
jb 0x41899a
mov ebx, dword [ebx]
push ebx
push str.__________FW_request_to_open_remote_tunnel___s_n
call fcn.0041c026
add esp, 8
mov dword [ebp - 0xe0], 0x411720
jmp 0x4189be
mov dword [ebp - 0xe0], 0x417900
lea ecx, [esi + 0xdc]
xor ebx, ebx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], ebx
call fcn.004199b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
add edi, 0x24
push edi
lea eax, [ebp - 0xe4]
lea ecx, [esi + 0xbc]
push eax
mov byte [ebp - 4], 2
call fcn.0040f060
mov eax, dword [esi + 0xc0]
cmp dword [ebp - 0xe4], eax
je 0x418d47
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
sar ecx, 2
test ecx, ecx
je 0x418ad9
mov ebx, eax
mov edx, dword [ebx + 0x10]
mov eax, dword [edx]
add eax, 0x24
push eax
lea ecx, [ebp - 0x104]
call fcn.004106b0
mov ebx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xe4]
cmp ebx, dword [ecx + 0x14]
je 0x418ad3
mov ecx, dword [ebx]
cmp dword [ecx + 0x38], 0
je 0x418a8f
lea edx, [ebp - 0x9c]
push edx
call fcn.0040fcc0
mov ecx, dword [ebp - 0xd8]
or dword [ebp - 0xf0], 1
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004019a0
mov byte [ebp - 0xd9], 1
test eax, eax
je 0x418a96
mov byte [ebp - 0xd9], 0
test byte [ebp - 0xf0], 1
mov dword [ebp - 4], 2
je 0x418ab8
and dword [ebp - 0xf0], 0xfffffffe
lea ecx, [ebp - 0x9c]
call fcn.00401bb0
cmp byte [ebp - 0xd9], 0
jne 0x418c38
mov edx, dword [ebp - 0xe4]
add ebx, 4
cmp ebx, dword [edx + 0x14]
jne 0x418a57
mov ebx, dword [ebp - 0x100]
sub ebx, dword [ebp - 0x104]
test ebx, 0xfffffffc
jne 0x418d8d
mov eax, dword [edi]
push 1
lea edx, [ebp - 0xe4]
push edx
push eax
push 0
lea ecx, [ebp - 0x134]
push ecx
mov ecx, esi
call fcn.00413120
push eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 8
call fcn.00411c40
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.0040e4d0
mov edx, dword [ebp - 0x100]
sub edx, dword [ebp - 0x104]
test edx, 0xfffffffc
je 0x418b47
cmp dword [ebp - 0xe4], 0
je 0x418d8d
push 1
push 3
lea ecx, [ebp - 0x1dc]
call fcn.00412a30
mov eax, dword [edi]
push 0x4349b4
push eax
lea ecx, [ebp - 0x1cc]
push str.LMS_Service_cannot_listen_at_port
push ecx
mov byte [ebp - 4], 9
call fcn.0040f380
add esp, 8
mov ecx, eax
call fcn.00410450
push eax
call fcn.0040f380
add esp, 8
lea ebx, [esi + 0x16c]
push edi
mov ecx, ebx
call fcn.004129b0
cmp byte [eax], 0
jne 0x418be6
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x1dc]
call fcn.00412b60
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x418bb7
mov eax, dword [eax]
mov ecx, dword [esi + 0x160]
push 2
push eax
mov eax, dword [esi + 0x164]
push eax
call ecx
add esp, 0xc
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 9
call fcn.00401bb0
push edi
mov ecx, ebx
call fcn.004129b0
mov byte [eax], 1
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1dc]
call fcn.00412b60
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x418c01
mov eax, dword [eax]
push eax
push 0x440100
call fcn.0040f380
add esp, 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401bb0
mov ecx, esi
call fcn.00407e00
lea ecx, [ebp - 0x1dc]
mov bl, 1
mov byte [ebp - 4], 2
call fcn.0040e390
jmp 0x418f22
push 1
push 3
lea ecx, [ebp - 0x1dc]
call fcn.00412a30
mov eax, dword [edi]
mov ecx, dword [ebp - 0xd8]
push 0x4349b4
push eax
push 0x43631c
push ecx
lea edx, [ebp - 0x1cc]
push str.LMS_already_accepted_a_request_at
push edx
mov byte [ebp - 4], 4
call fcn.0040f380
add esp, 8
push eax
call fcn.0040f640
add esp, 8
push eax
call fcn.0040f380
add esp, 8
mov ecx, eax
call fcn.00410450
push eax
call fcn.0040f380
add esp, 8
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00412b60
mov edi, 0x10
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x418cb7
mov eax, dword [eax]
mov ecx, dword [esi + 0x164]
mov edx, dword [esi + 0x160]
push 2
push eax
push ecx
call edx
add esp, 0xc
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.00401bb0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00412b60
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], edi
jb 0x418cf5
mov eax, dword [eax]
push eax
push 0x440100
call fcn.0040f380
add esp, 8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00401bb0
mov ecx, esi
call fcn.00407e00
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.0040e390
lea ecx, [ebp - 0x104]
call fcn.0040e4d0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x124]
push ecx
push edi
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 7
call fcn.00416280
mov ecx, eax
call fcn.004106b0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.0040e4d0
jmp 0x418ad9
cmp dword [ebp - 0xe0], 0x417900
mov eax, str.local
je 0x418da3
mov eax, str.remote
push eax
mov eax, dword [edi]
push eax
push str.Listening_at_port__d_at__s_interface._n
call fcn.0041c026
add esp, 0xc
lea ecx, [esi + 0x16c]
push edi
call fcn.004129b0
cmp byte [eax], 1
jne 0x418e4f
push 1
push 3
lea ecx, [ebp - 0x1dc]
call fcn.00412a30
mov ecx, dword [edi]
push 0x4349b4
push ecx
lea edx, [ebp - 0x1cc]
push str.Listening_at_port
push edx
mov byte [ebp - 4], 0xc
call fcn.0040f380
add esp, 8
mov ecx, eax
call fcn.00410450
push eax
call fcn.0040f380
add esp, 8
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00412b60
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x418e23
mov eax, dword [eax]
mov ecx, dword [esi + 0x164]
mov edx, dword [esi + 0x160]
push 4
push eax
push ecx
call edx
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00401bb0
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.0040e390
push 0x40
call fcn.0041bdc4
add esp, 4
mov dword [ebp - 0xe4], eax
mov ebx, dword [ebp - 0xe0]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x418ec1
cmp ebx, 0x417900
sete al
movzx ecx, al
push ecx
push ebx
sub esp, 0x10
lea edx, [ebp - 0x104]
mov ecx, esp
mov dword [ebp - 0xf0], esp
push edx
call fcn.00411b70
mov eax, dword [edi]
mov edx, dword [ebp - 0xd8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push edx
mov byte [ebp - 4], 0xf
call fcn.00401f40
mov ecx, dword [ebp - 0xe4]
mov byte [ebp - 4], 0xe
call fcn.00412790
jmp 0x418ec3
xor eax, eax
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe4]
push eax
push edi
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 2
call fcn.00416280
mov ecx, eax
call fcn.00410640
mov ecx, dword [edi]
push ecx
mov ecx, esi
call fcn.00407d80
mov eax, dword [ebp - 0xe4]
xor edx, edx
cmp ebx, 0x417900
sete dl
push edi
lea ecx, [esi + 0x16c]
inc edx
mov dword [eax + 0x38], edx
call fcn.004129b0
mov ecx, esi
mov byte [eax], 0
call fcn.0040bbb0
mov bl, byte [ebp - 0xf1]
lea ecx, [ebp - 0x104]
call fcn.0040e4d0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
call section..text
cmp bl, 1
je 0x4183cd
mov ecx, dword [esi + 0x170]
mov eax, dword [ecx]
mov dword [ebp - 0xe4], eax
cmp eax, ecx
je 0x418f83
lea ebx, [ebx]
cmp byte [eax + 0x10], 1
je 0x4183dd
lea ecx, [ebp - 0xe4]
call fcn.0040c2b0
mov eax, dword [ebp - 0xe4]
cmp eax, dword [esi + 0x170]
jne 0x418f60
test bl, bl
jne 0x4183dd
cmp dword [ebp - 0xe0], 0x417900
jne 0x418fcc
mov ebx, dword [ebp - 0xd8]
cmp dword [ebx + 0x14], 0x10
jb 0x418fa7
mov eax, dword [ebx]
jmp 0x418fa9
mov eax, ebx
mov ecx, dword [edi]
push str.local
push eax
push ecx
push str.Listening_at_port__d_addr:_s_at__s_interface._n
call fcn.0041c026
add esp, 0x10
push ebx
mov ecx, esi
call fcn.00411740
jmp 0x4183dd
push str.__________remote_tunnel_created___going_to_check_remote_support_n
call fcn.0041c026
add esp, 4
push 1
mov ecx, esi
call fcn.00418230
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0x30
jb 0x4183cd
cmp dword [edi + 0x24], 0x10
lea ebx, [edi + 0x10]
jb 0x41900b
mov eax, dword [ebx]
jmp 0x41900d
mov eax, ebx
mov edx, dword [edi + 0x2c]
push edx
push eax
mov eax, dword [edi + 8]
push eax
push str.Got_channel_request_from_AMT.__Recipient_channel__d_for_address__s__port__d._n
call fcn.0041c026
xor eax, eax
add esp, 0x10
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], 6
jb 0x41907f
mov eax, dword [ebx]
jmp 0x419081
mov eax, ebx
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4190c4
cmp dword [ebx + 0x14], 0x10
jb 0x4190a4
mov ebx, dword [ebx]
push ebx
push str.Unable_to_open_direct_channel_to_address__s._n
call fcn.0041c026
mov eax, dword [edi + 8]
add esp, 8
push 2
push eax
mov ecx, esi
call fcn.00408010
jmp 0x4183dd
cmp dword [ebp - 0xd8], 0
jne 0x4190f5
cmp dword [ebx + 0x14], 0x10
jb 0x4190d5
mov ebx, dword [ebx]
push ebx
push str.Unable_to_open_direct_channel_to_address__s._n
call fcn.0041c026
mov ecx, dword [edi + 8]
add esp, 8
push 2
push ecx
mov ecx, esi
call fcn.00408010
jmp 0x4183dd
cmp dword [edi + 0x2c], 0
jne 0x419105
mov ecx, esi
call fcn.00411a10
mov dword [edi + 0x2c], eax
mov edx, dword [edi + 0x2c]
mov eax, dword [ebp - 0xd8]
push 0
push 1
push edx
push eax
mov ecx, esi
call fcn.004136e0
mov ecx, dword [ebp - 0xd8]
push ecx
mov dword [ebp - 0xe0], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0xe0], 0xffffffff
jne 0x41915f
cmp dword [ebx + 0x14], 0x10
jb 0x41913f
mov ebx, dword [ebx]
push ebx
push str.Unable_to_open_direct_channel_to_address__s._n
call fcn.0041c026
mov edx, dword [edi + 8]
add esp, 8
push 2
push edx
mov ecx, esi
call fcn.00408010
jmp 0x4183dd
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0xe4]
push eax
push 0x8004667e
push ecx
mov dword [ebp - 0xe4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x1c
call fcn.0041bdc4
add esp, 4
test eax, eax
je 0x4191b4
mov ecx, dword [ebp - 0xe0]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0xfff
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov ebx, eax
jmp 0x4191b6
xor ebx, ebx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov edx, dword [edi + 8]
lea ecx, [esi + 0xe0]
mov dword [ebx], edx
mov dword [ebx + 0x14], 1
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], 0
call fcn.004199b0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [esi + 0xcc]
mov dword [ebp - 4], 0x13
mov dword [ebp - 0xe0], eax
call fcn.00411c90
mov dword [eax], ebx
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
push eax
push ebx
mov ecx, esi
call fcn.00407f50
mov ecx, esi
call fcn.0040bbb0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0x10
jb 0x4183cd
lea ecx, [esi + 0xe0]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], 0
call fcn.004199b0
lea ebx, [edi + 4]
push ebx
lea edx, [ebp - 0xd8]
push edx
lea ecx, [esi + 0xcc]
call fcn.0040f120
mov eax, dword [ebp - 0xd8]
cmp eax, dword [esi + 0xd0]
je 0x4192bf
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x14], 1
mov edx, dword [eax + 0x10]
mov ecx, dword [edi + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 0x10]
mov edx, dword [edi + 0xc]
add dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ebx]
push eax
push ecx
push edx
push str.channel__d__d_has_now_window_size___d_n
call fcn.0041c026
add esp, 0x10
mov ecx, esi
call fcn.0040bbb0
lea ecx, [ebp - 0xec]
call section..text
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0xc
jb 0x4183cd
xor eax, eax
lea ecx, [esi + 0xe0]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], eax
call fcn.004199b0
lea eax, [edi + 4]
push eax
lea edx, [ebp - 0xe0]
lea ecx, [esi + 0xcc]
push edx
mov dword [ebp - 4], 0x14
call fcn.0040f120
mov ebx, dword [ebp - 0xe0]
cmp ebx, dword [esi + 0xd0]
je 0x419397
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push eax
call fcn.0040ba80
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x18]
add esp, 4
test eax, eax
je 0x419367
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x41935b
dec ecx
mov dword [eax + 0x3c], ecx
cmp dword [eax + 0x3c], 0
jne 0x419367
mov dword [ebp - 0xd8], eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.0041b244
add esp, 4
push ebx
lea edx, [ebp - 0x118]
push edx
lea ecx, [esi + 0xcc]
call fcn.0040e7e0
mov eax, dword [edi + 8]
push eax
push str.Channel_open_request_was_refused._Reason_code:_0x_02x_reason._n
call fcn.0041c026
add esp, 8
or ebx, 0xffffffff
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], ebx
call section..text
mov edi, dword [ebp - 0xd8]
test edi, edi
je 0x4183dd
lea ecx, [esi + 0xdc]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], 0
call fcn.004199b0
mov dword [ebp - 4], 0x15
push edi
mov ecx, esi
call fcn.00415460
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xec]
call section..text
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 8
jb 0x4183cd
xor eax, eax
lea ecx, [esi + 0xe0]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], eax
call fcn.004199b0
add edi, 4
push edi
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [esi + 0xcc]
mov dword [ebp - 4], 0x16
call fcn.0040f120
mov eax, dword [esi + 0xd0]
cmp dword [ebp - 0xd8], eax
je 0x4194e3
mov edx, dword [ebp - 0xd8]
mov edi, dword [edx + 0x10]
mov eax, dword [edi + 0x14]
dec eax
je 0x419475
dec eax
jne 0x419497
mov eax, dword [edi + 4]
push eax
push str.Received_reply_by_AMT_on_closing_channel__d._n
jmp 0x41948f
mov eax, dword [edi]
push eax
mov ecx, esi
mov dword [edi + 0x14], 3
call fcn.004080c0
mov eax, dword [edi + 4]
push eax
push str.Channel__d_was_closed_by_AMT._n
call fcn.0041c026
add esp, 8
mov eax, dword [edi + 8]
push eax
call fcn.0040ba80
mov eax, dword [edi + 0x18]
add esp, 4
test eax, eax
je 0x4194c1
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4194b5
dec ecx
mov dword [eax + 0x3c], ecx
cmp dword [eax + 0x3c], 0
jne 0x4194c1
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [esi + 0xcc]
call fcn.0040e7e0
push edi
call fcn.0041b244
add esp, 4
or ebx, 0xffffffff
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], ebx
call section..text
mov edi, dword [ebp - 0xe0]
test edi, edi
je 0x4183dd
lea ecx, [esi + 0xdc]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], 0
call fcn.004199b0
mov dword [ebp - 4], 0x17
jmp 0x4193d8
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0x10
jb 0x4183cd
lea ecx, [esi + 0xe0]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], 0
call fcn.004199b0
lea eax, [edi + 4]
push eax
lea edx, [ebp - 0xd8]
push edx
lea ecx, [esi + 0xcc]
mov dword [ebp - 4], 0x18
call fcn.0040f120
mov ebx, dword [ebp - 0xd8]
cmp ebx, dword [esi + 0xd0]
je 0x4195e6
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x14]
cmp ecx, 1
je 0x419596
cmp ecx, 2
jne 0x4195e6
mov eax, dword [eax + 0x10]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x41921c
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebx + 0x10]
mov ecx, dword [edx + 8]
mov edx, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push ecx
push edx
push eax
push str.Sent__d_bytes_of__d_from_AMT_to_channel__d_with_socket__d._n
call fcn.0041c026
mov ebx, dword [ebx + 0x10]
mov eax, dword [edi + 8]
mov ebx, dword [ebx]
add esp, 0x14
push eax
push ebx
mov ecx, esi
call fcn.004081f0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
call section..text
jmp 0x4183dd
push edi
call fcn.00417360
test al, al
je 0x4183dd
cmp ebx, 0xc
jb 0x4183cd
lea ecx, [esi + 0xe0]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], 0
call fcn.004199b0
lea ecx, [edi + 4]
push ecx
lea edx, [ebp - 0xd8]
push edx
lea ecx, [esi + 0xcc]
call fcn.0040f120
mov eax, dword [ebp - 0xd8]
cmp eax, dword [esi + 0xd0]
je 0x4193e3
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x14], 0
je 0x4193e3
mov edi, dword [edi + 8]
add dword [eax + 0xc], edi
mov ecx, esi
call fcn.0040bbb0
lea ecx, [ebp - 0xec]
call section..text
jmp 0x4183dd