Function at 0x408370
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x24
mov eax, dword [0x45d594]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x400
lea ebp, [ebx + 0x512]
push 0
push ebp
mov dword [esp + 0x24], ebx
call fcn.00432d30
mov eax, ebp
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4083a1
mov ecx, dword [str.GET]
mov dword [eax], ecx
mov dl, byte [0x450914]
mov byte [eax + 4], dl
mov eax, dword [ebx + 0xc]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4083c0
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4083d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4083f0
mov ecx, dword [str._HTTP_1.1]
mov dword [eax], ecx
mov edx, dword [0x45091c]
mov dword [eax + 4], edx
mov cx, word [0x450920]
mov word [eax + 8], cx
mov eax, ebp
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408417
mov dx, word [0x450924]
mov word [eax], dx
mov cl, byte [0x450926]
mov byte [eax + 2], cl
mov eax, ebp
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408435
mov edx, dword [0x450928]
mov dword [eax], edx
mov cx, word [0x45092c]
mov word [eax + 4], cx
mov eax, dword [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408455
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408463
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408480
mov dx, word [0x450924]
mov word [eax], dx
mov cl, byte [0x450926]
mov byte [eax + 2], cl
mov eax, ebp
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4084a0
mov edx, dword [str.Accept:_]
mov dword [eax], edx
mov ecx, dword [0x450934]
mov dword [eax + 4], ecx
mov dx, word [0x450938]
mov word [eax + 8], dx
mov cl, byte [0x45093a]
mov byte [eax + 0xa], cl
mov eax, ebp
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4084d0
mov dx, word [0x450924]
mov word [eax], dx
mov cl, byte [0x450926]
mov edi, ebp
mov byte [eax + 2], cl
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4084f0
mov ecx, 0x10
mov esi, str.User_Agent:_Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_5.1__r_n
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408508
mov edx, dword [str.Connection:Keep_Alive]
mov dword [eax], edx
mov ecx, dword [0x450988]
mov dword [eax + 4], ecx
mov edx, dword [0x45098c]
mov dword [eax + 8], edx
mov ecx, dword [0x450990]
mov dword [eax + 0xc], ecx
mov edx, dword [0x450994]
mov dword [eax + 0x10], edx
mov cx, word [0x450998]
mov word [eax + 0x14], cx
mov eax, ebp
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408550
mov dx, word [0x450924]
mov ebx, dword [esp + 0x38]
mov word [eax], dx
mov cl, byte [0x450926]
mov byte [eax + 2], cl
test ebx, ebx
jle 0x40866b
mov eax, ebp
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408580
mov edx, dword [str.Range:_bytes]
mov dword [eax], edx
mov ecx, dword [0x4509a0]
mov dword [eax + 4], ecx
mov edx, dword [0x4509a4]
mov dword [eax + 8], edx
mov cx, word [0x4509a8]
push 0xa
lea edx, [esp + 0x20]
push edx
push ebx
mov word [eax + 0xc], cx
call fcn.0043077f
lea eax, [esp + 0x28]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4085c3
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4085d1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4085f0
mov ax, word [0x4509ac]
mov word [edi], ax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jle 0x408646
push 0xa
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0043077f
lea eax, [esp + 0x28]
add esp, 0xc
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408620
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408630
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408650
mov dx, word [0x450924]
mov word [eax], dx
mov cl, byte [0x450926]
mov byte [eax + 2], cl
mov eax, ebp
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408670
mov dx, word [0x450924]
mov word [eax], dx
mov cl, byte [0x450926]
mov byte [eax + 2], cl
mov eax, ebp
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408692
sub eax, edx
mov ebx, eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
push 0
mov edx, ebx
sub edx, esi
push edx
mov edx, dword [ecx + 4]
lea eax, [esi + ebp]
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4086d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40877a
add esi, edi
cmp esi, ebx
jb 0x4086a0
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [esp + 0x18]
xor esi, esi
mov byte [esp + 0x13], 0
xor bl, bl
lea ebx, [ebx]
mov ecx, dword [edi + 4]
push 0
push 1
lea eax, [esp + 0x1b]
push eax
push ecx
call ebp
test eax, eax
jge 0x408705
mov bl, 1
mov dl, byte [esp + 0x13]
mov byte [edi + esi + 0x912], dl
inc esi
cmp esi, 4
jl 0x40873e
cmp byte [edi + esi + 0x90e], 0xd
jne 0x40873e
cmp byte [edi + esi + 0x90f], 0xa
jne 0x40873e
cmp byte [edi + esi + 0x910], 0xd
jne 0x40873e
cmp byte [edi + esi + 0x911], 0xa
je 0x408742
test bl, bl
je 0x4086f0
mov ax, word [edi + 0x91b]
mov cl, byte [edi + 0x91d]
lea edx, [esp + 0x14]
push edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
call fcn.0042fa7f
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042f428
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042f428
add esp, 0x24
ret 8