Function at 0x49db20
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5f46
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84c], ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x49db67
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x844], ecx
jmp 0x49db73
mov edx, dword [ebp + 8]
add edx, 0x20
mov dword [ebp - 0x844], edx
cmp dword [ebp + 0x14], 0
jne 0x49db88
mov eax, dword [ebp - 0x844]
mov byte [eax + 7], 1
jmp 0x49ddce
cmp dword [ebp + 0x14], 0
jle 0x49ddce
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 2
jne 0x49ddac
push str.000000
lea ecx, [ebp - 0x840]
call fcn.00436820
mov dword [ebp - 4], 0
push 0x4c4bac
lea ecx, [ebp - 0x828]
call fcn.00436820
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x84c]
mov ecx, dword [ecx + 0xd0]
call fcn.00495e90
mov dword [ebp - 0x850], eax
cmp dword [ebp - 0x850], 0
je 0x49dc23
mov edx, dword [ebp - 0x850]
add edx, 0x414
push edx
lea ecx, [ebp - 0x840]
call fcn.00438d10
mov eax, dword [ebp - 0x850]
add eax, 0x634
push eax
lea ecx, [ebp - 0x828]
call fcn.00438d10
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xac], 0
jne 0x49dc58
lea ecx, [ebp - 0x840]
call fcn.0043d960
push eax
lea ecx, [ebp - 0x828]
call fcn.0043d960
push eax
call fcn.004a8e70
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0xac], eax
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x49dcf9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xac], 0
je 0x49dcf4
mov dword [ebp - 0x854], 0
push 0xffff
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x854]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0xac]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x854]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
push edx
lea ecx, [ebp - 0x868]
call fcn.00490450
push eax
mov ecx, dword [ebp - 0x844]
add ecx, 0xc
call fcn.0049c5a0
jmp 0x49dd89
mov eax, dword [ebp + 8]
cmp dword [eax + 0xac], 0
je 0x49dd89
mov dword [ebp - 0x858], 0
push 0xffff
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x858]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xac]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0xac]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x858]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
push eax
lea ecx, [ebp - 0x870]
call fcn.00490450
push eax
mov ecx, dword [ebp - 0x844]
add ecx, 0xc
call fcn.0049c5a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.00438400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00438400
jmp 0x49ddce
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x878]
call fcn.00490450
push eax
mov ecx, dword [ebp - 0x844]
add ecx, 0xc
call fcn.0049c5a0
mov eax, dword [ebp - 0x844]
movzx ecx, byte [eax + 6]
test ecx, ecx
je 0x49dde3
mov al, 1
jmp 0x49e05e
mov ecx, dword [ebp - 0x844]
add ecx, 0xc
call fcn.0045cfd0
movzx edx, al
test edx, edx
je 0x49de4b
mov eax, dword [ebp - 0x844]
movzx ecx, byte [eax + 7]
test ecx, ecx
je 0x49de44
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x49de2a
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x84c]
call fcn.0049d190
jmp 0x49de44
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x84c]
call fcn.0049d190
mov al, 1
jmp 0x49e05e
mov ecx, dword [ebp - 0x84c]
call fcn.004978e0
mov dword [ebp - 0x848], eax
mov edx, dword [ebp - 0x848]
mov dword [edx + 0x30], 3
mov eax, dword [ebp - 0x848]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x844]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x848]
add ecx, 0x34
call fcn.00438dc0
mov ecx, dword [ebp - 0x844]
add ecx, 0xc
call fcn.004603e0
mov ecx, dword [ebp - 0x844]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x49debe
mov eax, dword [ebp - 0x844]
cmp dword [eax], 0xffffffff
jne 0x49df42
mov ecx, dword [ebp - 0x848]
mov dword [ecx + 0x30], 4
mov edx, dword [ebp - 0x848]
push edx
push 0
mov eax, dword [ebp - 0x844]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x84c]
add ecx, 8
call fcn.0049c510
movzx edx, al
test edx, edx
jne 0x49df04
mov eax, dword [ebp - 0x848]
push eax
mov ecx, dword [ebp - 0x84c]
call fcn.004947e0
push 0x400
push 0
lea ecx, [ebp - 0x410]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.TCPProxy::startTcpSend__I64u__failed__INVALID_SOCKET
lea edx, [ebp - 0x410]
push edx
call fcn.00441870
add esp, 8
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x49e05e
mov ecx, dword [ebp - 0x844]
mov byte [ecx + 6], 1
push 0
mov edx, dword [ebp - 0x848]
push edx
push 0
lea eax, [ebp - 0x860]
push eax
mov ecx, dword [ebp - 0x848]
add ecx, 0x34
call fcn.004404a0
push eax
push 0
mov ecx, dword [ebp - 0x848]
add ecx, 0x34
call fcn.00491260
mov ecx, eax
call fcn.00436250
push eax
mov ecx, dword [ebp - 0x844]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x49e05c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x85c], eax
cmp dword [ebp - 0x85c], 0x3e5
je 0x49e05c
push 0x400
push 0
lea eax, [ebp - 0x810]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x85c]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push str.TCPProxy::startTcpSend__I64u__failed__err_d__r_n
lea ecx, [ebp - 0x810]
push ecx
call fcn.00441870
add esp, 0x14
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x844]
mov byte [eax + 8], 1
mov ecx, dword [ebp - 0x844]
mov byte [ecx + 6], 0
mov edx, dword [ebp - 0x848]
mov dword [edx + 0x30], 4
mov eax, dword [ebp - 0x848]
push eax
push 0
mov ecx, dword [ebp - 0x844]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0x84c]
add ecx, 8
call fcn.0049c510
movzx eax, al
test eax, eax
jne 0x49e058
mov ecx, dword [ebp - 0x848]
push ecx
mov ecx, dword [ebp - 0x84c]
call fcn.004947e0
xor al, al
jmp 0x49e05e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x18