Function at 0x48cf80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x5880], ecx
cmp dword [ebp - 8], 0xffffffff
jne 0x48d00e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [0x50fb80], 0
je 0x48d004
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
mov eax, dword [ebp - 4]
push eax
push 0x2be
push str.StreetPerfect_Create_Client_Socket
call fcn.004a14b0
add esp, 0x10
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x2be
jmp 0x48d35e
push 0
push 0x104
push 0x40
push 0x50fbaa
push 0x50fbbb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5880]
xor ecx, ecx
push ecx
push eax
push str.__llu___s:_s___d:_lld_
mov edx, dword [ebp + 8]
add edx, 0x4c67
push edx
call fcn.004010f0
add esp, 0x24
cmp dword [0x50fb84], 0
je 0x48d087
mov eax, dword [ebp + 8]
add eax, 0x4c67
push eax
push str.Client_Socket_Init__s
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
call fcn.004010f0
add esp, 0xc
push 1
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
push 0x50fbfc
call fcn.0040cf90
add esp, 4
test eax, eax
je 0x48d1fb
push 0x10
push 0
mov eax, dword [ebp + 8]
add eax, 0x5868
push eax
call fcn.00402610
add esp, 0xc
push 0x5448e8
call fcn.00428cb9
add esp, 4
mov ecx, dword [ebp + 8]
mov word [ecx + 0x6c90], ax
push 0x50fbfc
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6c94], eax
mov eax, 2
mov ecx, dword [ebp + 8]
mov word [ecx + 0x5868], ax
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x6c90]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x586a], ax
push 4
mov edx, dword [ebp + 8]
add edx, 0x6c94
push edx
mov eax, dword [ebp + 8]
add eax, 0x586c
push eax
call fcn.00402b10
add esp, 0xc
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x5868
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5880]
push eax
call dword [sym.imp.WSOCK32.dll_bind]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48d1fb
cmp dword [0x50fb80], 0
je 0x48d1e5
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
push 0x50fbfc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5880]
xor eax, eax
push eax
push edx
push str.Client_Bind_Service_Network_Interface___lld___s
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
call fcn.004010f0
add esp, 0x14
mov edx, dword [0x50fb80]
push edx
mov eax, dword [ebp + 8]
add eax, 0x4867
push eax
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x2bf
push str.Client_Bind_Service_Network_Interface
call fcn.004a14b0
add esp, 0x10
mov eax, dword [0x50fb80]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.0048cf40
add esp, 4
mov eax, 0x2bf
jmp 0x48d35e
push 0x10
push 0
mov eax, dword [ebp + 8]
add eax, 0x5868
push eax
call fcn.00402610
add esp, 0xc
push 0x50fbaa
call fcn.00428cb9
add esp, 4
mov ecx, dword [ebp + 8]
mov word [ecx + 0x6c90], ax
push 0x50fbbb
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6c94], eax
mov eax, 2
mov ecx, dword [ebp + 8]
mov word [ecx + 0x5868], ax
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x6c90]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x586a], ax
push 4
mov edx, dword [ebp + 8]
add edx, 0x6c94
push edx
mov eax, dword [ebp + 8]
add eax, 0x586c
push eax
call fcn.00402b10
add esp, 0xc
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x5868
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5880]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48d350
cmp dword [0x50fb80], 0
je 0x48d33d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c67
push ecx
push str.Client_Connect_Remote_Server__s
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
call fcn.004010f0
add esp, 0xc
mov eax, dword [0x50fb80]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4867
push ecx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
mov eax, dword [ebp - 4]
push eax
push 0x2c1
push str.Client_Connect_Remote_Server
call fcn.004a14b0
add esp, 0x10
mov ecx, dword [0x50fb80]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x4867
push edx
push 0x50fc3d
call fcn.004a01c0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0048cf40
add esp, 4
mov eax, 0x2c1
jmp 0x48d35e
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048ccb0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret