Function at 0x4421e0
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 0x5c8767
mov eax, dword fs:[0]
push eax
mov eax, 0x1694
call fcn.0058d600
mov eax, dword [0x641490]
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.004104d0
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.004065b0
mov dword [ebp - 0x1548], eax
lea eax, [ebp - 0x1458]
push eax
call fcn.00442020
add esp, 0x20
mov dword [ebp - 0x154c], eax
mov byte [ebp - 4], 2
push 0x613f6a
lea ecx, [ebp - 0x1470]
call fcn.00406640
mov byte [ebp - 4], 3
push 0x613f6b
lea ecx, [ebp - 0x1458]
push ecx
call fcn.0040a150
add esp, 8
movzx edx, al
test edx, edx
jne 0x4422af
movzx eax, word [ebp - 0x1414]
test eax, eax
jne 0x442328
mov byte [ebp - 0x14c4], 0
push 0x614e68
lea ecx, [ebp - 0x14c0]
call fcn.00408b60
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x442bc2
lea ecx, [ebp - 0x1458]
call fcn.00406750
push eax
call fcn.00443220
add esp, 4
movzx eax, al
test eax, eax
je 0x44235a
lea ecx, [ebp - 0x1458]
push ecx
lea ecx, [ebp - 0x1470]
call fcn.004070f0
jmp 0x4423db
push 0xc
lea ecx, [ebp - 0x147c]
call fcn.00408330
lea ecx, [ebp - 0x147c]
call fcn.00409f00
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.004065b0
mov dword [ebp - 0x1538], eax
call fcn.004430f0
add esp, 0x1c
mov byte [ebp - 0x14cd], al
movzx ecx, byte [ebp - 0x14cd]
test ecx, ecx
je 0x4423cc
push 0
lea ecx, [ebp - 0x147c]
call fcn.00409f50
push eax
lea ecx, [ebp - 0x1470]
call fcn.004070f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x147c]
call fcn.00409f30
push 0x613f8a
lea edx, [ebp - 0x1470]
push edx
call fcn.0040a150
add esp, 8
movzx eax, al
test eax, eax
je 0x4424a1
mov byte [ebp - 0x14c4], 0
push 0x614e70
lea ecx, [ebp - 0x1458]
push ecx
lea edx, [ebp - 0x15c8]
push edx
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x14f8], eax
mov eax, dword [ebp - 0x14f8]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f610
lea ecx, [ebp - 0x15c8]
call fcn.004066d0
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x442bc2
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.00406750
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 0x442672
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x16a0]
push ecx
call fcn.004224a0
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 0x614e80
lea ecx, [ebp - 0x1670]
push ecx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x1518], eax
mov edx, dword [ebp - 0x1518]
push edx
lea ecx, [ebp - 0x14c0]
call fcn.0040f610
lea ecx, [ebp - 0x1670]
call fcn.004066d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16a0]
call fcn.004066d0
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.0041b4e0
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x442bc2
push 0x613f8b
lea ecx, [ebp - 0x1430]
call fcn.00406640
mov byte [ebp - 4], 6
push 0x614e94
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1540], esp
lea eax, [ebp + 0xc]
push eax
call fcn.004065b0
mov dword [ebp - 0x1534], eax
lea ecx, [ebp - 0x1688]
push ecx
call fcn.00441ac0
add esp, 0x1c
mov dword [ebp - 0x1520], eax
mov edx, dword [ebp - 0x1520]
mov dword [ebp - 0x1530], edx
mov byte [ebp - 4], 7
push 0x614ea0
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x1568]
push ecx
call fcn.0040f890
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.00408c00
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.00408bc0
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.0040f610
lea ecx, [ebp - 0x1598]
call fcn.004066d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1628]
call fcn.004066d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1568]
call fcn.004066d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1688]
call fcn.004066d0
lea edx, [ebp - 0x1458]
push edx
push 0x614ea8
lea eax, [ebp - 0x1658]
push eax
call fcn.0040de10
add esp, 0xc
mov dword [ebp - 0x152c], eax
mov ecx, dword [ebp - 0x152c]
mov dword [ebp - 0x14f4], ecx
mov byte [ebp - 4], 0xa
push 0x614ea4
mov edx, dword [ebp - 0x14f4]
push edx
lea eax, [ebp - 0x15f8]
push eax
call fcn.00408bc0
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.0040ded0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15f8]
call fcn.004066d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1658]
call fcn.004066d0
push 0x614eb0
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0x614ec4
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0x614ee0
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0x614f38
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0x614fb4
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0x614fd0
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0x614ff4
lea ecx, [ebp - 0x1430]
call fcn.0040def0
push 0
lea ecx, [ebp - 0x1430]
call fcn.00406b70
push eax
lea ecx, [ebp - 0x1430]
call fcn.00406750
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 0x4429d7
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x15b0]
push ecx
call fcn.004224a0
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 0x614ff8
lea ecx, [ebp - 0x1580]
push ecx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x14dc], eax
mov edx, dword [ebp - 0x14dc]
push edx
lea ecx, [ebp - 0x14c0]
call fcn.0040f610
lea ecx, [ebp - 0x1580]
call fcn.004066d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x15b0]
call fcn.004066d0
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.0041b4e0
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.004066d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x442bc2
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 0x442b0d
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1610]
push edx
call fcn.004224a0
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 0x615018
lea edx, [ebp - 0x15e0]
push edx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x14f0], eax
mov eax, dword [ebp - 0x14f0]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f610
lea ecx, [ebp - 0x15e0]
call fcn.004066d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1610]
call fcn.004066d0
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.0041b4e0
mov eax, dword [ebp - 0x14c8]
or eax, 1
mov dword [ebp - 0x14c8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.004066d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x442bc2
mov ecx, dword [ebp - 0x14d4]
push ecx
lea edx, [ebp - 0x1410]
push edx
lea ecx, [ebp - 0x1640]
call fcn.0040f5d0
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp - 0x14d8]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f610
lea ecx, [ebp - 0x1640]
call fcn.004066d0
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.0041b4e0
mov eax, dword [ebp - 0x14c8]
or eax, 1
mov dword [ebp - 0x14c8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.004066d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
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.005881d6
mov esp, ebp
pop ebp
ret