Function at 0x48c1a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56991f
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
push 0x5da644
lea ecx, [ebp - 0x10]
call fcn.00415da0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0xffffffff
je 0x48c37e
lea eax, [ebp - 0x14]
push eax
push 0x588158
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00411660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x48c22d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00415e20
jmp 0x48c37e
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
mov edx, 2
mov word [ebp - 0x44], dx
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
lea ecx, [ebp - 0x20]
call fcn.00415f60
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00499e90
add esp, 8
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.00412150
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x4c]
call fcn.00412130
cmp dword [ebp - 0x40], 0xffffffff
jne 0x48c2e6
lea ecx, [ebp - 0x20]
call fcn.00415f60
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00499e90
add esp, 8
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.00412150
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x50]
call fcn.00412130
cmp dword [ebp - 0x48], 0
jne 0x48c2d9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00415e20
jmp 0x48c1e6
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
push 0x10
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x48c321
push 2
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00415e20
jmp 0x48c1e6
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x30]
mov dword [0x5da238], ecx
push 2
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x54], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00415e20
mov eax, dword [ebp - 0x54]
jmp 0x48c3a1
mov dword [0x5da238], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00415e20
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret