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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc08
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3e7
lea eax, [ebp - 0x3f8]
push eax
call fcn.0042e3f0
mov edx, dword [ebp + 0xc]
cmp edx, 5
ja case.default.0x488fcc
jmp dword [edx*4 + 0x488fd3]
mov byte [ebp - 0x3f8], 4
mov byte [ebp - 0x3f7], 1
mov cx, word [esi + 0x64]
push ecx
call sub.WSOCK32.dll_ntohs
mov word [ebp - 0x3f6], ax
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x3f4], al
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0x3f3], dl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0x3f2], cl
mov al, byte [ebp - 9]
mov byte [ebp - 0x3f1], al
cmp byte [0x57f4f8], 0
je 0x48907c
push esi
lea esi, [ebp - 0x3f0]
mov edi, 0x57f4f8
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 esi
push 0x57f4f8
call fcn.0054c2d0
pop ecx
mov ebx, eax
add ebx, 8
jmp 0x489081
mov ebx, 8
mov byte [ebp + ebx - 0x3f8], 0
inc ebx
jmp case.default.0x488fcc
mov byte [ebp - 0x3f8], 5
cmp byte [0x57f4f8], 0
je 0x4890c4
cmp byte [0x57f55c], 0
je 0x4890c4
mov byte [ebp - 0x3f7], 2
mov byte [ebp - 0x3f6], 0
mov byte [ebp - 0x3f5], 2
mov ebx, 4
jmp 0x4890de
mov byte [ebp - 0x3f7], 1
mov byte [ebp - 0x3f6], 0
mov byte [ebp - 0x3f5], 0
mov ebx, 3
mov byte [ebp + ebx - 0x3f8], 0
jmp case.default.0x488fcc
movzx eax, word [esi + 0x64]
push eax
push esi
push str.CONNECT__s:_ld_HTTP_1.0_r_n_r_n
lea edx, [ebp - 0x3f8]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea ecx, [ebp - 0x3f8]
push ecx
call fcn.0054c2d0
pop ecx
mov ebx, eax
mov byte [ebp + ebx - 0x3f8], 0
jmp case.default.0x488fcc
mov byte [ebp - 0x3f8], 1
push 0x57f4f8
call fcn.0054c2d0
pop ecx
mov byte [ebp - 0x3f7], al
push esi
lea esi, [ebp - 0x3f6]
mov edi, 0x57f4f8
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 esi
push 0x57f4f8
call fcn.0054c2d0
pop ecx
mov ebx, eax
add ebx, 2
push 0x57f55c
call fcn.0054c2d0
pop ecx
mov byte [ebp + ebx - 0x3f8], al
lea eax, [ebp - 0x3f7]
add eax, ebx
push esi
mov esi, eax
mov edi, 0x57f55c
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 esi
push 0x57f55c
call fcn.0054c2d0
pop ecx
add eax, ebx
inc eax
mov ebx, eax
mov byte [ebp + ebx - 0x3f8], 0
jmp case.default.0x488fcc
mov byte [ebp - 0x3f8], 5
mov eax, dword [esi + 0x68]
test eax, eax
jne 0x4891e7
mov byte [ebp - 0x3f7], 1
jmp 0x489205
dec eax
jne 0x4891f3
mov byte [ebp - 0x3f7], 2
jmp 0x489205
push 0
push dword [esi + 0x70]
push esi
call fcn.004889b8
xor eax, eax
jmp 0x4893ca
mov byte [ebp - 0x3f6], 0
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x489260
mov byte [ebp - 0x3f5], 3
push esi
call fcn.0054c2d0
pop ecx
mov byte [ebp - 0x3f4], al
push esi
mov edi, esi
lea esi, [ebp - 0x3f3]
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 esi
push esi
call fcn.0054c2d0
pop ecx
mov ebx, eax
add ebx, 5
jmp 0x489299
mov byte [ebp - 0x3f5], 1
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x3f4], al
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0x3f3], dl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0x3f2], cl
mov al, byte [ebp - 9]
mov byte [ebp - 0x3f1], al
mov ebx, 8
mov ax, word [esi + 0x64]
push eax
call sub.WSOCK32.dll_ntohs
mov word [ebp + ebx - 0x3f8], ax
add ebx, 2
mov byte [ebp + ebx - 0x3f8], 0
jmp case.default.0x488fcc
cmp byte [0x57f4f8], 0
je 0x489369
cmp byte [0x57f55c], 0
je 0x489369
push 0x57f55c
push 0x57f4f8
push str._s:_s
push 0x577e2a
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 1
push 0x104
push 0x578211
push 0x577e2a
call fcn.0054c2d0
pop ecx
push eax
push 0x577e2a
call fcn.004d1d64
test eax, eax
jl 0x489370
push 0x578211
push str.Authorization:_Basic__s_r_n_r_n
lea edx, [ebp - 0x3f8]
push edx
call fcn.0054c2d0
pop ecx
lea ecx, [ebp - 0x3f8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x578211
push str.Proxy_Authorization:_Basic__s_r_n_r_n
lea eax, [ebp - 0x3f8]
push eax
call fcn.0054c2d0
pop ecx
lea edx, [ebp - 0x3f8]
add eax, edx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x489370
mov byte [ebp - 0x3f8], 0
lea ecx, [ebp - 0x3f8]
push ecx
call fcn.0054c2d0
pop ecx
mov ebx, eax
mov byte [ebp + ebx - 0x3f8], 0
test ebx, ebx
jle 0x4893bd
push 0
push ebx
lea eax, [ebp - 0x3f8]
push eax
push dword [esi + 0x7c]
call sub.WSOCK32.dll_send
cmp ebx, eax
jne 0x4893bd
push 0x21
push 0x8032
push dword [0x56cee8]
push dword [esi + 0x7c]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x4893ca
push 7
push dword [esi + 0x70]
push esi
call fcn.004889b8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8