Function at 0x4957f0
Capabilities:
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
mov eax, 0x2948
call fcn.005d9990
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x1068
push eax
call fcn.004232e0
mov eax, dword [esp + 0x2968]
mov ebp, dword [esp + 0x2964]
add esp, 8
xor ebx, ebx
cmp eax, 4
ja case.default.0x495829
jmp dword [eax*4 + 0x495dd0]
xor ecx, ecx
mov cx, word [ebp + 0x132]
mov byte [esp + 0x20], 4
mov byte [esp + 0x21], 1
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
push ebp
mov word [esp + 0x26], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edx, eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
shr eax, 0x18
mov byte [esp + 0x27], al
mov al, byte [0x648dd0]
shr edx, 0x10
cmp al, bl
mov byte [esp + 0x26], dl
je 0x4958aa
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x648dd0]
mov byte [esp + eax + 0x28], cl
inc eax
cmp cl, bl
jne 0x495880
mov eax, 0x648dd0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495897
sub eax, edx
lea esi, [eax + 8]
mov byte [esp + esi + 0x20], bl
inc esi
jmp 0x4958f2
mov esi, 8
mov byte [esp + esi + 0x20], bl
inc esi
jmp 0x4958f2
cmp byte [0x648dd0], bl
mov byte [esp + 0x20], 5
je 0x4958dc
cmp byte [0x648f08], bl
je 0x4958dc
mov byte [esp + 0x21], 2
mov byte [esp + 0x23], 2
mov esi, 4
jmp 0x4958ea
mov byte [esp + 0x21], 1
mov byte [esp + 0x23], bl
mov esi, 3
mov byte [esp + 0x22], bl
mov byte [esp + esi + 0x20], bl
cmp esi, ebx
jle case.default.0x495829
mov edx, dword [ebp + 0x148]
push ebx
push esi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, esi
jne case.default.0x495829
mov eax, dword [0x6a0f40]
mov ecx, dword [ebp + 0x148]
push 0x21
push 0x8032
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2948
ret
movzx ecx, word [ebp + 0x132]
push ecx
push ebp
lea edx, [esp + 0x28]
push str.CONNECT__s:_ld_HTTP_1.0_r_n
push edx
call fcn.005d9929
mov al, byte [0x648dd0]
add esp, 0x10
cmp al, bl
je 0x495a23
cmp byte [0x648f08], bl
je 0x495a23
push 0x648f08
push 0x648dd0
lea eax, [esp + 0x14c4]
push str._s:_s
push eax
call fcn.005d9929
lea eax, [esp + 0x14cc]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4959a0
push 1
push 0x400
lea ecx, [esp + 0x1090]
sub eax, edx
push ecx
push eax
lea edx, [esp + 0x14cc]
push edx
call fcn.004fe150
add esp, 0x14
test eax, eax
jl 0x495a23
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4959d4
lea ecx, [esp + 0x1088]
push ecx
sub eax, edx
lea edx, [esp + eax + 0x24]
push str.Authorization:_Basic__s_r_n
push edx
call fcn.005d9929
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495a00
lea ecx, [esp + 0x1088]
push ecx
sub eax, edx
lea edx, [esp + eax + 0x24]
push str.Proxy_Authorization:_Basic__s_r_n
push edx
call fcn.005d9929
add esp, 0xc
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x495a28
mov ax, word [0x5f4c8c]
mov cl, byte [0x5f4c8e]
mov word [edi], ax
lea esi, [esp + 0x20]
mov byte [edi + 2], cl
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
cmp al, bl
jne 0x495a50
sub esi, ecx
jmp 0x4958ee
mov eax, 0x648dd0
mov byte [esp + 0x20], 1
lea edx, [eax + 1]
jmp 0x495a70
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495a70
sub eax, edx
mov byte [esp + 0x21], al
xor eax, eax
nop
mov cl, byte [eax + 0x648dd0]
mov byte [esp + eax + 0x22], cl
inc eax
cmp cl, bl
jne 0x495a80
mov eax, 0x648dd0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495a97
sub eax, edx
mov esi, eax
mov eax, 0x648f08
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495ab0
sub eax, edx
mov byte [esp + esi + 0x22], al
mov eax, 0x648f08
lea edx, [esp + 0x21]
sub edx, eax
lea edx, [edx + esi + 2]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x495ad0
mov eax, 0x648f08
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495ae2
sub eax, edx
lea esi, [esi + eax + 3]
jmp 0x4958ee
mov eax, dword [ebp + 0x134]
cmp eax, ebx
mov byte [esp + 0x20], 5
jne 0x495b0a
mov byte [esp + 0x21], 1
jmp 0x495b18
cmp eax, 1
jne 0x495bb6
mov byte [esp + 0x21], 2
mov esi, dword [sym.imp.WSOCK32.dll_inet_addr]
push ebp
mov byte [esp + 0x26], bl
call esi
cmp eax, 0xffffffff
jne 0x495b6e
mov eax, ebp
mov byte [esp + 0x23], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495b34
sub eax, edx
lea edx, [esp + 0x25]
mov byte [esp + 0x24], al
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x495b50
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495b60
sub eax, edx
lea esi, [eax + 5]
jmp 0x495b99
push ebp
mov byte [esp + 0x27], 1
call esi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x26], al
mov byte [esp + 0x27], cl
mov esi, 8
xor edx, edx
mov dx, word [ebp + 0x132]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esp + esi + 0x20], ax
add esi, 2
jmp 0x4958ee
mov eax, dword [ebp + 0x13c]
push ebx
push eax
push ebp
call fcn.00495030
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2948
ret
mov eax, dword [0x648c90]
cmp eax, ebx
mov edi, dword [esp + 0x295c]
mov ebp, dword [edi + 0x13c]
je 0x495dac
mov edi, edi
cmp edi, eax
je 0x495c0b
mov eax, dword [eax + 0x14c]
cmp eax, ebx
jne 0x495bf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2948
ret
lea edx, [esp + 0x18f0]
push 0x1068
push edx
call fcn.004232e0
lea eax, [esp + 0x18f8]
push eax
push 0xa93
call fcn.00424130
mov esi, dword [0x67b0c8]
add esp, 0x10
cmp esi, ebx
je 0x495c8e
lea esp, [esp]
cmp dword [esi + 8], ebp
jne 0x495c52
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x495c5e
mov esi, dword [esi + 0x819c]
cmp esi, ebx
jne 0x495c40
jmp 0x495c8e
lea ecx, [esp + 0x18f0]
push ecx
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
mov edi, dword [esp + 0x2974]
add esp, 0x18
push 2
lea edx, [esp + 0x18f4]
push 0x5f7d7c
push edx
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x495cd6
lea eax, [esp + 0x18f2]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495cb3
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x18f6]
push eax
lea ecx, [esp + 0x18f8]
push ecx
call fcn.005daa60
add esp, 0xc
lea edx, [esp + 0x18f0]
push 0x20
push edx
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebx
je 0x495d03
cmp dword [eax + 0x1414], ebp
je 0x495d44
mov eax, dword [eax + 0x2104]
cmp eax, ebx
jne 0x495cf1
mov eax, dword [0x68d418]
cmp eax, ebx
je 0x495d22
lea esp, [esp]
cmp dword [eax + 0xc08], ebp
je 0x495d5d
mov eax, dword [eax + 0xd1c]
cmp eax, ebx
jne 0x495d10
mov eax, dword [0x6696c8]
cmp eax, ebx
je 0x495d8c
jmp 0x495d30
cmp dword [eax + 0x1038], ebp
je 0x495d74
mov eax, dword [eax + 0x1128]
cmp eax, ebx
jne 0x495d30
jmp 0x495d8c
lea ecx, [esp + 0x18f0]
push ecx
push eax
mov dword [eax + 0x1414], ebx
call fcn.00434cd0
add esp, 8
jmp 0x495d8c
lea edx, [esp + 0x18f0]
push edx
push ebx
push eax
mov dword [eax + 0xc08], ebx
call fcn.00546ec0
jmp 0x495d89
lea ecx, [esp + 0x18f0]
push ecx
push ebx
push eax
mov dword [eax + 0x1038], ebx
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebx
je 0x495da3
cmp edi, eax
je 0x495db9
mov eax, dword [eax + 0x14c]
cmp eax, ebx
jne 0x495d95
push ebp
call fcn.00494ff0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2948
ret
push edi
call fcn.00494f70
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2948
ret