Function at 0x475fae
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, 0x5741cc
xor ebx, ebx
push 0x3e7
push 0
push edi
call fcn.00539438
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 5
ja case.default.0x475fdd
jmp dword [eax*4 + 0x475fe4]
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 [0x574104], 0
je 0x476076
push esi
push edi
lea esi, [edi + 8]
mov edi, 0x574104
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 0x574104
call fcn.005395b8
pop ecx
mov ebx, eax
add ebx, 8
jmp 0x47607b
mov ebx, 8
mov byte [edi + ebx], 0
inc ebx
jmp case.default.0x475fdd
mov byte [edi], 5
cmp byte [0x574104], 0
je 0x4760ad
cmp byte [0x574168], 0
je 0x4760ad
mov byte [edi + 1], 2
mov byte [edi + 2], 0
mov byte [edi + 3], 2
mov ebx, 4
jmp 0x4760be
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.0x475fdd
movzx eax, word [esi + 0x64]
push eax
push esi
push str.CONNECT__s:_ld_HTTP_1.0_r_n_r_n
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push edi
call fcn.005395b8
pop ecx
mov ebx, eax
mov byte [edi + ebx], 0
jmp case.default.0x475fdd
mov byte [edi], 1
push 0x574104
call fcn.005395b8
pop ecx
mov byte [edi + 1], al
push esi
push edi
lea esi, [edi + 2]
mov edi, 0x574104
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 0x574104
call fcn.005395b8
pop ecx
mov ebx, eax
add ebx, 2
push 0x574168
call fcn.005395b8
pop ecx
mov byte [edi + ebx], al
lea eax, [edi + 1]
add eax, ebx
push esi
push edi
mov esi, eax
mov edi, 0x574168
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 0x574168
call fcn.005395b8
pop ecx
add eax, ebx
inc eax
mov ebx, eax
mov byte [edi + ebx], 0
jmp case.default.0x475fdd
mov byte [edi], 5
mov eax, dword [esi + 0x68]
test eax, eax
jne 0x47619b
mov byte [edi + 1], 1
jmp 0x4761b6
dec eax
jne 0x4761a4
mov byte [edi + 1], 2
jmp 0x4761b6
push 0
push dword [esi + 0x70]
push esi
call fcn.004759d0
xor eax, eax
jmp 0x47632c
mov byte [edi + 2], 0
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x476209
mov byte [edi + 3], 3
push esi
call fcn.005395b8
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.005395b8
pop ecx
mov ebx, eax
add ebx, 5
jmp 0x476233
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
jmp case.default.0x475fdd
cmp byte [0x574104], 0
je 0x4762df
cmp byte [0x574168], 0
je 0x4762df
push 0x574168
push 0x574104
push str._s:_s
push 0x57c4a0
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 1
push 0x104
push 0x57c887
push 0x57c4a0
call fcn.005395b8
pop ecx
push eax
push 0x57c4a0
call fcn.004bc0e1
test eax, eax
jl 0x4762e2
push 0x57c887
push str.Authorization:_Basic__s_r_n_r_n
push edi
call fcn.005395b8
pop ecx
add eax, edi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x57c887
push str.Proxy_Authorization:_Basic__s_r_n_r_n
push edi
call fcn.005395b8
pop ecx
add eax, edi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4762e2
mov byte [edi], 0
push edi
call fcn.005395b8
pop ecx
mov ebx, eax
mov byte [edi + ebx], 0
test ebx, ebx
jle 0x47631f
push 0
push ebx
push edi
push dword [esi + 0x7c]
call sub.WSOCK32.dll_send
cmp ebx, eax
jne 0x47631f
push 0x21
push 0x432
push dword [0x55b3c8]
push dword [esi + 0x7c]
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x47632c
push 7
push dword [esi + 0x70]
push esi
call fcn.004759d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8