Function at 0x442740
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 0x5c8b77
mov eax, dword fs:[0]
push eax
mov eax, 0x1694
call fcn.0058d950
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00410520
mov byte [ebp - 4], 1
mov eax, 0x50
mov word [ebp - 0x1414], ax
lea ecx, [ebp - 0x1414]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1550], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00406610
mov dword [ebp - 0x1548], eax
lea eax, [ebp - 0x1458]
push eax
call fcn.00442580
add esp, 0x20
mov dword [ebp - 0x154c], eax
mov byte [ebp - 4], 2
push 0x614efb
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 3
push 0x614f42
lea ecx, [ebp - 0x1458]
push ecx
call fcn.0040a1b0
add esp, 8
movzx edx, al
test edx, edx
jne 0x44280f
movzx eax, word [ebp - 0x1414]
test eax, eax
jne 0x442888
mov byte [ebp - 0x14c4], 0
push 0x615e18
lea ecx, [ebp - 0x14c0]
call fcn.00408bc0
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406730
mov eax, dword [ebp + 8]
jmp 0x443122
lea ecx, [ebp - 0x1458]
call fcn.004067b0
push eax
call fcn.00443770
add esp, 4
movzx eax, al
test eax, eax
je 0x4428ba
lea ecx, [ebp - 0x1458]
push ecx
lea ecx, [ebp - 0x1470]
call fcn.00407150
jmp 0x44293b
push 0xc
lea ecx, [ebp - 0x147c]
call fcn.00408390
lea ecx, [ebp - 0x147c]
call fcn.00409f60
mov byte [ebp - 4], 4
lea edx, [ebp - 0x147c]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1544], esp
lea eax, [ebp - 0x1458]
push eax
call fcn.00406610
mov dword [ebp - 0x1538], eax
call fcn.00443640
add esp, 0x1c
mov byte [ebp - 0x14cd], al
movzx ecx, byte [ebp - 0x14cd]
test ecx, ecx
je 0x44292c
push 0
lea ecx, [ebp - 0x147c]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x1470]
call fcn.00407150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x147c]
call fcn.00409f90
push 0x614f43
lea edx, [ebp - 0x1470]
push edx
call fcn.0040a1b0
add esp, 8
movzx eax, al
test eax, eax
je 0x442a01
mov byte [ebp - 0x14c4], 0
push 0x615e20
lea ecx, [ebp - 0x1458]
push ecx
lea edx, [ebp - 0x15c8]
push edx
call fcn.0040f8e0
add esp, 0xc
mov dword [ebp - 0x14f8], eax
mov eax, dword [ebp - 0x14f8]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f660
lea ecx, [ebp - 0x15c8]
call fcn.00406730
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406730
mov eax, dword [ebp + 8]
jmp 0x443122
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x14cc], eax
mov dword [ebp - 0x1418], 0x1388
push 4
lea eax, [ebp - 0x1418]
push eax
push 0x1005
push 0xffff
mov ecx, dword [ebp - 0x14cc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x1418]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp - 0x14cc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
mov word [ebp - 0x1440], cx
xor edx, edx
mov dword [ebp - 0x143e], edx
mov dword [ebp - 0x143a], edx
mov dword [ebp - 0x1436], edx
mov word [ebp - 0x1432], dx
mov eax, 2
mov word [ebp - 0x1440], ax
movzx ecx, word [ebp - 0x1414]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x143e], ax
lea ecx, [ebp - 0x1470]
call fcn.004067b0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x143c], eax
push 0x10
lea edx, [ebp - 0x1440]
push edx
mov eax, dword [ebp - 0x14cc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x14d4], eax
cmp dword [ebp - 0x14d4], 0
je 0x442bd2
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x16a0]
push ecx
call fcn.00422520
add esp, 8
mov dword [ebp - 0x1508], eax
mov edx, dword [ebp - 0x1508]
mov dword [ebp - 0x1510], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1510]
push eax
push 0x615e30
lea ecx, [ebp - 0x1670]
push ecx
call fcn.00408be0
add esp, 0xc
mov dword [ebp - 0x1518], eax
mov edx, dword [ebp - 0x1518]
push edx
lea ecx, [ebp - 0x14c0]
call fcn.0040f660
lea ecx, [ebp - 0x1670]
call fcn.00406730
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16a0]
call fcn.00406730
mov eax, dword [ebp - 0x14cc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406730
mov eax, dword [ebp + 8]
jmp 0x443122
push 0x614f62
lea ecx, [ebp - 0x1430]
call fcn.004066a0
mov byte [ebp - 4], 6
push 0x615e44
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1540], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00406610
mov dword [ebp - 0x1534], eax
lea ecx, [ebp - 0x1688]
push ecx
call fcn.00442020
add esp, 0x1c
mov dword [ebp - 0x1520], eax
mov edx, dword [ebp - 0x1520]
mov dword [ebp - 0x1530], edx
mov byte [ebp - 4], 7
push 0x615e50
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x1568]
push ecx
call fcn.0040f8e0
add esp, 0xc
mov dword [ebp - 0x1528], eax
mov edx, dword [ebp - 0x1528]
mov dword [ebp - 0x151c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1530]
push eax
mov ecx, dword [ebp - 0x151c]
push ecx
lea edx, [ebp - 0x1628]
push edx
call fcn.00408c60
add esp, 0xc
mov dword [ebp - 0x1500], eax
mov eax, dword [ebp - 0x1500]
mov dword [ebp - 0x14e4], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14e4]
push ecx
lea edx, [ebp - 0x1598]
push edx
call fcn.00408c20
add esp, 0xc
mov dword [ebp - 0x150c], eax
mov eax, dword [ebp - 0x150c]
mov dword [ebp - 0x14ec], eax
mov ecx, dword [ebp - 0x14ec]
push ecx
lea ecx, [ebp - 0x1430]
call fcn.0040f660
lea ecx, [ebp - 0x1598]
call fcn.00406730
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1628]
call fcn.00406730
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1568]
call fcn.00406730
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1688]
call fcn.00406730
lea edx, [ebp - 0x1458]
push edx
push 0x615e58
lea eax, [ebp - 0x1658]
push eax
call fcn.0040de70
add esp, 0xc
mov dword [ebp - 0x152c], eax
mov ecx, dword [ebp - 0x152c]
mov dword [ebp - 0x14f4], ecx
mov byte [ebp - 4], 0xa
push 0x615e54
mov edx, dword [ebp - 0x14f4]
push edx
lea eax, [ebp - 0x15f8]
push eax
call fcn.00408c20
add esp, 0xc
mov dword [ebp - 0x1514], eax
mov ecx, dword [ebp - 0x1514]
mov dword [ebp - 0x14fc], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x14fc]
push edx
lea ecx, [ebp - 0x1430]
call fcn.0040df30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15f8]
call fcn.00406730
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1658]
call fcn.00406730
push 0x615e60
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0x615e74
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0x615e90
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0x615ee8
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0x615f64
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0x615f80
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0x615fa4
lea ecx, [ebp - 0x1430]
call fcn.0040df50
push 0
lea ecx, [ebp - 0x1430]
call fcn.00406bd0
push eax
lea ecx, [ebp - 0x1430]
call fcn.004067b0
push eax
mov eax, dword [ebp - 0x14cc]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x14d4], eax
cmp dword [ebp - 0x14d4], 0
jne 0x442f37
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x15b0]
push ecx
call fcn.00422520
add esp, 8
mov dword [ebp - 0x1524], eax
mov edx, dword [ebp - 0x1524]
mov dword [ebp - 0x1504], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1504]
push eax
push 0x615fa8
lea ecx, [ebp - 0x1580]
push ecx
call fcn.00408be0
add esp, 0xc
mov dword [ebp - 0x14dc], eax
mov edx, dword [ebp - 0x14dc]
push edx
lea ecx, [ebp - 0x14c0]
call fcn.0040f660
lea ecx, [ebp - 0x1580]
call fcn.00406730
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x15b0]
call fcn.00406730
mov eax, dword [ebp - 0x14cc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.00406730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406730
mov eax, dword [ebp + 8]
jmp 0x443122
mov dword [ebp - 0x153c], 0x1400
push 0
push 0x1400
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [ebp - 0x14cc]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14d4], eax
cmp dword [ebp - 0x14d4], 0
jne 0x44306d
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1610]
push edx
call fcn.00422520
add esp, 8
mov dword [ebp - 0x14e0], eax
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e8], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14e8]
push ecx
push 0x615fc8
lea edx, [ebp - 0x15e0]
push edx
call fcn.00408be0
add esp, 0xc
mov dword [ebp - 0x14f0], eax
mov eax, dword [ebp - 0x14f0]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f660
lea ecx, [ebp - 0x15e0]
call fcn.00406730
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1610]
call fcn.00406730
mov ecx, dword [ebp - 0x14cc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x14c4]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov eax, dword [ebp - 0x14c8]
or eax, 1
mov dword [ebp - 0x14c8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.00406730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406730
mov eax, dword [ebp + 8]
jmp 0x443122
mov ecx, dword [ebp - 0x14d4]
push ecx
lea edx, [ebp - 0x1410]
push edx
lea ecx, [ebp - 0x1640]
call fcn.0040f620
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp - 0x14d8]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f660
lea ecx, [ebp - 0x1640]
call fcn.00406730
mov ecx, dword [ebp - 0x14cc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x14c4]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov eax, dword [ebp - 0x14c8]
or eax, 1
mov dword [ebp - 0x14c8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.00406730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058851b
mov esp, ebp
pop ebp
ret