Function at 0x4352f0
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
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b84d7
mov eax, dword fs:[0]
push eax
mov eax, 0x151c
call fcn.0057d690
mov eax, dword [0x631490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14dc], edx
mov edi, ecx
mov dword [ebp - 0x1510], 0
lea ecx, [ebp - 0x14c0]
mov dword [ebp - 4], 0
call fcn.0040a250
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x14d4], 0x50
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047d0
lea edx, [ebp - 0x14d4]
lea ecx, [ebp - 0x1440]
call fcn.00435080
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1428]
push 0
push 0x604d03
mov dword [ebp - 0x1414], 0xf
mov dword [ebp - 0x1418], 0
mov byte [ebp - 0x1428], 0
call fcn.00404c00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1440]
mov esi, dword [ebp - 0x142c]
mov edx, 0x604d22
mov ebx, dword [ebp - 0x1440]
cmp esi, 0x10
push 0
cmovae ecx, ebx
call fcn.00405ee0
add esp, 4
test eax, eax
jne 0x4353f6
cmp dword [ebp - 0x1430], eax
setne al
test eax, eax
sete al
test al, al
jne 0x435a5c
cmp word [ebp - 0x14d4], 0
je 0x435a5c
cmp esi, 0x10
lea ecx, [ebp - 0x1440]
cmovae ecx, ebx
call fcn.00436350
test al, al
je 0x43543f
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1440]
push eax
lea ecx, [ebp - 0x1428]
call fcn.004047d0
jmp 0x4354e7
xorps xmm0, xmm0
mov dword [ebp - 0x1460], 0
movq qword [ebp - 0x1468], xmm0
mov dword [ebp - 0x1468], 0
mov dword [ebp - 0x1464], 0
mov dword [ebp - 0x1460], 0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
lea eax, [ebp - 0x1440]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047d0
lea ecx, [ebp - 0x1468]
call fcn.00436100
mov esi, dword [ebp - 0x1468]
add esp, 0x18
test al, al
je 0x4354ca
lea eax, [ebp - 0x1428]
cmp eax, esi
je 0x4354ca
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004047d0
mov byte [ebp - 4], 3
test esi, esi
je 0x4354e7
push dword [ebp - 0x1464]
push esi
call fcn.00406da0
push esi
call fcn.00450388
add esp, 4
mov edx, 0x604d23
lea ecx, [ebp - 0x1428]
call fcn.00406de0
test al, al
je 0x435602
push 0x605c20
lea edx, [ebp - 0x1440]
mov byte [ebp - 0x14c0], 0
lea ecx, [ebp - 0x1474]
call fcn.004099d0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x14bc]
cmp eax, esi
je 0x435569
cmp dword [ebp - 0x14a8], 0x10
jb 0x435542
push dword [ebp - 0x14bc]
call fcn.00450388
add esp, 4
push esi
lea ecx, [ebp - 0x14bc]
mov dword [ebp - 0x14a8], 0xf
mov dword [ebp - 0x14ac], 0
mov byte [ebp - 0x14bc], 0
call fcn.004045c0
cmp dword [ebp - 0x1460], 0x10
jb 0x435580
push dword [ebp - 0x1474]
call fcn.00450388
add esp, 4
lea eax, [ebp - 0x14c0]
mov ecx, edi
push eax
call fcn.00413390
cmp dword [ebp - 0x1414], 0x10
jb 0x4355a5
push dword [ebp - 0x1428]
call fcn.00450388
add esp, 4
cmp dword [ebp - 0x142c], 0x10
mov dword [ebp - 0x1414], 0xf
mov dword [ebp - 0x1418], 0
mov byte [ebp - 0x1428], 0
jb 0x4355d7
push dword [ebp - 0x1440]
call fcn.00450388
add esp, 4
lea ecx, [ebp - 0x14c0]
mov dword [ebp - 0x142c], 0xf
mov dword [ebp - 0x1430], 0
mov byte [ebp - 0x1440], 0
call fcn.00406730
jmp 0x435b4b
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
push 4
lea eax, [ebp - 0x1444]
mov dword [ebp - 0x1444], 0x1388
push eax
push 0x1005
push 0xffff
push ebx
call esi
push 4
lea eax, [ebp - 0x1444]
push eax
push 0x1006
push 0xffff
push ebx
call esi
push dword [ebp - 0x14d4]
xorps xmm0, xmm0
mov dword [ebp - 0x14c6], 0
mov eax, 2
movq qword [ebp - 0x14ce], xmm0
mov word [ebp - 0x14c2], 0
mov word [ebp - 0x14d0], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x1414], 0x10
mov word [ebp - 0x14ce], ax
lea eax, [ebp - 0x1428]
cmovae eax, dword [ebp - 0x1428]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14cc], eax
lea eax, [ebp - 0x14d0]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x43575d
mov byte [ebp - 0x14c0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x1528]
call fcn.00418850
push eax
mov edx, 0x605c30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1474]
call fcn.00405a70
add esp, 4
lea ecx, [ebp - 0x14bc]
push eax
call fcn.004098b0
lea ecx, [ebp - 0x1474]
call fcn.00404560
lea ecx, [ebp - 0x1528]
mov byte [ebp - 4], 3
call fcn.00404560
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x14c0]
mov ecx, edi
push eax
call fcn.00413390
lea ecx, [ebp - 0x1428]
call fcn.00404560
lea ecx, [ebp - 0x1440]
call fcn.00404560
lea ecx, [ebp - 0x14c0]
call fcn.00406730
lea ecx, [ebp + 8]
call fcn.00404560
jmp 0x435b5c
push 0x604d42
lea ecx, [ebp - 0x145c]
call fcn.00404490
push 0x605c44
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047d0
lea ecx, [ebp - 0x14f4]
call fcn.00434a20
mov esi, eax
mov edx, dword [ebp - 0x14dc]
lea ecx, [ebp - 0x150c]
push 0x605c50
mov byte [ebp - 4], 7
call fcn.004099d0
add esp, 0x1c
push esi
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1474]
call fcn.00405ba0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1528]
call fcn.00405b00
add esp, 4
lea ecx, [ebp - 0x145c]
push eax
call fcn.004098b0
lea ecx, [ebp - 0x1528]
call fcn.00404560
lea ecx, [ebp - 0x1474]
call fcn.00404560
lea ecx, [ebp - 0x150c]
call fcn.00404560
lea ecx, [ebp - 0x14f4]
mov byte [ebp - 4], 6
call fcn.00404560
lea eax, [ebp - 0x1440]
mov edx, 0x605c58
push eax
lea ecx, [ebp - 0x150c]
call fcn.004081a0
add esp, 4
push 0x605c54
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14f4]
call fcn.00405b00
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x145c]
mov byte [ebp - 4], 0xb
call fcn.00404620
lea ecx, [ebp - 0x14f4]
call fcn.00404560
lea ecx, [ebp - 0x150c]
mov byte [ebp - 4], 6
call fcn.00404560
push 0x605c60
lea ecx, [ebp - 0x145c]
call fcn.00408290
push 0x605c74
lea ecx, [ebp - 0x145c]
call fcn.00408290
push 0x605c90
lea ecx, [ebp - 0x145c]
call fcn.00408290
push 0x605ce8
lea ecx, [ebp - 0x145c]
call fcn.00408290
push 0x605d64
lea ecx, [ebp - 0x145c]
call fcn.00408290
push 0x605d80
lea ecx, [ebp - 0x145c]
call fcn.00408290
push 0x605da4
lea ecx, [ebp - 0x145c]
call fcn.00408290
cmp dword [ebp - 0x1448], 0x10
lea eax, [ebp - 0x145c]
push 0
push dword [ebp - 0x144c]
cmovae eax, dword [ebp - 0x145c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x43599d
mov byte [ebp - 0x14c0], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x150c]
call fcn.00418850
push eax
mov edx, 0x605da8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x14f4]
call fcn.00405a70
add esp, 4
lea ecx, [ebp - 0x14bc]
push eax
call fcn.004098b0
lea ecx, [ebp - 0x14f4]
call fcn.00404560
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x150c]
call fcn.00404560
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x14c0]
mov ecx, edi
push eax
call fcn.00413390
lea ecx, [ebp - 0x145c]
call fcn.00404560
jmp 0x43572f
push 0
push 0x1400
lea eax, [ebp - 0x1410]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x435a32
mov byte [ebp - 0x14c0], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x150c]
call fcn.00418850
push eax
mov edx, 0x605dc8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14f4]
call fcn.00405a70
add esp, 4
lea ecx, [ebp - 0x14bc]
push eax
call fcn.004098b0
lea ecx, [ebp - 0x14f4]
call fcn.00404560
lea ecx, [ebp - 0x150c]
mov byte [ebp - 4], 6
call fcn.00404560
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x14c0]
mov ecx, edi
push eax
call fcn.00413390
lea ecx, [ebp - 0x145c]
call fcn.00404560
jmp 0x43572f
push eax
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x14f4]
call fcn.00409880
push eax
lea ecx, [ebp - 0x14bc]
call fcn.004098b0
lea ecx, [ebp - 0x14f4]
jmp 0x435973
push 7
push 0x605c18
lea ecx, [ebp - 0x14bc]
mov byte [ebp - 0x14c0], 0
call fcn.00404c00
lea eax, [ebp - 0x14c0]
mov ecx, edi
push eax
call fcn.00413390
cmp dword [ebp - 0x1414], 0x10
jb 0x435a9a
push dword [ebp - 0x1428]
call fcn.00450388
add esp, 4
cmp dword [ebp - 0x142c], 0x10
mov dword [ebp - 0x1414], 0xf
mov dword [ebp - 0x1418], 0
mov byte [ebp - 0x1428], 0
jb 0x435acc
push dword [ebp - 0x1440]
call fcn.00450388
add esp, 4
cmp dword [ebp - 0x1490], 0x10
mov dword [ebp - 0x142c], 0xf
mov dword [ebp - 0x1430], 0
mov byte [ebp - 0x1440], 0
jb 0x435afe
push dword [ebp - 0x14a4]
call fcn.00450388
add esp, 4
cmp dword [ebp - 0x14a8], 0x10
mov dword [ebp - 0x1490], 0xf
mov dword [ebp - 0x1494], 0
mov byte [ebp - 0x14a4], 0
jb 0x435b30
push dword [ebp - 0x14bc]
call fcn.00450388
add esp, 4
mov dword [ebp - 0x14a8], 0xf
mov dword [ebp - 0x14ac], 0
mov byte [ebp - 0x14bc], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x435b5c
push dword [ebp + 8]
call fcn.00450388
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00578263
mov esp, ebp
pop ebp
ret