Function at 0x496090
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5a58
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4e5258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x4960c5
xor al, al
jmp 0x496460
mov eax, dword [ebp - 0x10]
add eax, 0x30
push eax
lea ecx, [ebp - 0x44]
call fcn.0048f930
mov dword [ebp - 4], 0
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x496139
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x496117
push 1
mov ecx, dword [ebp - 0x30]
call fcn.00491490
mov dword [ebp - 0x4c], eax
jmp 0x49611e
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00490ae0
mov al, byte [ebp - 0x15]
jmp 0x496460
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4961a1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x49617f
push 1
mov ecx, dword [ebp - 0x34]
call fcn.00491490
mov dword [ebp - 0x54], eax
jmp 0x496186
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x16], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00490ae0
mov al, byte [ebp - 0x16]
jmp 0x496460
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0049c5d0
movzx edx, al
test edx, edx
jne 0x4961cb
jmp 0x4961fe
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0049c5d0
movzx ecx, al
test ecx, ecx
jne 0x4961e3
jmp 0x4961fe
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00491210
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x4961fe
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00495470
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0043e480
push eax
lea ecx, [ebp - 0x58]
call fcn.00439040
movzx edx, al
test edx, edx
je 0x496273
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x496251
push 1
mov ecx, dword [ebp - 0x38]
call fcn.00491490
mov dword [ebp - 0x60], eax
jmp 0x496258
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x17], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00490ae0
mov al, byte [ebp - 0x17]
jmp 0x496460
mov ecx, dword [ebp - 0x10]
call fcn.00497820
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], 3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edx + 0x18], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], 0
jle 0x49644a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
je 0x49644a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0049c850
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00491240
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x74], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
lea eax, [ebp - 0x7c]
push eax
push 1
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x49633d
jmp 0x496420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x3e5
je 0x496420
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 5
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.004603e0
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0049c510
movzx eax, al
test eax, eax
jne 0x496390
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004946f0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00495470
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0043e480
push eax
lea ecx, [ebp - 0x28]
call fcn.00439140
movzx edx, al
test edx, edx
je 0x496408
lea ecx, [ebp - 0x28]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x4963eb
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.00491490
mov dword [ebp - 0x6c], eax
jmp 0x4963f2
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0048f570
mov byte [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00490ae0
mov al, byte [ebp - 0x18]
jmp 0x496460
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x3c]
test edx, edx
jne 0x49644a
mov eax, dword [ebp + 8]
mov byte [eax + 0x3c], 1
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0049d5a0
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00490ae0
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc