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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff908
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3e7
lea eax, [ebp - 0x3f8]
push eax
call fcn.0042e6b1
mov edx, dword [ebp + 0xc]
cmp edx, 4
ja case.default.0x488ad8
jmp dword [edx*4 + 0x488adf]
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 [0x581740], 0
je 0x488b84
push esi
lea esi, [ebp - 0x3f0]
mov edi, 0x581740
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 0x581740
call fcn.0054e28c
pop ecx
mov ebx, eax
add ebx, 8
jmp 0x488b89
mov ebx, 8
mov byte [ebp + ebx - 0x3f8], 0
inc ebx
jmp case.default.0x488ad8
mov byte [ebp - 0x3f8], 5
cmp byte [0x581740], 0
je 0x488bcc
cmp byte [0x5817a4], 0
je 0x488bcc
mov byte [ebp - 0x3f7], 2
mov byte [ebp - 0x3f6], 0
mov byte [ebp - 0x3f5], 2
mov ebx, 4
jmp 0x488be6
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.0x488ad8
movzx eax, word [esi + 0x64]
push eax
push esi
push str.CONNECT__s:_ld_HTTP_1.0_r_n
lea edx, [ebp - 0x3f8]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
cmp byte [0x581740], 0
je 0x488cc5
cmp byte [0x5817a4], 0
je 0x488cc5
push 0x5817a4
push 0x581740
push str._s:_s
lea ecx, [ebp - 0x578]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 1
push 0x104
lea eax, [ebp - 0x6f8]
push eax
lea edx, [ebp - 0x578]
push edx
call fcn.0054e28c
pop ecx
push eax
lea ecx, [ebp - 0x578]
push ecx
call fcn.004d2b54
test eax, eax
jl 0x488cc5
lea eax, [ebp - 0x6f8]
push eax
push str.Authorization:_Basic__s_r_n
lea edx, [ebp - 0x3f8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3f8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x6f8]
push eax
push str.Proxy_Authorization:_Basic__s_r_n
lea edx, [ebp - 0x3f8]
push edx
call fcn.0054e28c
pop ecx
lea ecx, [ebp - 0x3f8]
add eax, ecx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x56600a
lea eax, [ebp - 0x3f8]
push eax
call fcn.0054e1b0
add esp, 8
lea edx, [ebp - 0x3f8]
push edx
call fcn.0054e28c
pop ecx
mov ebx, eax
mov byte [ebp + ebx - 0x3f8], 0
jmp case.default.0x488ad8
mov byte [ebp - 0x3f8], 1
push 0x581740
call fcn.0054e28c
pop ecx
mov byte [ebp - 0x3f7], al
push esi
lea esi, [ebp - 0x3f6]
mov edi, 0x581740
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 0x581740
call fcn.0054e28c
pop ecx
mov ebx, eax
add ebx, 2
push 0x5817a4
call fcn.0054e28c
pop ecx
mov byte [ebp + ebx - 0x3f8], al
lea eax, [ebp - 0x3f7]
add eax, ebx
push esi
mov esi, eax
mov edi, 0x5817a4
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 0x5817a4
call fcn.0054e28c
pop ecx
add eax, ebx
inc eax
mov ebx, eax
mov byte [ebp + ebx - 0x3f8], 0
jmp case.default.0x488ad8
mov byte [ebp - 0x3f8], 5
mov eax, dword [esi + 0x68]
test eax, eax
jne 0x488dbb
mov byte [ebp - 0x3f7], 1
jmp 0x488dd9
dec eax
jne 0x488dc7
mov byte [ebp - 0x3f7], 2
jmp 0x488dd9
push 0
push dword [esi + 0x70]
push esi
call fcn.004884c4
xor eax, eax
jmp 0x488ecd
mov byte [ebp - 0x3f6], 0
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x488e34
mov byte [ebp - 0x3f5], 3
push esi
call fcn.0054e28c
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.0054e28c
pop ecx
mov ebx, eax
add ebx, 5
jmp 0x488e6d
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
test ebx, ebx
jle 0x488ec0
push 0
push ebx
lea edx, [ebp - 0x3f8]
push edx
push dword [esi + 0x7c]
call sub.WSOCK32.dll_send
cmp ebx, eax
jne 0x488ec0
push 0x21
push 0x8032
push dword [0x56f018]
push dword [esi + 0x7c]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x488ecd
push 7
push dword [esi + 0x70]
push esi
call fcn.004884c4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8