Function at 0x408cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d59c9
mov eax, dword fs:[0]
push eax
mov eax, 0x2964
call fcn.00491740
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28f4], edi
mov dword [ebp - 0x2918], edi
mov dword [ebp - 0x28ec], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28ec], 1
movlpd qword [ebp - 0x2744], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.004789f6
mov dword [ebp - 0x28f4], eax
mov dword [ebp - 0x2740], eax
mov dword [ebp - 0x272c], 0
mov dword [ebp - 0x2728], 0xf
mov byte [ebp - 0x273c], 0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 5
push eax
mov edx, str.GET__
mov byte [ebp - 0x28e5], 1
lea ecx, [ebp - 0x2948]
call fcn.00438f40
add esp, 8
push str._HTTP_1.1_r_nHost:
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00431940
mov dword [ebp - 0x2904], 0
mov dword [ebp - 0x2900], 0
mov dword [ebp - 0x28ec], 3
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2914], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2904], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x2914]
lea ecx, [ebp - 0x2930]
call fcn.00439720
add esp, 4
push str._r_nConnection:_close_r_n_r_n
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00431940
mov dword [ebp - 0x28ec], 7
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x2728]
movq qword [ebp - 0x28fc], xmm1
movq qword [ebp - 0x2950], xmm1
movups xmmword [ebp - 0x2970], xmm0
movups xmmword [ebp - 0x2960], xmm0
cmp edx, 0x10
jb 0x408e86
mov ecx, dword [ebp - 0x273c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409291
push edx
push ecx
call fcn.00490c3c
movups xmm0, xmmword [ebp - 0x2970]
add esp, 8
movq xmm1, qword [ebp - 0x28fc]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x291c]
movq qword [ebp - 0x272c], xmm1
mov dword [ebp - 0x2950], 0
mov dword [ebp - 0x294c], 0xf
mov byte [ebp - 0x2960], 0
movups xmmword [ebp - 0x273c], xmm0
cmp edx, 0x10
jb 0x408eee
mov ecx, dword [ebp - 0x2930]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ee4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409291
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2900]
mov dword [ebp - 0x2920], 0
mov dword [ebp - 0x291c], 0xf
mov byte [ebp - 0x2930], 0
cmp edx, 0x10
jb 0x408f47
mov ecx, dword [ebp - 0x2914]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409291
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2934]
mov dword [ebp - 0x2904], 0
mov dword [ebp - 0x2900], 0xf
mov byte [ebp - 0x2914], 0
cmp edx, 0x10
jb 0x408fa0
mov ecx, dword [ebp - 0x2948]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409291
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov dword [ebp - 0x2938], 0
lea eax, [ebp + 0x20]
mov dword [ebp - 0x2934], 0xf
mov ecx, 0x18
mov byte [ebp - 0x2948], 0
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408fc3
lea eax, [ebp - 0x28e4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [ebp - 0x28e5]
xor edx, edx
push 6
test eax, eax
push 1
cmovne ecx, edx
push 2
mov dword [ebp - 0x2724], ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x28f0], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0xe02
mov esi, eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2752], ax
mov eax, 2
mov word [ebp - 0x2754], ax
mov eax, dword [esi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x2750], eax
lea eax, [ebp - 0x2754]
push eax
push dword [ebp - 0x28f0]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x409066
cmp byte [ebp - 0x2724], al
jne 0x409074
push 3
push 0x4fb034
mov ecx, edi
call fcn.00431800
mov edx, dword [ebp - 0x2728]
lea ecx, [ebp - 0x273c]
mov esi, dword [ebp - 0x273c]
cmp edx, 0x10
cmovae ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x2724], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409095
sub ecx, dword [ebp - 0x2724]
lea eax, [ebp - 0x273c]
push 0
cmp edx, 0x10
push ecx
cmovae eax, esi
mov esi, dword [ebp - 0x28f0]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x40916d
push 0
push 0x4f820f
mov ecx, edi
call fcn.00431800
push 0
push 0x2710
lea eax, [ebp - 0x2720]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40916d
lea esi, [ebp - 0x2720]
mov al, byte [esi]
cmp al, 0x20
jge 0x409106
cmp al, 0xa
je 0x409106
cmp al, 0xd
jne 0x40914e
mov edx, dword [edi + 0x10]
mov byte [ebp - 0x2724], al
cmp edx, dword [edi + 0x14]
jae 0x40912f
cmp dword [edi + 0x14], 0x10
lea ecx, [edx + 1]
mov dword [edi + 0x10], ecx
mov ecx, edi
jb 0x409124
mov ecx, dword [edi]
mov byte [ecx + edx], al
inc esi
mov byte [ecx + edx + 1], 0
jmp 0x4090f8
push dword [ebp - 0x2724]
mov byte [ebp - 0x28f8], 0
mov ecx, edi
push dword [ebp - 0x28f8]
push 1
call fcn.0043ba60
inc esi
jmp 0x4090f8
mov esi, dword [ebp - 0x28f0]
lea eax, [ebp - 0x2720]
push 0
push 0x2710
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4090f2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x18
lea eax, [ebp - 0x273c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x409185
mov edx, dword [ebp - 0x2728]
cmp edx, 0x10
jb 0x4091ca
mov ecx, dword [ebp - 0x273c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4091c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409296
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov ecx, dword [ebp - 0x28f4]
mov dword [ebp - 0x272c], 0
mov dword [ebp - 0x2728], 0xf
mov byte [ebp - 0x273c], 0
test ecx, ecx
je 0x409202
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x409202
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x409232
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409228
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409296
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x409274
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40926a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409296
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004905bb
mov esp, ebp
pop ebp
ret
call fcn.004b5132
call fcn.004b5132
int3