Function at 0x40ab10
Capabilities:
Make an http request with a cookie
Receive data
Receive data on socket
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 0xfffffffffffffffe
push 0x451e60
push 0x422bc0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x13fc
call fcn.00439190
mov eax, dword [0x453348]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1408], eax
mov eax, dword [ebp + 0x60]
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x10]
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x40ab70
mov eax, dword [eax]
push ecx
push eax
lea esi, [ebp - 0x13e4]
call fcn.004011a0
push edi
lea ecx, [ebp + 0xc]
call fcn.00409ee0
add esp, 0xc
mov dword [ebp - 0x1404], eax
mov dword [ebp - 0x1414], 0x3c
mov dword [ebp - 0x1410], edi
push 8
lea ecx, [ebp - 0x1414]
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x3c]
cmp esi, ebx
mov eax, dword [ebp + 0x28]
jae 0x40abc6
lea eax, [ebp + 0x28]
mov ecx, 0x44e684
jmp 0x40abd0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40abf0
test dl, dl
je 0x40abec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40abf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40abd0
xor eax, eax
jmp 0x40abf5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40ac70
cmp dword [0x456048], ebx
mov edi, dword [0x456034]
jae 0x40ac0c
mov edi, 0x456034
cmp dword [0x45602c], ebx
mov esi, dword [0x456018]
jae 0x40ac1f
mov esi, 0x456018
lea ebx, [ebp + 0x44]
lea eax, [ebp - 0x1400]
call fcn.00417730
cmp dword [eax + 0x14], 0x10
jb 0x40ac35
mov eax, dword [eax]
cmp dword [ebp + 0x3c], 0x10
mov ecx, dword [ebp + 0x28]
jae 0x40ac41
lea ecx, [ebp + 0x28]
push edi
mov edi, dword [ebp - 0x13d4]
push edi
push esi
push eax
push ecx
push str._s__s_HTTP_1.1_r_nHost:__s_r_nContent_Type:_applicationx_form_urlencoded_r_nContent_Length:__d_r_nCookie:__s_r_nConnection:_close_r_n_r_n
lea edx, [ebp - 0x13ac]
push edx
call fcn.0041d551
add esp, 0x1c
lea ecx, [ebp - 0x1400]
call fcn.00401880
jmp 0x40ad1a
cmp esi, ebx
mov eax, dword [ebp + 0x28]
jae 0x40ac7a
lea eax, [ebp + 0x28]
mov ecx, 0x44e1b8
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aca0
test dl, dl
je 0x40ac9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aca0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ac80
xor eax, eax
jmp 0x40aca5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40ad14
cmp dword [0x456048], ebx
mov edi, dword [0x456034]
jae 0x40acbc
mov edi, 0x456034
cmp dword [0x45602c], ebx
mov esi, dword [0x456018]
jae 0x40accf
mov esi, 0x456018
lea ebx, [ebp + 0x44]
lea eax, [ebp - 0x1400]
call fcn.00417730
cmp dword [eax + 0x14], 0x10
jb 0x40ace5
mov eax, dword [eax]
cmp dword [ebp + 0x3c], 0x10
mov ecx, dword [ebp + 0x28]
jae 0x40acf1
lea ecx, [ebp + 0x28]
push edi
push esi
push eax
push ecx
push str._s__s_HTTP_1.1_r_nHost:__s_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_nAccept_Language:_en_US_en_q0.5_r_nAccept_Encoding:_gzip__deflate_r_nCookie:__s_r_nConnection:_close_r_n_r_n
lea eax, [ebp - 0x13ac]
push eax
call fcn.0041d551
add esp, 0x18
lea ecx, [ebp - 0x1400]
call fcn.00401880
mov edi, dword [ebp - 0x13d4]
lea eax, [ebp - 0x13ac]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad23
sub eax, edx
push 0
push eax
lea ecx, [ebp - 0x13ac]
push ecx
mov edx, dword [ebp - 0x1404]
push edx
mov ebx, dword [sym.imp.WS2_32.dll_send]
call ebx
cmp eax, 0xffffffff
jne 0x40ad67
push 0x44dbd8
mov esi, dword [ebp - 0x1408]
mov ecx, esi
call fcn.00401820
lea ecx, [ebp - 0x13e4]
jmp 0x40af3f
test edi, edi
je 0x40adf3
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x40ad7b
lea eax, [ebp + 0x28]
mov ecx, 0x44e684
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ada0
test dl, dl
je 0x40ad9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ada0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ad80
xor eax, eax
jmp 0x40ada5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40adf3
push edi
call fcn.0041d9c1
add esp, 4
mov esi, eax
cmp dword [ebp - 0x13d0], 0x10
mov eax, dword [ebp - 0x13e4]
jae 0x40adc9
lea eax, [ebp - 0x13e4]
push edi
push eax
push esi
call fcn.00428ca0
add esp, 0xc
push 0
push edi
push esi
mov eax, dword [ebp - 0x1404]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40ad4a
push esi
call fcn.0041e914
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x140c], ebx
lea ecx, [ebp - 0x13c8]
call fcn.00401800
mov dword [ebp - 0x140c], ebx
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x1388
lea ecx, [ebp - 0x13ac]
push ecx
mov edx, dword [ebp - 0x1404]
push edx
call edi
test eax, eax
jns 0x40ae3b
inc ebx
mov dword [ebp - 0x140c], ebx
cmp ebx, 0x32
jge 0x40ae41
jmp 0x40ae12
jne 0x40aedf
push 0
lea eax, [ebp - 0x13c8]
push eax
mov edx, str._r_n_r_n
call fcn.0040fa10
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40ae9f
test ecx, ecx
jle 0x40ae9f
mov eax, dword [ebp - 0x13b8]
lea edx, [eax - 4]
cmp ecx, edx
jae 0x40ae9f
sub eax, ecx
sub eax, 4
add ecx, 4
lea esi, [ebp - 0x1400]
lea edx, [ebp - 0x13c8]
call fcn.0040faa0
mov edi, eax
lea esi, [ebp - 0x13c8]
call fcn.00401900
lea ecx, [ebp - 0x1400]
call fcn.00401880
jmp 0x40aeb0
lea eax, [ebp - 0x13c8]
push eax
mov edx, 0x44dbd8
call fcn.0040f8f0
mov ecx, dword [ebp - 0x1404]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edi, [ebp - 0x13c8]
mov esi, dword [ebp - 0x1408]
mov eax, esi
call fcn.00401860
mov ecx, edi
call fcn.00401880
lea ecx, [ebp - 0x13e4]
jmp 0x40af3f
lea ecx, [ebp - 0x13ac]
lea esi, [ebp - 0x1400]
call fcn.0040f890
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x13c8]
call fcn.00414380
lea ecx, [ebp - 0x1400]
call fcn.00401880
jmp 0x40ae12
call fcn.00401880
lea ecx, [ebp + 0xc]
call fcn.00401880
lea ecx, [ebp + 0x28]
call fcn.00401880
lea ecx, [ebp + 0x44]
call fcn.00401880
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret