Function at 0x441ed0
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 0x5c8257
mov eax, dword fs:[0]
push eax
mov eax, 0x1694
call fcn.0058d150
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.00410490
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.00406580
mov dword [ebp - 0x1548], eax
lea eax, [ebp - 0x1458]
push eax
call fcn.00441d10
add esp, 0x20
mov dword [ebp - 0x154c], eax
mov byte [ebp - 4], 2
push 0x613f5a
lea ecx, [ebp - 0x1470]
call fcn.00406610
mov byte [ebp - 4], 3
push 0x613f5b
lea ecx, [ebp - 0x1458]
push ecx
call fcn.0040a120
add esp, 8
movzx edx, al
test edx, edx
jne 0x441f9f
movzx eax, word [ebp - 0x1414]
test eax, eax
jne 0x442018
mov byte [ebp - 0x14c4], 0
push 0x614df8
lea ecx, [ebp - 0x14c0]
call fcn.00408b30
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066a0
mov eax, dword [ebp + 8]
jmp 0x4428b2
lea ecx, [ebp - 0x1458]
call fcn.00406720
push eax
call fcn.00442f00
add esp, 4
movzx eax, al
test eax, eax
je 0x44204a
lea ecx, [ebp - 0x1458]
push ecx
lea ecx, [ebp - 0x1470]
call fcn.004070c0
jmp 0x4420cb
push 0xc
lea ecx, [ebp - 0x147c]
call fcn.00408300
lea ecx, [ebp - 0x147c]
call fcn.00409ed0
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.00406580
mov dword [ebp - 0x1538], eax
call fcn.00442dd0
add esp, 0x1c
mov byte [ebp - 0x14cd], al
movzx ecx, byte [ebp - 0x14cd]
test ecx, ecx
je 0x4420bc
push 0
lea ecx, [ebp - 0x147c]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x1470]
call fcn.004070c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x147c]
call fcn.00409f00
push 0x613f7a
lea edx, [ebp - 0x1470]
push edx
call fcn.0040a120
add esp, 8
movzx eax, al
test eax, eax
je 0x442191
mov byte [ebp - 0x14c4], 0
push 0x614e00
lea ecx, [ebp - 0x1458]
push ecx
lea edx, [ebp - 0x15c8]
push edx
call fcn.0040f850
add esp, 0xc
mov dword [ebp - 0x14f8], eax
mov eax, dword [ebp - 0x14f8]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f5d0
lea ecx, [ebp - 0x15c8]
call fcn.004066a0
lea ecx, [ebp - 0x14c4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066a0
mov eax, dword [ebp + 8]
jmp 0x4428b2
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.00406720
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 0x442362
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x16a0]
push ecx
call fcn.00422460
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 0x614e10
lea ecx, [ebp - 0x1670]
push ecx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x1518], eax
mov edx, dword [ebp - 0x1518]
push edx
lea ecx, [ebp - 0x14c0]
call fcn.0040f5d0
lea ecx, [ebp - 0x1670]
call fcn.004066a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16a0]
call fcn.004066a0
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.0041b490
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066a0
mov eax, dword [ebp + 8]
jmp 0x4428b2
push 0x613f7b
lea ecx, [ebp - 0x1430]
call fcn.00406610
mov byte [ebp - 4], 6
push 0x614e24
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1540], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00406580
mov dword [ebp - 0x1534], eax
lea ecx, [ebp - 0x1688]
push ecx
call fcn.004417b0
add esp, 0x1c
mov dword [ebp - 0x1520], eax
mov edx, dword [ebp - 0x1520]
mov dword [ebp - 0x1530], edx
mov byte [ebp - 4], 7
push 0x614e30
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x1568]
push ecx
call fcn.0040f850
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.00408bd0
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.00408b90
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.0040f5d0
lea ecx, [ebp - 0x1598]
call fcn.004066a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1628]
call fcn.004066a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1568]
call fcn.004066a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1688]
call fcn.004066a0
lea edx, [ebp - 0x1458]
push edx
push 0x614e38
lea eax, [ebp - 0x1658]
push eax
call fcn.0040dde0
add esp, 0xc
mov dword [ebp - 0x152c], eax
mov ecx, dword [ebp - 0x152c]
mov dword [ebp - 0x14f4], ecx
mov byte [ebp - 4], 0xa
push 0x614e34
mov edx, dword [ebp - 0x14f4]
push edx
lea eax, [ebp - 0x15f8]
push eax
call fcn.00408b90
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.0040dea0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15f8]
call fcn.004066a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1658]
call fcn.004066a0
push 0x614e40
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0x614e54
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0x614e70
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0x614ec8
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0x614f44
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0x614f60
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0x614f84
lea ecx, [ebp - 0x1430]
call fcn.0040dec0
push 0
lea ecx, [ebp - 0x1430]
call fcn.00406b40
push eax
lea ecx, [ebp - 0x1430]
call fcn.00406720
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 0x4426c7
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x15b0]
push ecx
call fcn.00422460
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 0x614f88
lea ecx, [ebp - 0x1580]
push ecx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x14dc], eax
mov edx, dword [ebp - 0x14dc]
push edx
lea ecx, [ebp - 0x14c0]
call fcn.0040f5d0
lea ecx, [ebp - 0x1580]
call fcn.004066a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x15b0]
call fcn.004066a0
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.0041b490
mov edx, dword [ebp - 0x14c8]
or edx, 1
mov dword [ebp - 0x14c8], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.004066a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066a0
mov eax, dword [ebp + 8]
jmp 0x4428b2
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 0x4427fd
mov byte [ebp - 0x14c4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1610]
push edx
call fcn.00422460
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 0x614fa8
lea edx, [ebp - 0x15e0]
push edx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x14f0], eax
mov eax, dword [ebp - 0x14f0]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f5d0
lea ecx, [ebp - 0x15e0]
call fcn.004066a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1610]
call fcn.004066a0
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.0041b490
mov eax, dword [ebp - 0x14c8]
or eax, 1
mov dword [ebp - 0x14c8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.004066a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066a0
mov eax, dword [ebp + 8]
jmp 0x4428b2
mov ecx, dword [ebp - 0x14d4]
push ecx
lea edx, [ebp - 0x1410]
push edx
lea ecx, [ebp - 0x1640]
call fcn.0040f590
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp - 0x14d8]
push eax
lea ecx, [ebp - 0x14c0]
call fcn.0040f5d0
lea ecx, [ebp - 0x1640]
call fcn.004066a0
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.0041b490
mov eax, dword [ebp - 0x14c8]
or eax, 1
mov dword [ebp - 0x14c8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.004066a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1470]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1458]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c4]
call fcn.00409a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066a0
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.00587d2b
mov esp, ebp
pop ebp
ret