Function at 0x466d0a
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x54d69c
xor ebx, ebx
push 0x104
push 0
push edi
call fcn.0051825c
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 4
ja case.default.0x466d39
jmp dword [eax*4 + 0x466d40]
mov byte [edi], 4
mov byte [edi + 1], 1
mov dx, word [esi + 0x64]
push edx
call sub.WSOCK32.dll_ntohs
mov word [edi + 2], ax
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
mov cl, byte [ebp - 0xc]
mov byte [edi + 4], cl
mov al, byte [ebp - 0xb]
mov byte [edi + 5], al
mov dl, byte [ebp - 0xa]
mov byte [edi + 6], dl
mov cl, byte [ebp - 9]
mov byte [edi + 7], cl
cmp byte [0x54d5d4], 0
je 0x466dce
push esi
push edi
lea esi, [edi + 8]
mov edi, 0x54d5d4
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x54d5d4
call fcn.005183dc
pop ecx
mov ebx, eax
add ebx, 8
jmp 0x466dd3
mov ebx, 8
mov byte [edi + ebx], 0
inc ebx
jmp case.default.0x466d39
mov byte [edi], 5
cmp byte [0x54d5d4], 0
je 0x466e05
cmp byte [0x54d638], 0
je 0x466e05
mov byte [edi + 1], 2
mov byte [edi + 2], 0
mov byte [edi + 3], 2
mov ebx, 4
jmp 0x466e16
mov byte [edi + 1], 1
mov byte [edi + 2], 0
mov byte [edi + 3], 0
mov ebx, 3
mov byte [edi + ebx], 0
jmp case.default.0x466d39
movzx eax, word [esi + 0x64]
push eax
push esi
push str.CONNECT__s:_ld_HTTP_1.0_n_n
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push edi
call fcn.005183dc
pop ecx
mov ebx, eax
mov byte [edi + ebx], 0
jmp case.default.0x466d39
mov byte [edi], 1
push 0x54d5d4
call fcn.005183dc
pop ecx
mov byte [edi + 1], al
push esi
push edi
lea esi, [edi + 2]
mov edi, 0x54d5d4
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x54d5d4
call fcn.005183dc
pop ecx
mov ebx, eax
add ebx, 2
push 0x54d638
call fcn.005183dc
pop ecx
mov byte [edi + ebx], al
lea eax, [edi + 1]
add eax, ebx
push esi
push edi
mov esi, eax
mov edi, 0x54d638
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x54d638
call fcn.005183dc
pop ecx
add eax, ebx
inc eax
mov ebx, eax
mov byte [edi + ebx], 0
jmp case.default.0x466d39
mov byte [edi], 5
mov eax, dword [esi + 0x68]
test eax, eax
jne 0x466ef3
mov byte [edi + 1], 1
jmp 0x466f0e
dec eax
jne 0x466efc
mov byte [edi + 1], 2
jmp 0x466f0e
push 0
push dword [esi + 0x70]
push esi
call fcn.0046672c
xor eax, eax
jmp 0x466fdd
mov byte [edi + 2], 0
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x466f61
mov byte [edi + 3], 3
push esi
call fcn.005183dc
pop ecx
mov byte [edi + 4], al
push esi
push edi
lea eax, [edi + 5]
mov edi, esi
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push esi
call fcn.005183dc
pop ecx
mov ebx, eax
add ebx, 5
jmp 0x466f8b
mov byte [edi + 3], 1
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0xc]
mov byte [edi + 4], al
mov dl, byte [ebp - 0xb]
mov byte [edi + 5], dl
mov cl, byte [ebp - 0xa]
mov byte [edi + 6], cl
mov al, byte [ebp - 9]
mov byte [edi + 7], al
mov ebx, 8
mov ax, word [esi + 0x64]
push eax
call sub.WSOCK32.dll_ntohs
mov word [edi + ebx], ax
add ebx, 2
mov byte [edi + ebx], 0
test ebx, ebx
jle 0x466fd0
push 0
push ebx
push edi
push dword [esi + 0x7c]
call sub.WSOCK32.dll_send
cmp ebx, eax
jne 0x466fd0
push 0x21
push 0x432
push dword [0x537420]
push dword [esi + 0x7c]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x466fdd
push 7
push dword [esi + 0x70]
push esi
call fcn.0046672c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8