Function at 0x455420
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Make an http request with a cookie
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
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 0x50a35b
mov eax, dword fs:[0]
push eax
mov eax, 0x1954
call fcn.004e5300
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1960], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x195c], eax
test ecx, ecx
je 0x4558f3
cmp byte [ecx], 0
je 0x4558f3
push ecx
lea ecx, [ebp - 0x1940]
call fcn.00401d30
mov dword [ebp - 4], 0
jmp 0x455490
cmp dword [ebp - 0x192c], 0x10
lea eax, [ebp - 0xbb]
push 0x7f
push 0
lea esi, [ebp - 0x1940]
mov byte [ebp - 0xbc], 0
cmovae esi, dword [ebp - 0x1940]
push eax
call fcn.004e4b60
push 0x52d828
push esi
mov dword [ebp - 0x1954], 0x50
call fcn.004e1f30
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4554e6
mov eax, esi
neg eax
cmp eax, 0x13
jg 0x4558e1
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xbc]
push 0x80
push eax
call fcn.004e261e
lea eax, [ebp - 0xbc]
add edi, 3
push str.http
push eax
call fcn.004e26fb
add esp, 0x18
test eax, eax
jne 0x4558e1
push 0x2f
push edi
call fcn.004e21a0
mov esi, eax
lea eax, [ebp - 0xbc]
push 0x80
push 0
push eax
mov dword [ebp - 0x1958], esi
call fcn.004e4b60
mov eax, esi
sub eax, edi
push eax
push edi
lea eax, [ebp - 0xbc]
push 0x80
push eax
call fcn.004e261e
lea eax, [ebp - 0xbc]
push 0x3a
push eax
call fcn.004e21a0
mov ecx, eax
mov byte [ebp - 0x3c], 0
add esp, 0x2c
mov word [ebp - 0x2b], 0
mov byte [ebp - 0x29], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x3b], xmm0
test ecx, ecx
je 0x4555bd
lea edx, [ebp - 0xbc]
sub eax, edx
cmp eax, 0x80
jae 0x45589b
mov byte [ebp + eax - 0xbc], 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.004e2945
lea eax, [ebp - 0x3c]
push eax
call fcn.004e2391
add esp, 0x10
mov esi, eax
jmp 0x4555c3
mov esi, dword [ebp - 0x1954]
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov word [ebp - 0x17], 0
mov byte [ebp - 0x15], 0
movdqu xmmword [ebp - 0x27], xmm0
cmp esi, 0x50
je 0x4555fa
lea eax, [esi - 1]
cmp eax, 0xfffe
ja 0x4555fa
push esi
lea eax, [ebp - 0x28]
push 0x52d838
push eax
call fcn.0043bcb0
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov edi, eax
mov dword [ebp - 0x1928], 0x2710
lea eax, [ebp - 0x1928]
push eax
push 0x1005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0xbc]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x1950], xmm0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x455661
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x194c]
push eax
call fcn.004e4510
add esp, 0xc
mov eax, 2
push esi
mov word [ebp - 0x1950], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x194e], ax
lea eax, [ebp - 0x1950]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
push 0x3ff
lea eax, [ebp - 0x523]
mov byte [ebp - 0x524], 0
push 0
push eax
call fcn.004e4b60
push 0x3ff
lea eax, [ebp - 0x923]
mov byte [ebp - 0x924], 0
push 0
push eax
call fcn.004e4b60
mov esi, dword [ebp - 0x1960]
add esp, 0x18
test esi, esi
je 0x455712
cmp byte [esi], 0
je 0x455712
push str.referer:
lea eax, [ebp - 0x524]
push 0x400
push eax
call fcn.004e2945
push esi
lea eax, [ebp - 0x524]
push 0x400
push eax
call fcn.004e1c45
push 0x529e10
lea eax, [ebp - 0x524]
push 0x400
push eax
call fcn.004e1c45
add esp, 0x24
mov esi, dword [ebp - 0x195c]
test esi, esi
je 0x455762
cmp byte [esi], 0
je 0x455762
push str.Cookie:
lea eax, [ebp - 0x924]
push 0x400
push eax
call fcn.004e2945
push esi
lea eax, [ebp - 0x924]
push 0x400
push eax
call fcn.004e1c45
push 0x529e10
lea eax, [ebp - 0x924]
push 0x400
push eax
call fcn.004e1c45
add esp, 0x24
push 0x7ff
lea eax, [ebp - 0x1923]
mov byte [ebp - 0x1924], 0
push 0
push eax
call fcn.004e4b60
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x1958]
lea eax, [ebp - 0x1924]
push str.GET__s_HTTP_1.1_r_nHost:__s_s_r_nAccept:__r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0__r_nConnection:close_r_nCache_Control:_no_cache_r_n_s_s_r_n
push eax
call fcn.00455a80
lea ecx, [ebp - 0x1924]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4557b8
push 0
sub ecx, edx
lea eax, [ebp - 0x1924]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0x7ff
lea eax, [ebp - 0x1123]
mov byte [ebp - 0x1124], 0
push 0
push eax
call fcn.004e4b60
add esp, 0xc
lea eax, [ebp - 0x1124]
push 0
push 0x7ff
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x1940]
push eax
push ecx
lea ecx, [ebp - 0x1124]
call fcn.00455920
add esp, 8
cmp eax, 0xffffffff
je 0x4558e1
cmp eax, 0xfffffffe
je 0x455490
push 0x63
lea eax, [ebp - 0x123]
mov byte [ebp - 0x124], 0
push 0
push eax
call fcn.004e4b60
lea eax, [ebp - 0x1124]
push str.Content_Length:
push eax
call fcn.004e1f30
add esp, 0x14
test eax, eax
je 0x4558a0
mov cl, byte [eax + 0xf]
add eax, 0xf
test cl, cl
je 0x4558b6
cmp cl, 0xd
je 0x455886
lea edx, [ebp - 0x124]
mov byte [edx], cl
lea eax, [eax + 1]
mov cl, byte [eax]
lea edx, [edx + 1]
cmp cl, 0xd
jne 0x455877
lea eax, [ebp - 0x124]
mov dl, 0x20
push eax
mov ecx, eax
call fcn.004541c0
add esp, 4
jmp 0x4558b6
call fcn.004e34a5
push 0x52d8f8
lea eax, [ebp - 0x124]
push 0x64
push eax
call fcn.004e2945
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call fcn.004e237d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1940]
mov esi, eax
mov edi, edx
call fcn.00401d90
mov eax, esi
mov edx, edi
jmp 0x4558f7
lea ecx, [ebp - 0x1940]
mov dword [ebp - 4], 0xffffffff
call fcn.00401d90
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret