Function at 0x48758c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x487595
mov eax, dword [ebp - 4]
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2048], edx
mov dword [ebp - 0x2040], edx
mov dword [ebp - 0x2044], edx
mov dword [ebp - 0x203c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x487880
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x495808]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jle 0x4875ea
xor ebx, ebx
lea ecx, [ebp - 0x203c]
mov eax, dword [0x495808]
mov eax, dword [eax]
mov edx, ebx
call fcn.00465180
mov eax, dword [ebp - 0x203c]
call fcn.004059dc
mov edx, dword [0x495b34]
mov dword [edx], eax
mov eax, dword [0x495808]
mov eax, dword [eax]
mov edx, ebx
call fcn.004650a4
mov edx, dword [0x4959d8]
mov word [edx], ax
inc ebx
push 0xc8
call sub.kernel32.dll_Sleep_2
jmp 0x48764d
lea eax, [ebp - 0x2038]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x2038]
push eax
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2038]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x487635
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403af4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [0x495af4]
mov dword [edx], eax
mov eax, dword [0x495af4]
cmp dword [eax], 0xffffffff
je 0x4875d7
mov word [ebp - 0x1c], 2
mov eax, dword [0x4959d8]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1a], ax
mov eax, dword [0x495b34]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4876e2
mov eax, dword [0x495b34]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4875d7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x487818
test esi, esi
je 0x487708
mov eax, esi
call fcn.0041ff34
mov cl, 1
mov dl, 1
mov eax, dword [0x4872c0]
call fcn.0041fa50
mov esi, eax
mov byte [esi + 0xf], 1
mov dl, 5
mov eax, esi
call fcn.0041fc5c
mov edx, dword [0x495af4]
mov edx, dword [edx]
mov eax, esi
call fcn.00487460
mov edx, edi
mov eax, esi
call fcn.00487464
mov eax, esi
call fcn.0041ff0c
mov eax, dword [0x495a78]
mov byte [eax], 1
jmp 0x48780c
lea eax, [ebp - 0x201c]
xor ecx, ecx
mov edx, 0x2000
call fcn.00403af4
push 0
push 0x2000
lea eax, [ebp - 0x201c]
push eax
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x487793
mov eax, edi
call fcn.004874d4
jmp 0x4875d7
lea eax, [ebp - 0x2044]
lea edx, [ebp - 0x201c]
call fcn.00405e3c
mov eax, dword [ebp - 0x2044]
lea edx, [ebp - 0x2040]
call fcn.00409bd8
mov edx, dword [ebp - 0x2040]
lea eax, [ebp - 4]
call fcn.004057d4
lea ecx, [ebp - 0x2048]
mov edx, dword [0x495b5c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004616bc
mov edx, dword [ebp - 0x2048]
lea eax, [ebp - 4]
call fcn.004055c8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4877fe
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x48780c
mov eax, dword [ebp - 4]
call fcn.00476200
cmp byte [edi + 0xd], 0
je 0x487751
jmp 0x487844
test esi, esi
je 0x487823
mov eax, esi
call fcn.0041ff34
push 1
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [0x495af4]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4875d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487887
lea eax, [ebp - 0x2048]
call fcn.00405530
lea eax, [ebp - 0x2044]
mov edx, 2
call fcn.00405d40
lea eax, [ebp - 0x203c]
call fcn.00405530
lea eax, [ebp - 4]
call fcn.00405530
ret