Function at 0x402760
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
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 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42753a
push eax
mov eax, 0x9b99c
mov dword fs:[0], esp
call fcn.004153a0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x38], 0
push 0x439958
lea ecx, [esp + 0x18]
mov dword [esp + 0x9b9b8], 4
call fcn.00421a83
lea eax, [esp + 0x5c]
mov byte [esp + 0x9b9b4], 5
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4027cd
push str.Error_at_WSAStartup___n
call fcn.00414aa3
add esp, 4
mov edi, 1
push 6
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40281a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_at_socket__:__ld_n
call fcn.00414aa3
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x9b9bc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004217a8
mov dword [esp + 0x38], edi
jmp 0x403222
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x44]
push 4
push edx
push 0x1005
mov eax, 0x3a98
push 0xffff
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call esi
lea eax, [esp + 0x48]
push 4
push eax
push 0x1006
push 0xffff
push ebp
call esi
push ecx
lea edx, [esp + 0x9b9c4]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004217a8
lea eax, [esp + 0x38]
push eax
call fcn.00402160
add esp, 4
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x9b9bc], 6
call fcn.004217a8
lea eax, [esp + 0x40]
push eax
call fcn.00402320
add esp, 8
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x9b9b4], 7
push ecx
mov word [esp + 0x50], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x50
mov dword [esp + 0x54], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x4c]
push 0x10
push edx
push ebp
mov word [esp + 0x5a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402908
push str.Failed_to_connect._n
call fcn.00414aa3
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x9b9bc]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004217a8
mov dword [esp + 0x38], edi
jmp 0x403200
mov dl, byte [0x439958]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1ed]
mov byte [esp + 0x1ec], dl
mov byte [esp + 0x11ec], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc34f
xor eax, eax
lea edi, [esp + 0x11ed]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x9b9c0]
push ecx
lea ecx, [esp + 0x34]
stosb byte es:[edi], al
call fcn.004217a8
push 7
lea edx, [esp + 0x28]
push 0
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9b9c0], 8
call fcn.00420e4e
mov eax, dword [eax]
push str.http:__
push eax
call fcn.004149c5
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call fcn.00421a15
test bl, bl
je 0x4029d1
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 6
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00420e2b
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x9b9b8], 9
call fcn.00421b02
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b4], 8
call fcn.00421a15
mov ecx, dword [esp + 0x30]
push 0x439958
push ecx
call fcn.004149c5
add esp, 8
test eax, eax
jne 0x4029f5
push 0x43551c
lea ecx, [esp + 0x34]
call fcn.00421b52
mov edx, dword [0x4361f0]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push str.GET
push ecx
mov byte [esp + 0x9b9c0], 0xa
call fcn.00421cd2
push str._HTTP_1.1
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x9b9c0], 0xb
call fcn.00421c5e
push 0x43574c
push eax
lea eax, [esp + 0x2c]
mov bl, 0xc
push eax
mov byte [esp + 0x9b9c0], bl
call fcn.00421c5e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b8], 0xd
call fcn.00421b02
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b4], 0xb
call fcn.00421a15
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], 0xa
call fcn.00421a15
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword__application_x_gsarcade_launch____r_n
lea ecx, [esp + 0x24]
call fcn.00421da5
push ecx
lea edx, [esp + 0x9b9c8]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004217a8
lea eax, [esp + 0x14]
push eax
call fcn.00401a20
mov eax, dword [eax]
push 0x439958
push eax
call fcn.004149c5
add esp, 0x10
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00421a15
test bl, bl
je 0x402b41
lea ecx, [esp + 0x9b9c4]
lea edx, [esp + 0x1c]
push ecx
push str.Referer:
push edx
call fcn.00421cd2
push 0x43574c
push eax
lea eax, [esp + 0x18]
mov bl, 0xe
push eax
mov byte [esp + 0x9b9c0], bl
call fcn.00421c5e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b8], 0xf
call fcn.00421dcc
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b4], 0xa
call fcn.00421a15
push str.Accept_Language:_en_us_r_n
lea ecx, [esp + 0x24]
call fcn.00421da5
push ecx
lea edx, [esp + 0x9b9cc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004217a8
lea eax, [esp + 0x14]
push eax
call fcn.00401a20
mov eax, dword [eax]
push 0x439958
push eax
call fcn.004149c5
add esp, 0x10
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00421a15
test bl, bl
je 0x402bf2
lea ecx, [esp + 0x9b9c8]
lea edx, [esp + 0x1c]
push ecx
push str.Cookie:
push edx
call fcn.00421cd2
push 0x43574c
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x9b9bc], 0x10
push eax
call fcn.00421c5e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b8], 0x11
call fcn.00421dcc
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], 0x10
call fcn.00421a15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b4], 0xa
call fcn.00421a15
push ecx
lea edx, [esp + 0x9b9d0]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004217a8
lea eax, [esp + 0x14]
push eax
call fcn.00401a20
mov eax, dword [eax]
push 0x439958
push eax
call fcn.004149c5
add esp, 0x10
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00421a15
test bl, bl
je 0x402c95
lea ecx, [esp + 0x9b9cc]
lea edx, [esp + 0x1c]
push ecx
push str.User_Agent:
push edx
call fcn.00421cd2
push 0x43574c
push eax
lea eax, [esp + 0x18]
mov bl, 0x12
push eax
mov byte [esp + 0x9b9c0], bl
call fcn.00421c5e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b8], 0x13
call fcn.00421dcc
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b4], 0xa
call fcn.00421a15
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
push str.Host:
push edx
call fcn.00421cd2
push 0x43574c
push eax
lea eax, [esp + 0x18]
mov bl, 0x14
push eax
mov byte [esp + 0x9b9c0], bl
call fcn.00421c5e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9b9b8], 0x15
call fcn.00421dcc
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b4], 0xa
call fcn.00421a15
push str.Connection:_Keep_Alive_r_n_r_n
lea ecx, [esp + 0x24]
call fcn.00421da5
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x62c6c]
push ecx
push 0x4354d0
push edx
call fcn.00415117
add esp, 0xc
lea ecx, [esp + 0x40]
push 0x439958
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b8], 0x16
call fcn.00421a83
lea edi, [esp + 0x62c6c]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x62c70]
push ecx
push eax
push ebp
mov byte [esp + 0x9b9c4], 0x17
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [esp + 0x9b9c0]
lea edx, [esp + 0x1c]
push ecx
push str.HTTPULTIMALINK:
push edx
call fcn.00421cd2
push 0x43574c
push eax
lea eax, [esp + 0x18]
mov bl, 0x18
push eax
mov byte [esp + 0x9b9c0], bl
call fcn.00421c5e
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9b9b8], 0x19
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
mov byte [esp + 0x9b9b4], 0x17
lea ecx, [esp + 0x1c]
call fcn.00421a15
push 0
lea ecx, [esp + 0x1f0]
push 0x1000
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
je 0x402dfb
cmp ebx, 0x2746
jne 0x402e08
push str.Connection_Closed._n
call fcn.00414aa3
add esp, 4
test ebx, ebx
jle 0x402e36
mov eax, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x1ec]
lea edi, [esp + eax + 0x11ec]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], eax
jmp 0x402dd7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x439958
lea ecx, [esp + 0x2c]
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0x30]
mov byte [esp + 0x9b9b8], 0x1a
call fcn.00421a83
push 0x1f
lea eax, [esp + 0x30]
mov bl, 0x1b
push 0x4355ac
push eax
mov byte [esp + 0x9b9c0], bl
call fcn.004212e2
add esp, 0xc
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00421bf8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9b9b8], 0x1c
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
push 0x8b
lea ecx, [esp + 0x30]
push 0x4355ac
push ecx
call fcn.004212e2
add esp, 0xc
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9b9b8], 0x1d
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
push 8
lea edx, [esp + 0x30]
push 0x4355ac
push edx
call fcn.004212e2
add esp, 0xc
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9b9b8], 0x1e
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
push 3
lea ecx, [esp + 0x2c]
call fcn.00421de4
push eax
lea eax, [esp + 0x11f0]
push eax
call fcn.004154b0
mov esi, eax
add esp, 8
test esi, esi
je 0x40312f
push str._GZIP_GO__
push 0x4352f4
call fcn.00414aa3
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x11f4]
sub esi, ecx
lea edi, [esp + 0x31f34]
mov ebp, esi
sub eax, ebp
mov ecx, eax
lea esi, [esp + ebp + 0x11f4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x6ac74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x48]
push ecx
push edx
push eax
lea eax, [esp + 0x31f40]
push eax
call fcn.004026b0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x403030
push eax
push str.compess_error:__d_n
call fcn.00414aa3
add esp, 8
lea ecx, [esp + 0x11ec]
lea edx, [esp + 0x18]
push ecx
push 0x4354d0
push edx
call fcn.004212e2
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9b9b8], 0x1f
call fcn.00421b02
mov byte [esp + 0x9b9b4], bl
lea ecx, [esp + 0x10]
jmp 0x40317a
lea eax, [esp + 0x11ec]
lea ecx, [esp + 0x18]
push eax
push 0x4354d0
push ecx
call fcn.004212e2
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push ebp
push edx
call fcn.00420ee4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b8], 0x20
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9b9b8], 0x21
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea eax, [esp + 0x6ac6c]
lea ecx, [esp + 0x18]
push eax
push 0x4354d0
push ecx
call fcn.004212e2
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push esi
push edx
call fcn.00420ee4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9b9b8], 0x22
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x9b9b4], bl
call fcn.00421a15
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9b9b8], 0x23
call fcn.00421b02
mov byte [esp + 0x9b9b4], bl
lea ecx, [esp + 0x10]
jmp 0x40317a
lea eax, [esp + 0x11ec]
lea ecx, [esp + 0x18]
push eax
push 0x4354d0
push ecx
call fcn.004212e2
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9b9b8], 0x24
call fcn.00421b02
mov byte [esp + 0x9b9b4], bl
lea ecx, [esp + 0x10]
call fcn.00421a15
mov esi, dword [esp + 0x9b9bc]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004217a8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], 1
mov byte [esp + 0x9b9b4], 0x1a
call fcn.00421a15
lea ecx, [esp + 0x28]
mov byte [esp + 0x9b9b4], 0x17
call fcn.00421a15
lea ecx, [esp + 0x18]
mov byte [esp + 0x9b9b4], 0x16
call fcn.00421a15
lea ecx, [esp + 0x40]
mov byte [esp + 0x9b9b4], 0xa
call fcn.00421a15
lea ecx, [esp + 0x20]
mov byte [esp + 0x9b9b4], 8
call fcn.00421a15
lea ecx, [esp + 0x30]
mov byte [esp + 0x9b9b4], 7
call fcn.00421a15
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9b9b4], 6
call fcn.00421a15
lea ecx, [esp + 0x34]
mov byte [esp + 0x9b9b4], 5
call fcn.00421a15
lea ecx, [esp + 0x14]
mov byte [esp + 0x9b9b4], 4
call fcn.00421a15
lea ecx, [esp + 0x9b9c0]
mov byte [esp + 0x9b9b4], 3
call fcn.00421a15
lea ecx, [esp + 0x9b9c4]
mov byte [esp + 0x9b9b4], 2
call fcn.00421a15
lea ecx, [esp + 0x9b9c8]
mov byte [esp + 0x9b9b4], 1
call fcn.00421a15
lea ecx, [esp + 0x9b9cc]
mov byte [esp + 0x9b9b4], 0
call fcn.00421a15
mov ecx, dword [esp + 0x9b9ac]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9b9a8
ret